assertTrue(true); } public function testShouldConstruct() { $response = new ResponseFactory; $this->assertInstanceOf(ResponseFactory::class, $response); } public function testShouldCreate200Response() { $response = (new ResponseFactory)->createResponse(); $this->assertInstanceOf(ResponseInterface::class, $response); $this->assertEquals(200, $response->getStatusCode()); } public function testShouldCreate404Response() { $response = (new ResponseFactory)->createResponse(404); $this->assertInstanceOf(ResponseInterface::class, $response); $this->assertEquals(404, $response->getStatusCode()); } public function testShouldSetReasonPhrase() { $response = (new ResponseFactory)->createResponse(200, "Bonkers!"); $this->assertInstanceOf(ResponseInterface::class, $response); $this->assertEquals("Bonkers!", $response->getReasonPhrase()); } }