/** * @expectedException InvalidArgumentException * @expectedExceptionMessage width and height must be specified */ public function testCanvasMethodThrowExceptionOnMissingParameters() { $this->url->canvas(100, 0); }