| @@ 1447-1454 (lines=8) @@ | ||
| 1444 | /** |
|
| 1445 | * @depends testDaoGeneration |
|
| 1446 | */ |
|
| 1447 | public function testUuid() |
|
| 1448 | { |
|
| 1449 | $article = new ArticleBean('content'); |
|
| 1450 | $this->assertSame('content', $article->getContent()); |
|
| 1451 | $this->assertNotEmpty($article->getId()); |
|
| 1452 | $uuid = Uuid::fromString($article->getId()); |
|
| 1453 | $this->assertSame(1, $uuid->getVersion()); |
|
| 1454 | } |
|
| 1455 | ||
| 1456 | /** |
|
| 1457 | * @depends testDaoGeneration |
|
| @@ 1459-1466 (lines=8) @@ | ||
| 1456 | /** |
|
| 1457 | * @depends testDaoGeneration |
|
| 1458 | */ |
|
| 1459 | public function testUuidv4() |
|
| 1460 | { |
|
| 1461 | $article = new Article2Bean('content'); |
|
| 1462 | $this->assertSame('content', $article->getContent()); |
|
| 1463 | $this->assertNotEmpty($article->getId()); |
|
| 1464 | $uuid = Uuid::fromString($article->getId()); |
|
| 1465 | $this->assertSame(4, $uuid->getVersion()); |
|
| 1466 | } |
|
| 1467 | ||
| 1468 | /** |
|
| 1469 | * @depends testDaoGeneration |
|