Restructure tests

This commit is contained in:
Ben Ramsey
2015-10-03 10:59:44 -05:00
parent 2fb164fd88
commit f5e96b6af7
9 changed files with 20 additions and 22 deletions
@@ -1,27 +0,0 @@
<?php
namespace Ramsey\Uuid\Generator;
use Ramsey\Uuid\TestCase;
class RandomGeneratorFactoryTest extends TestCase
{
public function testFactoryReturnsNonOpenSslGeneratorWithForceNoOpenSsl()
{
RandomGeneratorFactory::$forceNoRandomBytes = true;
RandomGeneratorFactory::$forceNoOpensslRandomPseudoBytes = true;
$generator = RandomGeneratorFactory::getGenerator();
$this->assertNotInstanceOf('\Ramsey\Uuid\Generator\OpenSslGenerator', $generator);
}
public function testFactoryReturnsOpenSslGeneratorIfAvailable()
{
RandomGeneratorFactory::$forceNoOpensslRandomPseudoBytes = false;
$generator = RandomGeneratorFactory::getGenerator();
$this->assertInstanceOf('\Ramsey\Uuid\Generator\OpenSslGenerator', $generator);
}
}