/** * @covers ::__construct */ public function test_maps_to_HTTP_500_UnexpectedError() { // ---------------------------------------------------------------- // setup your test $value = 100; $reason = "must be > 100"; // ---------------------------------------------------------------- // perform the change $unit = new ContractFailed($value, $reason); // ---------------------------------------------------------------- // test the results $httpStatus = $unit->getHttpStatus(); $this->assertInstanceOf(UnexpectedErrorStatus::class, $httpStatus); }