Mercurial > hg > isophonics-drupal-site
diff vendor/psy/psysh/test/ParserTestCase.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 5fb285c0d0e3 |
children | 129ea1e6d783 |
line wrap: on
line diff
--- a/vendor/psy/psysh/test/ParserTestCase.php Thu Apr 26 11:26:54 2018 +0100 +++ b/vendor/psy/psysh/test/ParserTestCase.php Tue Jul 10 15:07:59 2018 +0100 @@ -21,6 +21,13 @@ private $parser; private $printer; + public function tearDown() + { + $this->traverser = null; + $this->parser = null; + $this->printer = null; + } + protected function parse($code, $prefix = '<?php ') { $code = $prefix . $code; @@ -58,7 +65,8 @@ { $stmts = $this->parse($from); $stmts = $this->traverse($stmts); - $this->assertSame($to, $this->prettyPrint($stmts)); + $toStmts = $this->parse($to); + $this->assertSame($this->prettyPrint($toStmts), $this->prettyPrint($stmts)); } private function getParser()