public function seeInCollection($collection, $criteria = [])
    {
        $collection = $this->driver->getDbh()->selectCollection($collection);
        $res = $collection->count($criteria);
        \PHPUnit\Framework\Assert::assertGreaterThan(0, $res);
    }
public function seeInCollection($collection, $criteria = [])
    {
        $collection = $this->driver->getDbh()->selectCollection($collection);
        $res = $collection->count($criteria);
        \PHPUnit\Framework\Assert::assertGreaterThan(0, $res);
    }
public function seeInCollection ( $ collection , $ criteria = [ ] ) { $ collection = $ this -> driver -> getDbh ( ) -> selectCollection ( $ collection ) ; $ res = $ collection -> count ( $ criteria ) ; \ PHPUnit \ Framework \ Assert :: assertGreaterThan ( 0 , $ res ) ; }
Checks if collection contains an item.

``` php
<?php
$I->seeInCollection('users', array('name' => 'miles'));
```

@param $collection
@param array $criteria
Checks if collection contains an item .