| @@ 1406-1413 (lines=8) @@ | ||
| 1403 | /** |
|
| 1404 | * @depends testDaoGeneration |
|
| 1405 | */ |
|
| 1406 | public function testUuid() |
|
| 1407 | { |
|
| 1408 | $article = new ArticleBean('content'); |
|
| 1409 | $this->assertSame('content', $article->getContent()); |
|
| 1410 | $this->assertNotEmpty($article->getId()); |
|
| 1411 | $uuid = Uuid::fromString($article->getId()); |
|
| 1412 | $this->assertSame(1, $uuid->getVersion()); |
|
| 1413 | } |
|
| 1414 | ||
| 1415 | /** |
|
| 1416 | * @depends testDaoGeneration |
|
| @@ 1418-1425 (lines=8) @@ | ||
| 1415 | /** |
|
| 1416 | * @depends testDaoGeneration |
|
| 1417 | */ |
|
| 1418 | public function testUuidv4() |
|
| 1419 | { |
|
| 1420 | $article = new Article2Bean('content'); |
|
| 1421 | $this->assertSame('content', $article->getContent()); |
|
| 1422 | $this->assertNotEmpty($article->getId()); |
|
| 1423 | $uuid = Uuid::fromString($article->getId()); |
|
| 1424 | $this->assertSame(4, $uuid->getVersion()); |
|
| 1425 | } |
|
| 1426 | ||
| 1427 | /** |
|
| 1428 | * @depends testDaoGeneration |
|