public function testGetPastDue() { $params = array('other' => 'pickles'); $url = '/invoices?other=pickles&state=past_due'; $this->client->addResponse('GET', $url, 'invoices/index-200.xml'); $invoices = Recurly_InvoiceList::getPastDue($params, $this->client); $this->assertInstanceOf('Recurly_InvoiceList', $invoices); $this->assertEquals($url, $invoices->getHref()); }