Welcome Guest, Not a member yet? Register   Sign In
PHPUnit and extended class
#9

(This post was last modified: 03-19-2021, 03:19 AM by kenjis.)

I think the setUp() and tearDown() are no problems.
But you can remove them, because you don't add any code
to the methods.

Code:
Test 'App\Libraries\FooTest::testFooNotBar' started
Test 'App\Libraries\FooTest::testFooNotBar' ended
Test 'App\TestUrlExists::testURLS' started
Test 'App\TestUrlExists::testURLS' ended
Test 'Warning' started
Test 'Warning' ended
The default configuration of PHPUnit looks for *Test.php.
So FooTest is okay, but why TestUrlExists and Warning?

Do you have `phpunit.xml`?
Reply


Messages In This Thread
PHPUnit and extended class - by WebboyFR - 03-17-2021, 11:30 AM
RE: PHPUnit and extended class - by kenjis - 03-17-2021, 03:52 PM
RE: PHPUnit and extended class - by WebboyFR - 03-18-2021, 01:32 AM
RE: PHPUnit and extended class - by WebboyFR - 03-18-2021, 01:55 AM
RE: PHPUnit and extended class - by kenjis - 03-18-2021, 10:26 PM
RE: PHPUnit and extended class - by WebboyFR - 03-19-2021, 02:06 AM
RE: PHPUnit and extended class - by kenjis - 03-19-2021, 02:20 AM
RE: PHPUnit and extended class - by WebboyFR - 03-19-2021, 02:29 AM
RE: PHPUnit and extended class - by kenjis - 03-19-2021, 03:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB