DominionEnterprises\Mongo\QueueTest::getByBadQuery PHP Method

getByBadQuery() public method

public getByBadQuery ( )
    public function getByBadQuery()
    {
        $this->queue->send(['key1' => 0, 'key2' => true]);
        $result = $this->queue->get(['key3' => 0], PHP_INT_MAX, 0);
        $this->assertNull($result);
        $this->assertSame(1, $this->collection->count());
    }