You are here

public function Util_TestTest::testGetRequirementsMergesClassAndMethodDocBlocks in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/tests/Util/TestTest.php \Util_TestTest::testGetRequirementsMergesClassAndMethodDocBlocks()

@covers PHPUnit_Util_Test::getRequirements

File

vendor/phpunit/phpunit/tests/Util/TestTest.php, line 176

Class

Util_TestTest
@since Class available since Release 3.3.6

Code

public function testGetRequirementsMergesClassAndMethodDocBlocks() {
  $expectedAnnotations = array(
    'PHP' => '5.4',
    'PHPUnit' => '3.7',
    'OS' => '/WINNT/i',
    'functions' => array(
      'testFuncClass',
      'testFuncMethod',
    ),
    'extensions' => array(
      'testExtClass',
      'testExtMethod',
    ),
  );
  $this
    ->assertEquals($expectedAnnotations, PHPUnit_Util_Test::getRequirements('RequirementsClassDocBlockTest', 'testMethod'));
}