Beispiel #1
0
 /**
  * @covers Rhumsaa\Uuid\Uuid::getInteger
  * @expectedException Rhumsaa\Uuid\Exception\UnsatisfiedDependencyException
  * @expectedExceptionMessage Cannot call Rhumsaa\Uuid\Uuid::getInteger without support for large integers
  */
 public function testGetInteger()
 {
     Uuid::$forceNoBigNumber = true;
     $uuid = Uuid::uuid1();
     $uuid->getInteger();
 }
 /**
  * @covers Rhumsaa\Uuid\Uuid::uuid1
  */
 public function testUuid1WithRandomNode()
 {
     Uuid::$ignoreSystemNode = true;
     $uuid = Uuid::uuid1();
     $this->assertInstanceOf('\\Rhumsaa\\Uuid\\Uuid', $uuid);
     $this->assertInstanceOf('\\DateTime', $uuid->getDateTime());
     $this->assertEquals(2, $uuid->getVariant());
     $this->assertEquals(1, $uuid->getVersion());
 }