/**
  * test valid closure with invalid data
  * @author Adeyemi Olaoye <*****@*****.**>
  */
 public function testValidClosureWithInvalidData()
 {
     $validation = new RequestValidation(['number' => 2]);
     $validation->add('number', new InlineValidator(['function' => function () use($validation) {
         return $validation->getValue('number') == 1;
     }]));
     $this->assertFalse($validation->validate());
 }
 /**
  * test valid Imei number
  * @author Adeyemi Olaoye <*****@*****.**>
  */
 public function testValidIMEInumber()
 {
     $validation = new RequestValidation();
     $validation->add('imei', new IMEINumber());
     $validation_status = $validation->validate(['imei' => '355555555555550']);
     $this->assertTrue($validation_status);
     $validation_status = $validation->validate(['imei' => '353918058092269']);
     $this->assertTrue($validation_status);
 }