Mercurial > hg > cmmr2012-drupal-site
comparison vendor/psy/psysh/test/Formatter/SignatureFormatterTest.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
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 ], |