Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit ec3df7a

Browse files
committed
Skip Zend_Serializer_Adapter_PhpCode test of unserializing invalid input in PHP7+
1 parent cd3ad20 commit ec3df7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/Zend/Serializer/Adapter/PhpCodeTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ public function testUnserializeObject()
141141

142142
public function testUnserialzeInvalid()
143143
{
144+
if (version_compare(phpversion(), '7', '>=')) {
145+
$this->markTestSkipped('Evaling of invalid input is PHP Parse error in PHP7+');
146+
}
144147
$value = 'not a serialized string';
145148
$this->setExpectedException('Zend_Serializer_Exception');
146149
$this->_adapter->unserialize($value);

0 commit comments

Comments
 (0)