public function testCheckInboxIgnoresBadFromDate() { $firstResponse = $this->client->checkInbox(0, null, 1); $response = $this->client->checkInbox(0, '20', 1); $this->assertCount(count($firstResponse->getMessages()), $response->getMessages()); $this->assertInstanceOf(Inbox::class, $response); $response = $response->getMessages(); $this->assertTrue(is_array($response)); $this->assertLessThanOrEqual(Inbox::PAGE_LIMIT, count($response)); foreach ($response as $sms) { $this->assertInstanceOf(IncomingSMS::class, $sms); } }