addRequest('https://httpbin.org'); $this->assertEquals($friend->requests, ['https://httpbin.org']); } public function testAddStringUrlRequests() { $requests = [ 'foo' => 'http://example.com', 'bar' => 'https://example.com' ]; $requester = new ParallelAPIRequest(); $friend = new Friend($requester); $friend->addRequests($requests); $this->assertEquals($friend->requests, $requests); } }