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