/** * @expectedException Imanee\Exception\UnsupportedMethodException */ public function testAnnotateShouldThrowExceptionIfNotSupported() { $dummy = $this->getMock('Imanee\\Model\\ImageResourceInterface'); $this->model->setResource($dummy); $this->model->annotate('test', 10, 10); }