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