/*
* This file is part of Psy Shell.
*
- * (c) 2012-2017 Justin Hileman
+ * (c) 2012-2018 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
public function testFormat($reflector, $expected)
{
- $this->assertEquals($expected, strip_tags(SignatureFormatter::format($reflector)));
+ $this->assertSame($expected, strip_tags(SignatureFormatter::format($reflector)));
}
public function signatureReflectors()
{
- return array(
- array(
+ return [
+ [
new \ReflectionFunction('implode'),
defined('HHVM_VERSION') ? 'function implode($arg1, $arg2 = null)' : 'function implode($glue, $pieces)',
- ),
- array(
+ ],
+ [
new ReflectionConstant($this, 'FOO'),
'const FOO = "foo value"',
- ),
- array(
+ ],
+ [
new \ReflectionMethod($this, 'someFakeMethod'),
'private function someFakeMethod(array $one, $two = \'TWO\', Reflector $three = null)',
- ),
- array(
+ ],
+ [
new \ReflectionProperty($this, 'bar'),
'private static $bar',
- ),
- array(
+ ],
+ [
new \ReflectionClass('Psy\CodeCleaner\CodeCleanerPass'),
'abstract class Psy\CodeCleaner\CodeCleanerPass '
. 'extends PhpParser\NodeVisitorAbstract '
. 'implements PhpParser\NodeVisitor',
- ),
- );
+ ],
+ ];
}
/**