public function testCannotUseNullUrlForScoring() { // setup $client = new Client($this->_apiKey); $url = null; $caughtException = false; // do the test try { $score = $client->callScoreForUrl($url); } catch (\Exception $e) { $caughtException = true; } // evaluate result here $this->assertTrue($caughtException); }