public function testDeleteNotExistingObject() { $foo = new \Sandbox\Model\String($this->db); $this->assertArrayNotHasKey('id', $foo); $foo->delete(); $this->assertArrayNotHasKey('id', $foo); }