@beforeClass
The @beforeClass annotation can be used to specify static methods that should be called before any test methods in a test class are run to set up shared fixtures.
use PHPUnit\Framework\TestCase;
class MyTest extends TestCase
{
/**
* @beforeClass
*/
public static function setUpSomeSharedFixtures()
{
// ...
}
/**
* @beforeClass
*/
public static function setUpSomeOtherSharedFixtures()
{
// ...
}
}
Please login to continue.