You are here

public function Util_TestTest::testTestWithThrowsProperExceptionIfDatasetCannotBeParsed in Zircon Profile 8

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

@covers PHPUnit_Util_Test::getDataFromTestWithAnnotation

File

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

Class

Util_TestTest
@since Class available since Release 3.3.6

Code

public function testTestWithThrowsProperExceptionIfDatasetCannotBeParsed() {
  $this
    ->setExpectedExceptionRegExp('PHPUnit_Framework_Exception', '/^The dataset for the @testWith annotation cannot be parsed.$/');
  PHPUnit_Util_Test::getDataFromTestWithAnnotation('/**
                                                           * @testWith [s]
                                                           */');
}