public static notExists ( |
||
$queryBuilder |
/** * @test */ public function shouldBuildNotExistsClause() { // when $result = WhereClause::notExists(Product::where(array('name' => 'phone'))); // then $this->assertEquals(array('phone'), $result->getParameters()); Assert::thatString($result->toSql())->startsWith('NOT EXISTS (SELECT')->endsWith('FROM products WHERE name = ?)'); }