Skip to content

Commit

Permalink
php 5.3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
sokil committed Dec 18, 2014
1 parent b75d4f1 commit 5c08d0a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/CursorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ public function testGetHash()
'gender' => -1,
))
->limit(10, 20)
->whereAll('interests', ['php', 'snowboard']);
->whereAll('interests', array('php', 'snowboard'));

$this->assertEquals(
'508cc93b371c222c53ae90989d95caae',
Expand All @@ -832,7 +832,7 @@ public function testHashEquals()
'gender' => -1,
))
->limit(10, 20)
->whereAll('interests', ['php', 'snowboard']);
->whereAll('interests', array('php', 'snowboard'));

$queryBuilder2 = $this->collection
->find()
Expand All @@ -841,7 +841,7 @@ public function testHashEquals()
'age' => 1,
))
->field('ineterests')
->whereAll('interests', ['php', 'snowboard'])
->whereAll('interests', array('php', 'snowboard'))
->field('_id')
->limit(10, 20);

Expand All @@ -850,7 +850,7 @@ public function testHashEquals()
->sort(array(
'age' => 1,
))
->whereAll('interests', ['php', 'snowboard'])
->whereAll('interests', array('php', 'snowboard'))
->field('_id')
->limit(10, 20);

Expand Down

0 comments on commit 5c08d0a

Please sign in to comment.