X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fpsy%2Fpsysh%2Ftest%2FPsy%2FTest%2FCodeCleaner%2FValidConstantPassTest.php;fp=vendor%2Fpsy%2Fpsysh%2Ftest%2FPsy%2FTest%2FCodeCleaner%2FValidConstantPassTest.php;h=0000000000000000000000000000000000000000;hp=c06139c73b012300c7abafd806869a35df7b65b9;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ValidConstantPassTest.php b/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ValidConstantPassTest.php deleted file mode 100644 index c06139c73..000000000 --- a/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ValidConstantPassTest.php +++ /dev/null @@ -1,69 +0,0 @@ -setPass(new ValidConstantPass()); - } - - /** - * @dataProvider getInvalidReferences - * @expectedException \Psy\Exception\FatalErrorException - */ - public function testProcessInvalidConstantReferences($code) - { - $stmts = $this->parse($code); - $this->traverse($stmts); - } - - public function getInvalidReferences() - { - return array( - array('Foo\BAR'), - - // class constant fetch - array('Psy\Test\CodeCleaner\ValidConstantPassTest::FOO'), - array('DateTime::BACON'), - ); - } - - /** - * @dataProvider getValidReferences - */ - public function testProcessValidConstantReferences($code) - { - $stmts = $this->parse($code); - $this->traverse($stmts); - - // @todo a better thing to assert here? - $this->assertTrue(true); - } - - public function getValidReferences() - { - return array( - array('PHP_EOL'), - - // class constant fetch - array('NotAClass::FOO'), - array('DateTime::ATOM'), - array('$a = new DateTime; $a::ATOM'), - array('DateTime::class'), - array('$a = new DateTime; $a::class'), - ); - } -}