public function testSaveWithWrongValues() { $this->setExpectedException('Gc\\Exception'); $model = $this->object->fromArray(array('name' => 'ModelTest', 'prevalue_value' => '', 'description' => 'ModelTest')); $this->assertFalse($model->save()); }