예제 #1
0
 public function __construct($key)
 {
     if (!v::string()->validate($key)) {
         throw new InvalidParameterException("The key must a string");
     }
     $this->key = $key;
 }
예제 #2
0
 /**
  * @dataProvider invalidStringProvider
  */
 public function testInvalidStringShouldNotWork($input)
 {
     $this->assertFalse(v::string()->validate($input));
 }