assertTrue(true); } public function testShouldConstruct() { $request = new RequestFactory; $this->assertInstanceOf(RequestFactory::class, $request); } public function testShouldCreateGetRequest() { $request = (new RequestFactory)->createRequest("GET", "https://example.com/"); $this->assertInstanceOf(RequestInterface::class, $request); $this->assertEquals("GET", $request->getMethod()); $this->assertEquals("https://example.com/", (string) $request->getUri()); } public function testShouldCreatePostRequest() { $request = (new RequestFactory)->createRequest("POST", "https://example.com/"); $this->assertInstanceOf(RequestInterface::class, $request); $this->assertEquals("POST", $request->getMethod()); $this->assertEquals("https://example.com/", (string) $request->getUri()); } }