Would it still count Tdd when I some kind of start planning before even writing test down? I mean create test files with commented test case names. In ...
Would it still count Tdd when I some kind of start planning before even writing test down? I mean create test files with commented test case names. In ...
I have a login function that needs to be called from a separate User Service API. The sole purpose of logging in is to be used on testing, because I ...
A PHPUnit example from the online documentation is not working for me! Please see below for more details. Your help is appreciated. Thank you in adva ...
I have made a simple class named MyService As you can se via a setter I set as Depedency the AnotherService: In order to test whether the MyServ ...
I have a query below that retrieves groups from the database; it works fine except when I run it through pest php test case and hit the controller; th ...
Everything was fine until yesterday when PHPUnit for no reason stoped seeing DB_CONNECTION environment variable from phpunit.xml file and started taki ...
Context : I created an app with Symfony and API Platform and I'm writing tests for the API I have a property name "cost" which is a float in my entit ...
In my app I'm testing my OrderController, and I have to check a notification was sent. I use a service in the controller, the service trigger the ord ...
I am attempting to run the feature tests in a Laravel application which is running within a local Lando environment. The environment is accessible via ...
I’m running a local Docker instance of Adobe Commerce (Magento 2) with the following versions: I’m unable to run PHPUnit tests in PhpStorm (Build # ...
Am getting below issue after switching phpunit version from 7.1 to 9.5.28 Failed asserting that exception of type "Error" matches expected exception " ...
Failed asserting that exception message 'Class 'PHPUnit\Framework\MockObject\Matcher\InvokedCount' not found' contains. ...
I need to exclude several namespaces from my local unit tests execution. This is because I don't have some services in my local environment that are a ...
I am currently trying to set up a development environment with Docker. The goal is have a single Docker Compose file to start all necessary containers ...
I am writing test for some controller method that will validate request data and create document by 3rd party API. Then it should return response with ...
I try to mock readonly class from PHP 8.2 in PHPUnit and got next error: Symfony\Component\ErrorHandler\Error\FatalError^ {#7 #message: "Compile E ...
I am running a code coverage workflow in GitHub action for this PHP package and it generates a different XML report than the one I get when I run the ...
I am trying to use a real Sql Server connection to run my php unit test in Laravel because SqLite does not have the function I am trying to test. The ...
I have a relatively basic phpunit test that contains 1 setUp function, and 2 tests - I am still learning phpunit so forgive my ignorance :) Note - I a ...
I have a situation like the example classes below where I have a child class that overrides a parent method. In certain situations it will return the ...