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

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

    public function testWhereElemNotMatch()
    {
        // create new document
        $document = $this->collection->createDocument(array('param' => array(array('subparam1' => 10, 'subparam2' => 20), array('subparam1' => 200, 'subparam2' => 300))));
        $document->save();
        $documentId = $document->getId();
        // find
        $q = $this->collection->find();
        $search = $q->whereElemNotMatch('param', $q->expression()->where('subparam1', 10000));
        $document = $search->findOne();
        $this->assertNotEmpty($document);
        $this->assertEquals($documentId, $document->getId());
    }