comparison vendor/psy/psysh/test/Psy/Test/ShellTest.php @ 12:7a779792577d

Update Drupal core to v8.4.5 (via Composer)
author Chris Cannam
date Fri, 23 Feb 2018 15:52:07 +0000
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
11:bfffd8d7479a 12:7a779792577d
239 $code = '$test = function () {}'; 239 $code = '$test = function () {}';
240 $shell->addCode($code); 240 $shell->addCode($code);
241 $shell->flushCode(); 241 $shell->flushCode();
242 $code = '$test()'; 242 $code = '$test()';
243 $shell->addCode($code); 243 $shell->addCode($code);
244 $shell->flushCode(); 244 $this->assertEquals($shell->flushCode(), 'return $test();');
245 } 245 }
246 246
247 public function testWriteStdout() 247 public function testWriteStdout()
248 { 248 {
249 $output = $this->getOutput(); 249 $output = $this->getOutput();