/** * @expectedException \spitfire\exceptions\PrivateException */ public function testGetUnexistingFieldByObject() { $schema = new \spitfire\storage\database\Schema('notreal'); $table = $this->db->table($schema); $field = new \IntegerField(); $field->setModel($schema); $this->table->getField(new \spitfire\storage\database\drivers\mysqlPDOField($field, 'notexisting')); }