public static function isNotNull() { return new IsNotNullRestriction(); }
/** * @test */ public function shouldCreateSql() { //given $restriction = Restrictions::isNotNull(); //when $sql = $restriction->toSql('category_id'); //then $this->assertEquals('category_id IS NOT NULL', $sql); }