/** * @expectedException Imanee\Exception\UnsupportedFormatException */ public function testPlaceImageShouldThrowExceptionIfWrongObject() { $dummy = $this->getMock('Imanee\\Model\\ImageResourceInterface'); $this->model->placeImage($dummy, Imanee::IM_POS_MID_CENTER); }