public function testSetRequest() { $newswire = new Newswire('apikey'); $req = new \HTTP_Request2(); $req->setAdapter('mock'); $this->assertInstanceOf('PEAR2\\Services\\NYTimes\\Newswire', $newswire->accept($req)); }