| @@ 1435-1442 (lines=8) @@ | ||
| 1432 | /** |
|
| 1433 | * @depends testDaoGeneration |
|
| 1434 | */ |
|
| 1435 | public function testUuid() |
|
| 1436 | { |
|
| 1437 | $article = new ArticleBean('content'); |
|
| 1438 | $this->assertSame('content', $article->getContent()); |
|
| 1439 | $this->assertNotEmpty($article->getId()); |
|
| 1440 | $uuid = Uuid::fromString($article->getId()); |
|
| 1441 | $this->assertSame(1, $uuid->getVersion()); |
|
| 1442 | } |
|
| 1443 | ||
| 1444 | /** |
|
| 1445 | * @depends testDaoGeneration |
|
| @@ 1447-1454 (lines=8) @@ | ||
| 1444 | /** |
|
| 1445 | * @depends testDaoGeneration |
|
| 1446 | */ |
|
| 1447 | public function testUuidv4() |
|
| 1448 | { |
|
| 1449 | $article = new Article2Bean('content'); |
|
| 1450 | $this->assertSame('content', $article->getContent()); |
|
| 1451 | $this->assertNotEmpty($article->getId()); |
|
| 1452 | $uuid = Uuid::fromString($article->getId()); |
|
| 1453 | $this->assertSame(4, $uuid->getVersion()); |
|
| 1454 | } |
|
| 1455 | ||
| 1456 | /** |
|
| 1457 | * @depends testDaoGeneration |
|