public function testAddNot() { $qb = $this->getTestQueryBuilder(); $qb->field('username')->not($qb->expr()->in(['boo'])); $expected = ['username' => ['$not' => ['$in' => ['boo']]]]; $this->assertEquals($expected, $qb->getQueryArray()); }