projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website]
/
vendor
/
psy
/
psysh
/
test
/
ParserTestCase.php
diff --git
a/vendor/psy/psysh/test/ParserTestCase.php
b/vendor/psy/psysh/test/ParserTestCase.php
index f3627a2a4a7c835908518f3d61ff59bc27bbf607..a0740b66367d9ea34a800339152ad9cb7b2bd23f 100644
(file)
--- a/
vendor/psy/psysh/test/ParserTestCase.php
+++ b/
vendor/psy/psysh/test/ParserTestCase.php
@@
-21,6
+21,13
@@
class ParserTestCase extends \PHPUnit\Framework\TestCase
private $parser;
private $printer;
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;
protected function parse($code, $prefix = '<?php ')
{
$code = $prefix . $code;
@@
-58,7
+65,8
@@
class ParserTestCase extends \PHPUnit\Framework\TestCase
{
$stmts = $this->parse($from);
$stmts = $this->traverse($stmts);
{
$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()
}
private function getParser()
@@
-84,6
+92,6
@@
class ParserTestCase extends \PHPUnit\Framework\TestCase
{
$msg = $e->getRawMessage();
{
$msg = $e->getRawMessage();
- return ($msg === 'Unexpected token EOF') || (strpos($msg, 'Syntax error, unexpected EOF') !== false);
+ return ($msg === 'Unexpected token EOF') || (
\
strpos($msg, 'Syntax error, unexpected EOF') !== false);
}
}
}
}