Commit 09f161a0 authored by Bas de Nooijer's avatar Bas de Nooijer

Small fixes based on CI feedback

parent e67ed1f0
......@@ -260,7 +260,8 @@ class Solarium_Query_Helper
return preg_replace_callback(
$this->_placeHolderPattern,
array($this, '_renderPlaceHolder'),
$query);
$query
);
}
protected function _renderPlaceHolder($matches)
......
......@@ -191,4 +191,10 @@ class Solarium_Query_HelperTest extends PHPUnit_Framework_TestCase
);
}
public function testAssembleInvalidPartNumber()
{
$this->setExpectedException('Solarium_Exception');
$this->_helper->assemble('cat:%1% AND content:%2%',array('value1'));
}
}
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