Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / psy / psysh / test / Util / MirrorTest.php
index 6caecb551ceb68be4eb888db838c38d429629a47..585fffbb2deb79f65b4fd0b1ad5daabec4e7f484 100644 (file)
@@ -36,7 +36,14 @@ class MirrorTest extends \PHPUnit\Framework\TestCase
         $this->assertInstanceOf('ReflectionObject', $refl);
 
         $refl = Mirror::get($this, 'FOO');
-        $this->assertInstanceOf('Psy\Reflection\ReflectionConstant', $refl);
+        if (\version_compare(PHP_VERSION, '7.1.0', '>=')) {
+            $this->assertInstanceOf('ReflectionClassConstant', $refl);
+        } else {
+            $this->assertInstanceOf('Psy\Reflection\ReflectionClassConstant', $refl);
+        }
+
+        $refl = Mirror::get('PHP_VERSION');
+        $this->assertInstanceOf('Psy\Reflection\ReflectionConstant_', $refl);
 
         $refl = Mirror::get($this, 'bar');
         $this->assertInstanceOf('ReflectionProperty', $refl);