Phalcon\Test\Unit\Annotations\ReaderTest::testParseWithInvalidAnnotation PHP Метод

testParseWithInvalidAnnotation() публичный Метод

Test throws Phalcon\Annotations\Exception when got class with invalid annotation
С версии: 2016-01-25
Автор: Serghei Iakovlev ([email protected])
    public function testParseWithInvalidAnnotation()
    {
        $this->specify("Reader::parse does not throws Phalcon\\Annotations\\Exception when got class with invalid annotation", function () {
            require_once PATH_DATA . 'annotations/TestInvalid.php';
            $reader = new Reader();
            $reader->parse('TestInvalid');
        }, ['throws' => ['Phalcon\\Annotations\\Exception', 'Syntax error, unexpected EOF in ' . PATH_DATA . 'annotations/TestInvalid.php']]);
    }