@afterClass
The @afterClass
annotation can be used to specify static methods that should be called after all test methods in a test class have been run to clean up shared fixtures.
use PHPUnit\Framework\TestCase; class MyTest extends TestCase { /** * @afterClass */ public static function tearDownSomeSharedFixtures() { // ... } /** * @afterClass */ public static function tearDownSomeOtherSharedFixtures() { // ... } }
Please login to continue.