public function testUniqueValidatorAlwaysPassIfNull() { $book = new Book(); $book->setTitle("The return of Sherlock Holmes"); $book->save(); $book1 = new Book(); $book1->setTitle('Dracula'); $this->assertTrue($book1->validate()); $book->delete(); }