Sokil\Mongo\ExpressionTest::testWhereNot PHP Метод

testWhereNot() публичный Метод

public testWhereNot ( )
    public function testWhereNot()
    {
        // create new document
        $document = $this->collection->createDocument(array('param' => '1'));
        $document->save();
        $documentId = $document->getId();
        // scalar value
        $q1 = $this->collection->find();
        $this->assertEquals($documentId, $q1->whereNot($q1->expression()->where('param', 2))->findOne()->getId());
        // operator-expression
        $q2 = $this->collection->find();
        $this->assertEquals($documentId, $q2->whereNot($q2->expression()->whereGreater('param', 5))->findOne()->getId());
    }