@@ 1478-1485 (lines=8) @@ | ||
1475 | /** |
|
1476 | * @depends testDaoGeneration |
|
1477 | */ |
|
1478 | public function testUuid() |
|
1479 | { |
|
1480 | $article = new ArticleBean('content'); |
|
1481 | $this->assertSame('content', $article->getContent()); |
|
1482 | $this->assertNotEmpty($article->getId()); |
|
1483 | $uuid = Uuid::fromString($article->getId()); |
|
1484 | $this->assertSame(1, $uuid->getVersion()); |
|
1485 | } |
|
1486 | ||
1487 | /** |
|
1488 | * @depends testDaoGeneration |
|
@@ 1490-1497 (lines=8) @@ | ||
1487 | /** |
|
1488 | * @depends testDaoGeneration |
|
1489 | */ |
|
1490 | public function testUuidv4() |
|
1491 | { |
|
1492 | $article = new Article2Bean('content'); |
|
1493 | $this->assertSame('content', $article->getContent()); |
|
1494 | $this->assertNotEmpty($article->getId()); |
|
1495 | $uuid = Uuid::fromString($article->getId()); |
|
1496 | $this->assertSame(4, $uuid->getVersion()); |
|
1497 | } |
|
1498 | ||
1499 | /** |
|
1500 | * @depends testDaoGeneration |