Skip to content

Commit

Permalink
Test case for logging of numeric fields
Browse files Browse the repository at this point in the history
See: 81786bf and #143
  • Loading branch information
jmikola committed Aug 16, 2012
1 parent 81786bf commit 5901672
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Tests/Logger/DoctrineMongoDBLoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ public function getQueries()
array('db' => 'foo', 'collection' => 'bar', 'batchInsert' => true, 'num' => 1, 'data' => array('foo'), 'options' => array()),
array('use foo;', 'db.bar.batchInsert(**1 item(s)**);'),
),
// numeric strings
array(
array('db' => 'foo', 'collection' => 'bar', 'find' => true, 'query' => array('phone' => '+15555551234'), 'fields' => array()),
array('use foo;', 'db.bar.find({ "phone": "+15555551234" });'),
),
// find
array(
array('db' => 'foo', 'collection' => 'bar', 'find' => true, 'query' => array('foo' => null), 'fields' => array()),
Expand Down

0 comments on commit 5901672

Please sign in to comment.