X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=vendor%2Fpsy%2Fpsysh%2Ftest%2FUtil%2FMirrorTest.php;h=585fffbb2deb79f65b4fd0b1ad5daabec4e7f484;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=6caecb551ceb68be4eb888db838c38d429629a47;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/vendor/psy/psysh/test/Util/MirrorTest.php b/vendor/psy/psysh/test/Util/MirrorTest.php index 6caecb551..585fffbb2 100644 --- a/vendor/psy/psysh/test/Util/MirrorTest.php +++ b/vendor/psy/psysh/test/Util/MirrorTest.php @@ -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);