@@ 1459-1466 (lines=8) @@ | ||
1456 | /** |
|
1457 | * @depends testDaoGeneration |
|
1458 | */ |
|
1459 | public function testUuid() |
|
1460 | { |
|
1461 | $article = new ArticleBean('content'); |
|
1462 | $this->assertSame('content', $article->getContent()); |
|
1463 | $this->assertNotEmpty($article->getId()); |
|
1464 | $uuid = Uuid::fromString($article->getId()); |
|
1465 | $this->assertSame(1, $uuid->getVersion()); |
|
1466 | } |
|
1467 | ||
1468 | /** |
|
1469 | * @depends testDaoGeneration |
|
@@ 1471-1478 (lines=8) @@ | ||
1468 | /** |
|
1469 | * @depends testDaoGeneration |
|
1470 | */ |
|
1471 | public function testUuidv4() |
|
1472 | { |
|
1473 | $article = new Article2Bean('content'); |
|
1474 | $this->assertSame('content', $article->getContent()); |
|
1475 | $this->assertNotEmpty($article->getId()); |
|
1476 | $uuid = Uuid::fromString($article->getId()); |
|
1477 | $this->assertSame(4, $uuid->getVersion()); |
|
1478 | } |
|
1479 | ||
1480 | /** |
|
1481 | * @depends testDaoGeneration |