/** * @expectedException InvalidArgumentException * @expectedExceptionMessage width and/or height must be specified */ public function testResizeMethodThrowExceptionOnMissingParameters() { $this->url->resize(); }