Skip to content

Commit

Permalink
fixing coding standards problem
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Aug 21, 2013
1 parent 0f2e6a1 commit a78f63e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/Cake/Test/TestCase/ORM/QueryTest.php
Expand Up @@ -998,10 +998,16 @@ public function testResultsAreWrappedInMapReduce() {
->method('executeStatement')
->will($this->returnValue($statement));

$query->mapReduce(function($k, $v, $mr) { $mr->emit($v['a']); });
$query->mapReduce(function($k, $v, $mr) {
$mr->emit($v['a']);
});
$query->mapReduce(
function($k, $v, $mr) { $mr->emitIntermediate($k, $v); },
function($k, $v, $mr) { $mr->emit($v[0] + 1); }
function($k, $v, $mr) {
$mr->emitIntermediate($k, $v);
},
function($k, $v, $mr) {
$mr->emit($v[0] + 1);
}
);

$this->assertEquals([2, 3], iterator_to_array($query->execute()));
Expand Down

0 comments on commit a78f63e

Please sign in to comment.