python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Unable to access to services in tests
When i try to invoke a container via
self::bootKernel();
$container = static::getContainer();
I get an error "LogicException: Could not find service "test.service_container". Try updat...
dominik
Votes: 0
Answers: 1
Mock Laravel Model in phpunit test
I am persuing unit test and here i don't want to use the database. And i am doing mocking of each and everything. But i am unable to mock Models. If i try to mock the model with override then it gives...
rahul anand
Votes: 0
Answers: 0
PHPUnit giving me Too few arguments to function Tests\Unit\QuoteTest::test_count_of_quotes_equal_five()
Too few arguments to function Tests\Unit\QuoteTest::test_count_of_quotes_equal_five(), 0 passed in E:\laragon\www\torre-task1\vendor\phpunit\phpunit\src\Framework\TestCase.php on lin
e 1545 and exactl...
Kirolos Victor
Votes: 0
Answers: 1
How to use phpunit testing with local api
I've got 2 docker containers, one with apiplatform and one with symfony which connecting to this api with docker container name, so my url in browser is different than url that connects containers.
ur...
pysto papo
Votes: 0
Answers: 2