public function testIsPrimaryKeyNull() { $b = new Book(); $this->assertTrue($b->isPrimaryKeyNull()); $b->setPrimaryKey(123); $this->assertFalse($b->isPrimaryKeyNull()); $b->setPrimaryKey(null); $this->assertTrue($b->isPrimaryKeyNull()); }
public function testIsPrimaryKeyNull() { $b = new Book(); $this->assertTrue($b->isPrimaryKeyNull()); $b->setPrimaryKey(123); $this->assertFalse($b->isPrimaryKeyNull()); $b->setPrimaryKey(null); $this->assertTrue($b->isPrimaryKeyNull()); }