Skip to content

Commit

Permalink
Remove test causing pase error on old PHP versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Brumann committed Dec 30, 2016
1 parent df25b03 commit 0a40387
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tests/UnserializeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,6 @@ public function test_unserialize_with_class_allowed_returns_instance()
$this->assertInstanceOf('\\Tests\\Brumann\\Polyfill\\Foo', $unserialized);
}

public function test_unserialize_with_class_keyword_allowed_returns_instance()
{
if (PHP_VERSION_ID < 50500) {
$this->markTestSkipped('::class was introduced in PHP 5.5');
}
$foo = new Foo();
$serialized = serialize($foo);
$options = array(
'allowed_classes' => array(Foo::class),
);
$unserialized = Unserialize::unserialize($serialized, $options);

$this->assertInstanceOf(Foo::class, $unserialized);
}

public function test_unserialize_with_fqcn_allowed_returns_instance()
{
$foo = new Foo();
Expand Down

0 comments on commit 0a40387

Please sign in to comment.