Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / psy / psysh / test / Formatter / SignatureFormatterTest.php
similarity index 84%
rename from vendor/psy/psysh/test/Psy/Test/Formatter/SignatureFormatterTest.php
rename to vendor/psy/psysh/test/Formatter/SignatureFormatterTest.php
index 73511fb1f57de9bb4bb1a46deae82499b6374d76..d2919799033412b1242730eb387469d9de312147 100644 (file)
@@ -3,7 +3,7 @@
 /*
  * 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.
@@ -28,35 +28,35 @@ class SignatureFormatterTest extends \PHPUnit\Framework\TestCase
      */
     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',
-            ),
-        );
+            ],
+        ];
     }
 
     /**