Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
solarium
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
solarium
Commits
ae8bfe1c
Commit
ae8bfe1c
authored
Feb 22, 2011
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed some style issues
- altered code coverage reporting
parent
db1bdffb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
library/Solarium/Client/Response/Select.php
library/Solarium/Client/Response/Select.php
+3
-1
library/Solarium/Result/Select.php
library/Solarium/Result/Select.php
+4
-2
phpunit.xml.dist
phpunit.xml.dist
+8
-0
No files found.
library/Solarium/Client/Response/Select.php
View file @
ae8bfe1c
...
...
@@ -65,7 +65,9 @@ class Solarium_Client_Response_Select extends Solarium_Client_Response
$numFound
=
$this
->
_data
[
'response'
][
'numFound'
];
$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
)
...
...
library/Solarium/Result/Select.php
View file @
ae8bfe1c
...
...
@@ -32,7 +32,8 @@
/**
* 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,
* @param array $facets
* @return void
*/
public
function
__construct
(
$status
,
$queryTime
,
$numFound
,
$documents
,
$facets
)
public
function
__construct
(
$status
,
$queryTime
,
$numFound
,
$documents
,
$facets
)
{
$this
->
_status
=
$status
;
$this
->
_queryTime
=
$queryTime
;
...
...
phpunit.xml.dist
View file @
ae8bfe1c
...
...
@@ -8,6 +8,7 @@
<directory
suffix=
"Test.php"
>
tests
</directory>
</testsuite>
</testsuites>
<logging>
<log
type=
"coverage-html"
target=
"build/coverage"
title=
"Solarium"
charset=
"UTF-8"
yui=
"true"
highlight=
"true"
...
...
@@ -15,4 +16,11 @@
<log
type=
"coverage-clover"
target=
"build/logs/clover.xml"
/>
<log
type=
"junit"
target=
"build/logs/junit.xml"
logIncompleteSkipped=
"false"
/>
</logging>
<filter>
<whitelist>
<directory
suffix=
".php"
>
library
</directory>
</whitelist>
</filter>
</phpunit>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment