Fix: Move tests one up

This commit is contained in:
Andreas Möller
2016-09-15 08:31:27 +02:00
parent 8d2bab3c17
commit 7ff6fff06d
31 changed files with 2 additions and 2 deletions
+35
View File
@@ -0,0 +1,35 @@
<?php
namespace Ramsey\Uuid\Test\Generator;
use Ramsey\Uuid\Generator\MtRandGenerator;
use Ramsey\Uuid\Test\TestCase;
/**
* Class MtRandGeneratorTest
* @package Ramsey\Uuid\Test\Generator
* @covers Ramsey\Uuid\Generator\MtRandGenerator
*/
class MtRandGeneratorTest extends TestCase
{
public function lengthDataProvider()
{
return [
[0],
[1],
[2],
[16],
[1000]
];
}
/**
* @dataProvider lengthDataProvider
*/
public function testGenerateReturnsStringOfGivenLength($length)
{
$generator = new MtRandGenerator();
$returned = $generator->generate($length);
$this->assertEquals($length, strlen($returned));
}
}