public function testSetRequest() { $req = new HttpGetRequest('example.com', 'https://example.com/', new IO\NullIO()); $joinPoint = new JoinPoint('pre-download', $req); $req2 = new HttpGetRequest('example.com', 'https://example.com/', new IO\NullIO()); $joinPoint->setRequest($req2); self::assertSame($req2, $joinPoint->refRequest()); }