Skip to content

Commit 6524950

Browse files
committed
fix php 5.3 test
1 parent 155dd01 commit 6524950

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/ExpressionTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,12 +412,13 @@ public function testWhereRegex()
412412
}
413413

414414
// scalar value
415+
$expression = new Expression();
416+
$expression->where('foo', $regex);
417+
415418
$actualDocumentId = $this
416419
->collection
417420
->find()
418-
->whereNot(
419-
(new Expression())->where('foo', $regex)
420-
)
421+
->whereNot($expression)
421422
->findOne()
422423
->getId();
423424

0 commit comments

Comments
 (0)