You are here

private static function PHPUnit_Util_Test::isBeforeMethod in Zircon Profile 8

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

@since Method available since Release 4.0.8

Parameters

ReflectionMethod $method:

Return value

bool

1 call to PHPUnit_Util_Test::isBeforeMethod()
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 999

Class

PHPUnit_Util_Test
Test helpers.

Code

private static function isBeforeMethod(ReflectionMethod $method) {
  return preg_match('/@before\\b/', $method
    ->getDocComment());
}