Skip to content

Commit

Permalink
Using the higher entropy uniqid
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeSimonson committed Jan 23, 2017
1 parent 416fb8a commit be726c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class InvalidArgumentExceptionTest extends PHPUnit_Framework_TestCase
{
public function testFromNonExistingTypeWithNonExistingClass()
{
$className = __CLASS__ . uniqid();
$className = __CLASS__ . str_replace('.', '', uniqid('', true));
$exception = InvalidArgumentException::fromNonExistingClass($className);

$this->assertInstanceOf('Doctrine\\Instantiator\\Exception\\InvalidArgumentException', $exception);
Expand Down
4 changes: 2 additions & 2 deletions tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function testInstantiationFromNonExistingClass($invalidClassName)

public function testInstancesAreNotCloned()
{
$className = 'TemporaryClass' . uniqid();
$className = 'TemporaryClass' . str_replace('.', '', uniqid('', true));

eval('namespace ' . __NAMESPACE__ . '; class ' . $className . '{}');

Expand Down Expand Up @@ -205,7 +205,7 @@ public function getInstantiableClasses()
public function getInvalidClassNames()
{
$classNames = array(
array(__CLASS__ . uniqid()),
array(__CLASS__ . str_replace('.', '', uniqid('', true))),
array('Doctrine\\Instantiator\\InstantiatorInterface'),
array('DoctrineTest\\InstantiatorTestAsset\\AbstractClassAsset'),
);
Expand Down

0 comments on commit be726c7

Please sign in to comment.