public function testGetKeepAliveHistory()
 {
     $sim = new \Application\Model\SimModel();
     $sim->setImsi("214071000000002");
     $from = '2008-11-15T21:07+0000';
     $until = '2012-12-14T21:07+0000';
     $data = $this->simMapper->getKeepAliveHistory($sim, $from, $until);
     // Structure
     $this->assertInternalType('array', $data);
     $this->assertNotEmpty($data);
     $this->assertArrayHasKey('timestamp', $data[0]);
     $this->assertArrayHasKey('status', $data[0]);
     // Count
     $this->assertEquals(2, count($data));
 }
 public function testGetKeepAliveHistory()
 {
     $sim = $this->simMapper->findOneById("00000000000000000015", self::MASTER_ORG_ID);
     $data = $this->simMapper->getKeepAliveHistory($sim);
     $this->assertInternalType('array', $data);
     $this->assertNotEmpty($data);
     $this->assertArrayHasKey('timestamp', $data[0]);
     $this->assertArrayHasKey('status', $data[0]);
 }