Commit ae8bfe1c authored by Bas de Nooijer's avatar Bas de Nooijer

- fixed some style issues

- altered code coverage reporting
parent db1bdffb
...@@ -65,7 +65,9 @@ class Solarium_Client_Response_Select extends Solarium_Client_Response ...@@ -65,7 +65,9 @@ class Solarium_Client_Response_Select extends Solarium_Client_Response
$numFound = $this->_data['response']['numFound']; $numFound = $this->_data['response']['numFound'];
$resultClass = $this->_query->getOption('resultclass'); $resultClass = $this->_query->getOption('resultclass');
return new $resultClass($status, $queryTime, $numFound, $documents, $this->_facets); return new $resultClass(
$status, $queryTime, $numFound, $documents, $this->_facets
);
} }
protected function _addFacetField($facet) protected function _addFacetField($facet)
......
...@@ -32,7 +32,8 @@ ...@@ -32,7 +32,8 @@
/** /**
* Select query result * Select query result
*/ */
class Solarium_Result_Select extends Solarium_Result_Query implements Iterator, Countable class Solarium_Result_Select extends Solarium_Result_Query
implements Iterator, Countable
{ {
/** /**
...@@ -75,7 +76,8 @@ class Solarium_Result_Select extends Solarium_Result_Query implements Iterator, ...@@ -75,7 +76,8 @@ class Solarium_Result_Select extends Solarium_Result_Query implements Iterator,
* @param array $facets * @param array $facets
* @return void * @return void
*/ */
public function __construct($status, $queryTime, $numFound, $documents, $facets) public function __construct($status, $queryTime, $numFound, $documents,
$facets)
{ {
$this->_status = $status; $this->_status = $status;
$this->_queryTime = $queryTime; $this->_queryTime = $queryTime;
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<directory suffix="Test.php">tests</directory> <directory suffix="Test.php">tests</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<logging> <logging>
<log type="coverage-html" target="build/coverage" title="Solarium" <log type="coverage-html" target="build/coverage" title="Solarium"
charset="UTF-8" yui="true" highlight="true" charset="UTF-8" yui="true" highlight="true"
...@@ -15,4 +16,11 @@ ...@@ -15,4 +16,11 @@
<log type="coverage-clover" target="build/logs/clover.xml"/> <log type="coverage-clover" target="build/logs/clover.xml"/>
<log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/> <log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
</logging> </logging>
<filter>
<whitelist>
<directory suffix=".php">library</directory>
</whitelist>
</filter>
</phpunit> </phpunit>
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