You are here

public function Util_TestTest::testTestWithAnnotationAfter in Zircon Profile 8.0

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

@covers PHPUnit_Util_Test::getDataFromTestWithAnnotation

File

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

Class

Util_TestTest
@since Class available since Release 3.3.6

Code

public function testTestWithAnnotationAfter() {
  $result = PHPUnit_Util_Test::getDataFromTestWithAnnotation('/**
                                                                     * @testWith [1]
                                                                     *           [2]
                                                                     * @annotation
                                                                     */');
  $this
    ->assertEquals(array(
    array(
      1,
    ),
    array(
      2,
    ),
  ), $result);
}