/** * @expectedException InvalidArgumentException * @expectedExceptionMessage Parameter must be a string or an instance of Guzzle\Http\Url */ public function testThrowsAnExceptionWhenTryingToAddAnImageFromAUrlAndTheUrlParameterIsInvalid() { $this->client->addImageFromUrl(new \stdClass()); }