Commit 6d30d285 authored by Bas de Nooijer's avatar Bas de Nooijer

Updated test for PHP7

parent 7817cfdc
...@@ -64,6 +64,12 @@ class AddTest extends \PHPUnit_Framework_TestCase ...@@ -64,6 +64,12 @@ class AddTest extends \PHPUnit_Framework_TestCase
public function testAddDocumentWithInvalidDocument() public function testAddDocumentWithInvalidDocument()
{ {
// Starting from PHP7 typehints are checked by PHP and handled using a TypeException. For versions 5.x Solarium
// needs to do this, so only test for those versions.
if (version_compare(PHP_VERSION, '6.0.0') >= 0) {
$this->markTestSkipped('Typehint handling check not needed, built into current PHP version');
}
try { try {
$doc = new \StdClass(); $doc = new \StdClass();
$this->command->addDocument($doc); $this->command->addDocument($doc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment