public function testSetRequest() { $newswire = new Newswire('apikey'); $req = new \HTTP_Request2(); $req->setAdapter('mock'); $this->assertInstanceOf('PEAR2\\Services\\NYTimes\\Newswire', $newswire->accept($req)); }
/** * Throw an exception for bogus source. * * @return void * * @expectedException \InvalidArgumentException */ public function testSetSource() { $this->nw->setSource('Interweb'); }