예제 #1
0
 public function testHasKeyFormatThrowsException()
 {
     $array = ['some-value'];
     $keyAssert = function ($key) {
         Assert::isUUID($key, false);
     };
     $this->setExpectedException(Exception::class);
     Assert::hasKeyFormat($array, $keyAssert);
 }
예제 #2
0
 public function testIsUUIDWillThrowExceptionVariation4()
 {
     $this->setExpectedException(Exception::class);
     Assert::isUUID('216fff4098d911e3a5e20800200c9a66');
 }