X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fpsy%2Fpsysh%2Ftest%2FPsy%2FTest%2FCodeCleaner%2FAbstractClassPassTest.php;fp=vendor%2Fpsy%2Fpsysh%2Ftest%2FPsy%2FTest%2FCodeCleaner%2FAbstractClassPassTest.php;h=0000000000000000000000000000000000000000;hp=21d4f0858bbd247bdf9db42ca9d3f2c3063678bf;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/psy/psysh/test/Psy/Test/CodeCleaner/AbstractClassPassTest.php b/vendor/psy/psysh/test/Psy/Test/CodeCleaner/AbstractClassPassTest.php deleted file mode 100644 index 21d4f0858..000000000 --- a/vendor/psy/psysh/test/Psy/Test/CodeCleaner/AbstractClassPassTest.php +++ /dev/null @@ -1,64 +0,0 @@ -pass = new AbstractClassPass(); - $this->traverser = new NodeTraverser(); - $this->traverser->addVisitor($this->pass); - } - - /** - * @dataProvider invalidStatements - * @expectedException \Psy\Exception\FatalErrorException - */ - public function testProcessStatementFails($code) - { - $stmts = $this->parse($code); - $this->traverser->traverse($stmts); - } - - public function invalidStatements() - { - return array( - array('class A { abstract function a(); }'), - array('abstract class B { abstract function b() {} }'), - array('abstract class B { abstract function b() { echo "yep"; } }'), - ); - } - - /** - * @dataProvider validStatements - */ - public function testProcessStatementPasses($code) - { - $stmts = $this->parse($code); - $this->traverser->traverse($stmts); - - // @todo a better thing to assert here? - $this->assertTrue(true); - } - - public function validStatements() - { - return array( - array('abstract class C { function c() {} }'), - array('abstract class D { abstract function d(); }'), - ); - } -}