prevent UUID_TYPE_TIME already defined error

This commit is contained in:
Jessica Mauerhan
2016-03-23 09:13:32 -04:00
parent f18ac81244
commit 4c2a18bb78
@@ -5,7 +5,9 @@ use Ramsey\Uuid\Generator\PeclUuidTimeGenerator;
use Ramsey\Uuid\Test\TestCase;
use AspectMock\Test as AspectMock;
define('UUID_TYPE_TIME', 1);
if (!defined('UUID_TYPE_TIME')) {
define('UUID_TYPE_TIME', 1);
}
class PeclUuidTimeGeneratorTest extends TestCase
{