Example #1
0
 /**
  * Tests that valid and invalid UUIDs are properly detected.
  *
  * @return void
  */
 public function testUuid()
 {
     $this->assertTrue(Validator::isUuid('1c0a5830-6025-11de-8a39-0800200c9a66'));
     $this->assertTrue(Validator::isUuid('1c0a5831-6025-11de-8a39-0800200c9a66'));
     $this->assertTrue(Validator::isUuid('1c0a5832-6025-11de-8a39-0800200c9a66'));
     $this->assertFalse(Validator::isUuid('zc0a5832-6025-11de-8a39-0800200c9a66'));
 }