X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fpsy%2Fpsysh%2Ftest%2FUtil%2FMirrorTest.php;fp=vendor%2Fpsy%2Fpsysh%2Ftest%2FUtil%2FMirrorTest.php;h=585fffbb2deb79f65b4fd0b1ad5daabec4e7f484;hp=6caecb551ceb68be4eb888db838c38d429629a47;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c 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);