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