/** * @covers ::getReasonPhrase */ public function testCanGetHttpReasonPhrase() { // ---------------------------------------------------------------- // setup your test $expectedCode = 100; $expectedReason = "Continue"; $unit = new HttpStatusObject($expectedCode, $expectedReason); // ---------------------------------------------------------------- // perform the change $actualReason = $unit->getReasonPhrase(); // ---------------------------------------------------------------- // test the results $this->assertEquals($expectedReason, $actualReason); }