You are here

private static function PHPUnit_Util_Test::isBeforeClassMethod in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Util/Test.php \PHPUnit_Util_Test::isBeforeClassMethod()

@since Method available since Release 4.0.8

Parameters

ReflectionMethod $method:

Return value

bool

1 call to PHPUnit_Util_Test::isBeforeClassMethod()
PHPUnit_Util_Test::getHookMethods in vendor/phpunit/phpunit/src/Util/Test.php
@since Method available since Release 4.0.8

File

vendor/phpunit/phpunit/src/Util/Test.php, line 989

Class

PHPUnit_Util_Test
Test helpers.

Code

private static function isBeforeClassMethod(ReflectionMethod $method) {
  return $method
    ->isStatic() && strpos($method
    ->getDocComment(), '@beforeClass') !== false;
}