comparison vendor/psy/psysh/test/Formatter/SignatureFormatterTest.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents c2387f117808
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
27 /** 27 /**
28 * @dataProvider signatureReflectors 28 * @dataProvider signatureReflectors
29 */ 29 */
30 public function testFormat($reflector, $expected) 30 public function testFormat($reflector, $expected)
31 { 31 {
32 $this->assertSame($expected, strip_tags(SignatureFormatter::format($reflector))); 32 $this->assertSame($expected, \strip_tags(SignatureFormatter::format($reflector)));
33 } 33 }
34 34
35 public function signatureReflectors() 35 public function signatureReflectors()
36 { 36 {
37 return [ 37 return [
38 [ 38 [
39 new \ReflectionFunction('implode'), 39 new \ReflectionFunction('implode'),
40 defined('HHVM_VERSION') ? 'function implode($arg1, $arg2 = null)' : 'function implode($glue, $pieces)', 40 \defined('HHVM_VERSION') ? 'function implode($arg1, $arg2 = null)' : 'function implode($glue, $pieces)',
41 ], 41 ],
42 [ 42 [
43 ReflectionClassConstant::create($this, 'FOO'), 43 ReflectionClassConstant::create($this, 'FOO'),
44 'const FOO = "foo value"', 44 'const FOO = "foo value"',
45 ], 45 ],