/** * @expectedException Imanee\Exception\UnsupportedMethodException */ public function testGetFiltersShouldThrowExceptionIfNotSupported() { $dummy = $this->getMock('Imanee\\Model\\ImageResourceInterface'); $this->model->setResource($dummy); $this->model->getFilters(); }