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