/** * @expectedException \OpenCloud\Common\Exceptions\ServerActionError */ public function test_Rescue_Fails_Without_Id() { $blank = new Server($this->service); $blank->id = null; $blank->rescue(); // should trigger the exception }