repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/src/Generator/UnixTimeGenerator.php | src/Generator/UnixTimeGenerator.php | <?php
/**
* This file is part of the ramsey/uuid library
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
* @license http://opensource.org/licenses/MIT MIT
*/
declare(stric... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/src/Generator/TimeGeneratorInterface.php | src/Generator/TimeGeneratorInterface.php | <?php
/**
* This file is part of the ramsey/uuid library
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
* @license http://opensource.org/licenses/MIT MIT
*/
declare(stric... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/src/Generator/RandomGeneratorFactory.php | src/Generator/RandomGeneratorFactory.php | <?php
/**
* This file is part of the ramsey/uuid library
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
* @license http://opensource.org/licenses/MIT MIT
*/
declare(stric... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/src/Generator/NameGeneratorFactory.php | src/Generator/NameGeneratorFactory.php | <?php
/**
* This file is part of the ramsey/uuid library
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
* @license http://opensource.org/licenses/MIT MIT
*/
declare(stric... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/src/Generator/DceSecurityGenerator.php | src/Generator/DceSecurityGenerator.php | <?php
/**
* This file is part of the ramsey/uuid library
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
* @license http://opensource.org/licenses/MIT MIT
*/
declare(stric... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/src/Generator/CombGenerator.php | src/Generator/CombGenerator.php | <?php
/**
* This file is part of the ramsey/uuid library
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
* @license http://opensource.org/licenses/MIT MIT
*/
declare(stric... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/src/Generator/DceSecurityGeneratorInterface.php | src/Generator/DceSecurityGeneratorInterface.php | <?php
/**
* This file is part of the ramsey/uuid library
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
* @license http://opensource.org/licenses/MIT MIT
*/
declare(stric... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/TestCase.php | tests/TestCase.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test;
use Mockery;
use PHPUnit\Framework\TestCase as PhpUnitTestCase;
use function current;
use function pack;
use function unpack;
class TestCase extends PhpUnitTestCase
{
protected function tearDown(): void
{
parent::tearDown();
Mockery... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/DeprecatedUuidMethodsTraitTest.php | tests/DeprecatedUuidMethodsTraitTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test;
use Mockery;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Converter\NumberConverterInterface;
use Ramsey\Uuid\Converter\Time\GenericTimeConverter;
use Ramsey\Uuid\Converter\TimeConverterInterface;
use Ramsey\Uuid\Exception\DateTimeException;
use Ram... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/FunctionsTest.php | tests/FunctionsTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test;
use DateTimeImmutable;
use DateTimeInterface;
use Ramsey\Uuid\Rfc4122\FieldsInterface;
use Ramsey\Uuid\Rfc4122\UuidV7;
use Ramsey\Uuid\Rfc4122\UuidV8;
use Ramsey\Uuid\Type\Hexadecimal;
use Ramsey\Uuid\Type\Integer as IntegerObject;
use Ramsey\Uuid\Uuid;
use... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/UuidTest.php | tests/UuidTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test;
use BadMethodCallException;
use Brick\Math\BigDecimal;
use Brick\Math\RoundingMode;
use DateTimeImmutable;
use DateTimeInterface;
use Mockery;
use Mockery\MockInterface;
use PHPUnit\Framework\MockObject\MockObject;
use Ramsey\Uuid\Builder\DefaultUuidBuilder;... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | true |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/ExpectedBehaviorTest.php | tests/ExpectedBehaviorTest.php | <?php
namespace Ramsey\Uuid\Test;
use Brick\Math\BigInteger;
use Ramsey\Uuid\Builder\DegradedUuidBuilder;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Codec\OrderedTimeCodec;
use Ramsey\Uuid\Codec\TimestampFirstCombCodec;
use Ramsey\Uuid\Converter\Number\DegradedNumberConverter;
use Ramsey\Uuid\Converter\Tim... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/UuidFactoryTest.php | tests/UuidFactoryTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test;
use DateTime;
use DateTimeImmutable;
use DateTimeInterface;
use Mockery;
use PHPUnit\Framework\MockObject\MockObject;
use Ramsey\Uuid\Builder\UuidBuilderInterface;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Converter\NumberConverterInterface;
use ... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/FeatureSetTest.php | tests/FeatureSetTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test;
use Mockery;
use Ramsey\Uuid\Builder\FallbackBuilder;
use Ramsey\Uuid\Converter\TimeConverterInterface;
use Ramsey\Uuid\FeatureSet;
use Ramsey\Uuid\Generator\DefaultNameGenerator;
use Ramsey\Uuid\Generator\PeclUuidTimeGenerator;
use Ramsey\Uuid\Generator\Uni... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/BinaryUtilsTest.php | tests/BinaryUtilsTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test;
use Ramsey\Uuid\BinaryUtils;
use function dechex;
class BinaryUtilsTest extends TestCase
{
/**
* @dataProvider provideVersionTestValues
*/
public function testApplyVersion(int $timeHi, int $version, int $expectedInt, string $expectedHex):... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/bootstrap.php | tests/bootstrap.php | <?php
/**
* Test bootstrap
*
* @codingStandardsIgnoreFile
*/
// Ensure floating-point precision is set to 14 (the default) for tests.
ini_set('precision', '14');
require_once __DIR__ . '/../vendor/autoload.php';
| php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Builder/DefaultUuidBuilderTest.php | tests/Builder/DefaultUuidBuilderTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Builder;
use Mockery;
use Ramsey\Uuid\Builder\DefaultUuidBuilder;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Converter\NumberConverterInterface;
use Ramsey\Uuid\Converter\TimeConverterInterface;
use Ramsey\Uuid\Test\TestCase;
use Ramsey\Uuid\Uuid;
... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Builder/FallbackBuilderTest.php | tests/Builder/FallbackBuilderTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Builder;
use Mockery;
use Ramsey\Uuid\Builder\FallbackBuilder;
use Ramsey\Uuid\Builder\UuidBuilderInterface;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Codec\StringCodec;
use Ramsey\Uuid\Converter\Number\GenericNumberConverter;
use Ramsey\Uuid\Conv... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Type/HexadecimalTest.php | tests/Type/HexadecimalTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Type;
use Ramsey\Uuid\Exception\InvalidArgumentException;
use Ramsey\Uuid\Test\TestCase;
use Ramsey\Uuid\Type\Hexadecimal;
use function json_encode;
use function serialize;
use function sprintf;
use function unserialize;
class HexadecimalTest extends TestCa... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Type/DecimalTest.php | tests/Type/DecimalTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Type;
use Ramsey\Uuid\Exception\InvalidArgumentException;
use Ramsey\Uuid\Test\TestCase;
use Ramsey\Uuid\Type\Decimal;
use function json_encode;
use function serialize;
use function sprintf;
use function unserialize;
class DecimalTest extends TestCase
{
... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Type/IntegerTest.php | tests/Type/IntegerTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Type;
use Ramsey\Uuid\Exception\InvalidArgumentException;
use Ramsey\Uuid\Test\TestCase;
use Ramsey\Uuid\Type\Integer as IntegerObject;
use function json_encode;
use function serialize;
use function sprintf;
use function unserialize;
class IntegerTest exten... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Type/TimeTest.php | tests/Type/TimeTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Type;
use Ramsey\Uuid\Exception\UnsupportedOperationException;
use Ramsey\Uuid\Test\TestCase;
use Ramsey\Uuid\Type\Integer as IntegerObject;
use Ramsey\Uuid\Type\Time;
use function json_encode;
use function serialize;
use function unserialize;
class TimeTes... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Guid/FieldsTest.php | tests/Guid/FieldsTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Guid;
use Ramsey\Uuid\Exception\InvalidArgumentException;
use Ramsey\Uuid\Guid\Fields;
use Ramsey\Uuid\Test\TestCase;
use Ramsey\Uuid\Type\Hexadecimal;
use function hex2bin;
use function serialize;
use function unserialize;
class FieldsTest extends TestCase... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Guid/GuidBuilderTest.php | tests/Guid/GuidBuilderTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Guid;
use Mockery;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Exception\UnableToBuildUuidException;
use Ramsey\Uuid\Guid\GuidBuilder;
use Ramsey\Uuid\Test\TestCase;
use RuntimeException;
class GuidBuilderTest extends TestCase
{
public function... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/benchmark/GuidConversionBench.php | tests/benchmark/GuidConversionBench.php | <?php
/**
* This file is part of the ramsey/uuid library
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
* @license http://opensource.org/licenses/MIT MIT
*/
declare(stric... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/benchmark/UuidStringConversionBench.php | tests/benchmark/UuidStringConversionBench.php | <?php
/**
* This file is part of the ramsey/uuid library
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
* @license http://opensource.org/licenses/MIT MIT
*/
declare(stric... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/benchmark/NonLazyUuidConversionBench.php | tests/benchmark/NonLazyUuidConversionBench.php | <?php
/**
* This file is part of the ramsey/uuid library
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
* @license http://opensource.org/licenses/MIT MIT
*/
declare(stric... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/benchmark/UuidSerializationBench.php | tests/benchmark/UuidSerializationBench.php | <?php
/**
* This file is part of the ramsey/uuid library
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
* @license http://opensource.org/licenses/MIT MIT
*/
declare(stric... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/benchmark/UuidFieldExtractionBench.php | tests/benchmark/UuidFieldExtractionBench.php | <?php
/**
* This file is part of the ramsey/uuid library
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
* @license http://opensource.org/licenses/MIT MIT
*/
declare(stric... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/benchmark/UuidGenerationBench.php | tests/benchmark/UuidGenerationBench.php | <?php
/**
* This file is part of the ramsey/uuid library
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
* @license http://opensource.org/licenses/MIT MIT
*/
declare(stric... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Math/BrickMathCalculatorTest.php | tests/Math/BrickMathCalculatorTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Math;
use Ramsey\Uuid\Exception\InvalidArgumentException;
use Ramsey\Uuid\Math\BrickMathCalculator;
use Ramsey\Uuid\Math\RoundingMode;
use Ramsey\Uuid\Test\TestCase;
use Ramsey\Uuid\Type\Integer as IntegerObject;
class BrickMathCalculatorTest extends TestCas... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Nonstandard/FieldsTest.php | tests/Nonstandard/FieldsTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Nonstandard;
use Ramsey\Uuid\Exception\InvalidArgumentException;
use Ramsey\Uuid\Nonstandard\Fields;
use Ramsey\Uuid\Test\TestCase;
use Ramsey\Uuid\Type\Hexadecimal;
use Ramsey\Uuid\Uuid;
use function hex2bin;
use function serialize;
use function str_replace... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Nonstandard/UuidV6Test.php | tests/Nonstandard/UuidV6Test.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Nonstandard;
use DateTimeImmutable;
use Mockery;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Converter\NumberConverterInterface;
use Ramsey\Uuid\Converter\TimeConverterInterface;
use Ramsey\Uuid\Exception\DateTimeException;
use Ramsey\Uuid\Exception... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Nonstandard/UuidBuilderTest.php | tests/Nonstandard/UuidBuilderTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Nonstandard;
use Mockery;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Exception\UnableToBuildUuidException;
use Ramsey\Uuid\Nonstandard\UuidBuilder;
use Ramsey\Uuid\Test\TestCase;
use RuntimeException;
class UuidBuilderTest extends TestCase
{
p... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Rfc4122/UuidV1Test.php | tests/Rfc4122/UuidV1Test.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Rfc4122;
use DateTimeImmutable;
use Mockery;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Converter\NumberConverterInterface;
use Ramsey\Uuid\Converter\TimeConverterInterface;
use Ramsey\Uuid\Exception\DateTimeException;
use Ramsey\Uuid\Exception\Inv... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Rfc4122/FieldsTest.php | tests/Rfc4122/FieldsTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Rfc4122;
use Ramsey\Uuid\Exception\InvalidArgumentException;
use Ramsey\Uuid\Rfc4122\Fields;
use Ramsey\Uuid\Test\TestCase;
use Ramsey\Uuid\Type\Hexadecimal;
use function hex2bin;
use function serialize;
use function str_replace;
use function unserialize;
c... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Rfc4122/UuidV8Test.php | tests/Rfc4122/UuidV8Test.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Rfc4122;
use Mockery;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Converter\NumberConverterInterface;
use Ramsey\Uuid\Converter\TimeConverterInterface;
use Ramsey\Uuid\Exception\InvalidArgumentException;
use Ramsey\Uuid\Rfc4122\FieldsInterface;
use ... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Rfc4122/ValidatorTest.php | tests/Rfc4122/ValidatorTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Rfc4122;
use Ramsey\Uuid\Rfc4122\Validator;
use Ramsey\Uuid\Test\TestCase;
use function array_merge;
use function in_array;
use function strtoupper;
class ValidatorTest extends TestCase
{
/**
* @dataProvider provideValuesForValidation
*/
p... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Rfc4122/UuidV3Test.php | tests/Rfc4122/UuidV3Test.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Rfc4122;
use Mockery;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Converter\NumberConverterInterface;
use Ramsey\Uuid\Converter\TimeConverterInterface;
use Ramsey\Uuid\Exception\InvalidArgumentException;
use Ramsey\Uuid\Rfc4122\FieldsInterface;
use ... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Rfc4122/UuidV6Test.php | tests/Rfc4122/UuidV6Test.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Rfc4122;
use DateTimeImmutable;
use Mockery;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Converter\NumberConverterInterface;
use Ramsey\Uuid\Converter\TimeConverterInterface;
use Ramsey\Uuid\Exception\DateTimeException;
use Ramsey\Uuid\Exception\Inv... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Rfc4122/UuidBuilderTest.php | tests/Rfc4122/UuidBuilderTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Rfc4122;
use Mockery;
use Ramsey\Uuid\Codec\StringCodec;
use Ramsey\Uuid\Converter\Number\GenericNumberConverter;
use Ramsey\Uuid\Converter\Time\GenericTimeConverter;
use Ramsey\Uuid\Exception\UnableToBuildUuidException;
use Ramsey\Uuid\Math\BrickMathCalculat... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Rfc4122/UuidV5Test.php | tests/Rfc4122/UuidV5Test.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Rfc4122;
use Mockery;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Converter\NumberConverterInterface;
use Ramsey\Uuid\Converter\TimeConverterInterface;
use Ramsey\Uuid\Exception\InvalidArgumentException;
use Ramsey\Uuid\Rfc4122\FieldsInterface;
use ... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Rfc4122/UuidV2Test.php | tests/Rfc4122/UuidV2Test.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Rfc4122;
use DateTimeInterface;
use Mockery;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Converter\Number\GenericNumberConverter;
use Ramsey\Uuid\Converter\NumberConverterInterface;
use Ramsey\Uuid\Converter\Time\GenericTimeConverter;
use Ramsey\Uui... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Rfc4122/UuidV4Test.php | tests/Rfc4122/UuidV4Test.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Rfc4122;
use Mockery;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Converter\NumberConverterInterface;
use Ramsey\Uuid\Converter\TimeConverterInterface;
use Ramsey\Uuid\Exception\InvalidArgumentException;
use Ramsey\Uuid\Rfc4122\FieldsInterface;
use ... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Rfc4122/VariantTraitTest.php | tests/Rfc4122/VariantTraitTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Rfc4122;
use Mockery;
use Ramsey\Uuid\Exception\InvalidBytesException;
use Ramsey\Uuid\Rfc4122\Fields;
use Ramsey\Uuid\Rfc4122\VariantTrait;
use Ramsey\Uuid\Test\TestCase;
use function hex2bin;
use function str_replace;
class VariantTraitTest extends TestCa... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Rfc4122/UuidV7Test.php | tests/Rfc4122/UuidV7Test.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Rfc4122;
use DateTimeImmutable;
use Mockery;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Converter\NumberConverterInterface;
use Ramsey\Uuid\Converter\TimeConverterInterface;
use Ramsey\Uuid\Exception\DateTimeException;
use Ramsey\Uuid\Exception\Inv... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Codec/StringCodecTest.php | tests/Codec/StringCodecTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Codec;
use InvalidArgumentException;
use Mockery;
use PHPUnit\Framework\MockObject\MockObject;
use Ramsey\Uuid\Builder\UuidBuilderInterface;
use Ramsey\Uuid\Codec\StringCodec;
use Ramsey\Uuid\Rfc4122\Fields;
use Ramsey\Uuid\Rfc4122\FieldsInterface;
use Ramsey... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Codec/OrderedTimeCodecTest.php | tests/Codec/OrderedTimeCodecTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Codec;
use Mockery;
use PHPUnit\Framework\MockObject\MockObject;
use Ramsey\Uuid\Builder\DefaultUuidBuilder;
use Ramsey\Uuid\Builder\UuidBuilderInterface;
use Ramsey\Uuid\Codec\OrderedTimeCodec;
use Ramsey\Uuid\Converter\Number\GenericNumberConverter;
use Ram... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Codec/GuidStringCodecTest.php | tests/Codec/GuidStringCodecTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Codec;
use Mockery;
use PHPUnit\Framework\MockObject\MockObject;
use Ramsey\Uuid\Builder\UuidBuilderInterface;
use Ramsey\Uuid\Codec\GuidStringCodec;
use Ramsey\Uuid\Converter\NumberConverterInterface;
use Ramsey\Uuid\Converter\TimeConverterInterface;
use Ram... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Encoder/TimestampFirstCombCodecTest.php | tests/Encoder/TimestampFirstCombCodecTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Encoder;
use Mockery;
use PHPUnit\Framework\MockObject\MockObject;
use Ramsey\Uuid\Builder\UuidBuilderInterface;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Codec\TimestampFirstCombCodec;
use Ramsey\Uuid\Rfc4122\Fields;
use Ramsey\Uuid\Test\TestCase... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Encoder/TimestampLastCombCodecTest.php | tests/Encoder/TimestampLastCombCodecTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Encoder;
use Mockery;
use PHPUnit\Framework\MockObject\MockObject;
use Ramsey\Uuid\Builder\UuidBuilderInterface;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Codec\TimestampLastCombCodec;
use Ramsey\Uuid\Rfc4122\Fields;
use Ramsey\Uuid\Rfc4122\Fields... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Validator/GenericValidatorTest.php | tests/Validator/GenericValidatorTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Validator;
use Ramsey\Uuid\Test\TestCase;
use Ramsey\Uuid\Validator\GenericValidator;
use function array_merge;
use function strtoupper;
class GenericValidatorTest extends TestCase
{
/**
* @dataProvider provideValuesForValidation
*/
public... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Provider/Node/SystemNodeProviderTest.php | tests/Provider/Node/SystemNodeProviderTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Provider\Node;
use Ramsey\Uuid\Exception\InvalidArgumentException;
use Ramsey\Uuid\Exception\NodeException;
use Ramsey\Uuid\Provider\Node\SystemNodeProvider;
use Ramsey\Uuid\Test\TestCase;
use phpmock\spy\Spy;
use function array_shift;
use function array_wal... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | true |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Provider/Node/RandomNodeProviderTest.php | tests/Provider/Node/RandomNodeProviderTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Provider\Node;
use Exception;
use Ramsey\Uuid\Exception\RandomSourceException;
use Ramsey\Uuid\Provider\Node\RandomNodeProvider;
use Ramsey\Uuid\Test\TestCase;
use phpmock\mockery\PHPMockery;
use function bin2hex;
use function hex2bin;
use function hexdec;
u... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Provider/Node/FallbackNodeProviderTest.php | tests/Provider/Node/FallbackNodeProviderTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Provider\Node;
use Ramsey\Uuid\Exception\NodeException;
use Ramsey\Uuid\Provider\Node\FallbackNodeProvider;
use Ramsey\Uuid\Provider\Node\RandomNodeProvider;
use Ramsey\Uuid\Provider\Node\StaticNodeProvider;
use Ramsey\Uuid\Provider\Node\SystemNodeProvider;
u... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Provider/Node/StaticNodeProviderTest.php | tests/Provider/Node/StaticNodeProviderTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Provider\Node;
use Ramsey\Uuid\Exception\InvalidArgumentException;
use Ramsey\Uuid\Provider\Node\StaticNodeProvider;
use Ramsey\Uuid\Test\TestCase;
use Ramsey\Uuid\Type\Hexadecimal;
class StaticNodeProviderTest extends TestCase
{
/**
* @param non-em... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Provider/Time/SystemTimeProviderTest.php | tests/Provider/Time/SystemTimeProviderTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Provider\Time;
use Ramsey\Uuid\Provider\Time\SystemTimeProvider;
use Ramsey\Uuid\Test\TestCase;
use Ramsey\Uuid\Type\Time;
class SystemTimeProviderTest extends TestCase
{
public function testGetTimeUses(): void
{
$provider = new SystemTimePro... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Provider/Time/FixedTimeProviderTest.php | tests/Provider/Time/FixedTimeProviderTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Provider\Time;
use Ramsey\Uuid\Provider\Time\FixedTimeProvider;
use Ramsey\Uuid\Test\TestCase;
use Ramsey\Uuid\Type\Time;
class FixedTimeProviderTest extends TestCase
{
public function testGetTimeReturnsTime(): void
{
$time = new Time(1458844... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Provider/Dce/SystemDceSecurityProviderTest.php | tests/Provider/Dce/SystemDceSecurityProviderTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Provider\Dce;
use Mockery;
use Ramsey\Uuid\Exception\DceSecurityException;
use Ramsey\Uuid\Provider\Dce\SystemDceSecurityProvider;
use Ramsey\Uuid\Test\TestCase;
use phpmock\mockery\PHPMockery;
use function array_merge;
class SystemDceSecurityProviderTest e... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Converter/Number/GenericNumberConverterTest.php | tests/Converter/Number/GenericNumberConverterTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Converter\Number;
use Ramsey\Uuid\Converter\Number\GenericNumberConverter;
use Ramsey\Uuid\Math\BrickMathCalculator;
use Ramsey\Uuid\Test\TestCase;
class GenericNumberConverterTest extends TestCase
{
public function testFromHex(): void
{
$cal... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Converter/Number/BigNumberConverterTest.php | tests/Converter/Number/BigNumberConverterTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Converter\Number;
use Ramsey\Uuid\Converter\Number\BigNumberConverter;
use Ramsey\Uuid\Exception\InvalidArgumentException;
use Ramsey\Uuid\Test\TestCase;
class BigNumberConverterTest extends TestCase
{
public function testFromHexThrowsExceptionWhenString... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Converter/Time/GenericTimeConverterTest.php | tests/Converter/Time/GenericTimeConverterTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Converter\Time;
use Ramsey\Uuid\Converter\Time\GenericTimeConverter;
use Ramsey\Uuid\Math\BrickMathCalculator;
use Ramsey\Uuid\Test\TestCase;
use Ramsey\Uuid\Type\Hexadecimal;
class GenericTimeConverterTest extends TestCase
{
/**
* @param numeric-st... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Converter/Time/PhpTimeConverterTest.php | tests/Converter/Time/PhpTimeConverterTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Converter\Time;
use Brick\Math\BigInteger;
use Mockery;
use Ramsey\Uuid\Converter\Time\GenericTimeConverter;
use Ramsey\Uuid\Converter\Time\PhpTimeConverter;
use Ramsey\Uuid\Exception\InvalidArgumentException;
use Ramsey\Uuid\Math\BrickMathCalculator;
use Ram... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Converter/Time/UnixTimeConverterTest.php | tests/Converter/Time/UnixTimeConverterTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Converter\Time;
use Ramsey\Uuid\Converter\Time\UnixTimeConverter;
use Ramsey\Uuid\Math\BrickMathCalculator;
use Ramsey\Uuid\Test\TestCase;
use Ramsey\Uuid\Type\Hexadecimal;
class UnixTimeConverterTest extends TestCase
{
/**
* @dataProvider provideCo... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Converter/Time/BigNumberTimeConverterTest.php | tests/Converter/Time/BigNumberTimeConverterTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Converter\Time;
use Brick\Math\BigInteger;
use Ramsey\Uuid\Converter\Time\BigNumberTimeConverter;
use Ramsey\Uuid\Exception\InvalidArgumentException;
use Ramsey\Uuid\Test\TestCase;
use Ramsey\Uuid\Type\Hexadecimal;
use function sprintf;
class BigNumberTimeC... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/static-analysis/UuidIsNeverEmpty.php | tests/static-analysis/UuidIsNeverEmpty.php | <?php
/**
* This file is part of the ramsey/uuid library
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
* @license http://opensource.org/licenses/MIT MIT
*/
declare(stric... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/static-analysis/stubs.php | tests/static-analysis/stubs.php | <?php
/**
* Stubs for static analysis
*
* @codingStandardsIgnoreFile
*/
if (!defined('UUID_TYPE_DEFAULT')) {
define('UUID_TYPE_DEFAULT', 0);
}
if (!defined('UUID_TYPE_TIME')) {
define('UUID_TYPE_TIME', 1);
}
if (!defined('UUID_TYPE_RANDOM')) {
define('UUID_TYPE_RANDOM', 4);
}
if (!function_exists('uui... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/static-analysis/UuidIsImmutable.php | tests/static-analysis/UuidIsImmutable.php | <?php
/**
* This file is part of the ramsey/uuid library
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
* @license http://opensource.org/licenses/MIT MIT
*/
declare(stric... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/static-analysis/ValidUuidIsNonEmpty.php | tests/static-analysis/ValidUuidIsNonEmpty.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\StaticAnalysis;
use InvalidArgumentException;
use Ramsey\Uuid\Uuid;
final class ValidUuidIsNonEmpty
{
/** @return non-empty-string */
public function validUuidsAreNotEmpty(string $input): string
{
if (Uuid::isValid($input)) {
retur... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Generator/DefaultNameGeneratorTest.php | tests/Generator/DefaultNameGeneratorTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Generator;
use Ramsey\Uuid\Exception\NameException;
use Ramsey\Uuid\Generator\DefaultNameGenerator;
use Ramsey\Uuid\Test\TestCase;
use Ramsey\Uuid\Uuid;
use function hash;
class DefaultNameGeneratorTest extends TestCase
{
/**
* @param non-empty-str... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Generator/DefaultTimeGeneratorTest.php | tests/Generator/DefaultTimeGeneratorTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Generator;
use Exception;
use Mockery;
use Mockery\MockInterface;
use PHPUnit\Framework\MockObject\MockObject;
use Ramsey\Uuid\BinaryUtils;
use Ramsey\Uuid\Converter\TimeConverterInterface;
use Ramsey\Uuid\Exception\RandomSourceException;
use Ramsey\Uuid\Exce... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Generator/RandomBytesGeneratorTest.php | tests/Generator/RandomBytesGeneratorTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Generator;
use Exception;
use Ramsey\Uuid\Exception\RandomSourceException;
use Ramsey\Uuid\Generator\RandomBytesGenerator;
use Ramsey\Uuid\Test\TestCase;
use phpmock\mockery\PHPMockery;
use function hex2bin;
class RandomBytesGeneratorTest extends TestCase
{... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Generator/RandomGeneratorFactoryTest.php | tests/Generator/RandomGeneratorFactoryTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Generator;
use Ramsey\Uuid\Generator\RandomBytesGenerator;
use Ramsey\Uuid\Generator\RandomGeneratorFactory;
use Ramsey\Uuid\Test\TestCase;
class RandomGeneratorFactoryTest extends TestCase
{
public function testFactoryReturnsRandomBytesGenerator(): void... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Generator/PeclUuidRandomGeneratorTest.php | tests/Generator/PeclUuidRandomGeneratorTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Generator;
use Ramsey\Uuid\Generator\PeclUuidRandomGenerator;
use Ramsey\Uuid\Rfc4122\Fields;
use Ramsey\Uuid\Test\TestCase;
use Ramsey\Uuid\Uuid;
class PeclUuidRandomGeneratorTest extends TestCase
{
/**
* @requires extension uuid
*/
public... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Generator/TimeGeneratorFactoryTest.php | tests/Generator/TimeGeneratorFactoryTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Generator;
use PHPUnit\Framework\MockObject\MockObject;
use Ramsey\Uuid\Converter\TimeConverterInterface;
use Ramsey\Uuid\Generator\TimeGeneratorFactory;
use Ramsey\Uuid\Generator\TimeGeneratorInterface;
use Ramsey\Uuid\Provider\NodeProviderInterface;
use Ram... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Generator/PeclUuidNameGeneratorTest.php | tests/Generator/PeclUuidNameGeneratorTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Generator;
use Ramsey\Uuid\BinaryUtils;
use Ramsey\Uuid\Exception\NameException;
use Ramsey\Uuid\Generator\PeclUuidNameGenerator;
use Ramsey\Uuid\Test\TestCase;
use Ramsey\Uuid\Uuid;
use function hash;
use function pack;
use function substr;
use function sub... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Generator/UnixTimeGeneratorTest.php | tests/Generator/UnixTimeGeneratorTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Generator;
use DateTimeImmutable;
use Mockery;
use Mockery\MockInterface;
use Ramsey\Uuid\Generator\RandomBytesGenerator;
use Ramsey\Uuid\Generator\RandomGeneratorInterface;
use Ramsey\Uuid\Generator\UnixTimeGenerator;
use Ramsey\Uuid\Test\TestCase;
class Un... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Generator/PeclUuidTimeGeneratorTest.php | tests/Generator/PeclUuidTimeGeneratorTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Generator;
use Ramsey\Uuid\Generator\PeclUuidTimeGenerator;
use Ramsey\Uuid\Rfc4122\Fields;
use Ramsey\Uuid\Test\TestCase;
use Ramsey\Uuid\Uuid;
class PeclUuidTimeGeneratorTest extends TestCase
{
/**
* @requires extension uuid
*/
public fun... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Generator/CombGeneratorTest.php | tests/Generator/CombGeneratorTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Generator;
use PHPUnit\Framework\MockObject\MockObject;
use Ramsey\Uuid\Converter\NumberConverterInterface;
use Ramsey\Uuid\Exception\InvalidArgumentException;
use Ramsey\Uuid\Generator\CombGenerator;
use Ramsey\Uuid\Generator\RandomGeneratorInterface;
use Ra... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Generator/RandomLibAdapterTest.php | tests/Generator/RandomLibAdapterTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Generator;
use Mockery;
use Mockery\MockInterface;
use Ramsey\Uuid\Generator\RandomLibAdapter;
use Ramsey\Uuid\Test\TestCase;
use RandomLib\Factory as RandomLibFactory;
use RandomLib\Generator;
class RandomLibAdapterTest extends TestCase
{
/**
* @ru... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Generator/NameGeneratorFactoryTest.php | tests/Generator/NameGeneratorFactoryTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Generator;
use Ramsey\Uuid\Generator\DefaultNameGenerator;
use Ramsey\Uuid\Generator\NameGeneratorFactory;
use Ramsey\Uuid\Test\TestCase;
class NameGeneratorFactoryTest extends TestCase
{
public function testGetGenerator(): void
{
$factory = ... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
ramsey/uuid | https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/tests/Generator/DceSecurityGeneratorTest.php | tests/Generator/DceSecurityGeneratorTest.php | <?php
declare(strict_types=1);
namespace Ramsey\Uuid\Test\Generator;
use Mockery;
use Ramsey\Uuid\Converter\Number\GenericNumberConverter;
use Ramsey\Uuid\Converter\NumberConverterInterface;
use Ramsey\Uuid\Converter\Time\GenericTimeConverter;
use Ramsey\Uuid\Exception\DceSecurityException;
use Ramsey\Uuid\Generator... | php | MIT | 8429c78ca35a09f27565311b98101e2826affde0 | 2026-01-04T15:03:10.515964Z | false |
piotrplenik/clean-code-php | https://github.com/piotrplenik/clean-code-php/blob/8d9013251a674da30a0e25fb950438f2d7cfdf64/ecs.php | ecs.php | <?php
declare(strict_types=1);
use PhpCsFixer\Fixer\PhpTag\BlankLineAfterOpeningTagFixer;
use PhpCsFixer\Fixer\Strict\DeclareStrictTypesFixer;
use PhpCsFixer\Fixer\Strict\StrictComparisonFixer;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\EasyCodingStandard\ValueOb... | php | MIT | 8d9013251a674da30a0e25fb950438f2d7cfdf64 | 2026-01-04T15:03:18.329539Z | false |
fzaninotto/Faker | https://github.com/fzaninotto/Faker/blob/5ffe7db6c80f441f150fc88008d64e64af66634b/src/autoload.php | src/autoload.php | <?php
/**
* Simple autoloader that follow the PHP Standards Recommendation #0 (PSR-0)
* @see https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md for more informations.
*
* Code inspired from the SplClassLoader RFC
* @see https://wiki.php.net/rfc/splclassloader#example_implementation
*/
spl_aut... | php | MIT | 5ffe7db6c80f441f150fc88008d64e64af66634b | 2026-01-04T15:02:34.268161Z | false |
fzaninotto/Faker | https://github.com/fzaninotto/Faker/blob/5ffe7db6c80f441f150fc88008d64e64af66634b/src/Faker/UniqueGenerator.php | src/Faker/UniqueGenerator.php | <?php
namespace Faker;
/**
* Proxy for other generators, to return only unique values. Works with
* Faker\Generator\Base->unique()
*/
class UniqueGenerator
{
protected $generator;
protected $maxRetries;
protected $uniques = array();
/**
* @param Generator $generator
* @param integer $max... | php | MIT | 5ffe7db6c80f441f150fc88008d64e64af66634b | 2026-01-04T15:02:34.268161Z | false |
fzaninotto/Faker | https://github.com/fzaninotto/Faker/blob/5ffe7db6c80f441f150fc88008d64e64af66634b/src/Faker/Documentor.php | src/Faker/Documentor.php | <?php
namespace Faker;
class Documentor
{
protected $generator;
/**
* @param Generator $generator
*/
public function __construct(Generator $generator)
{
$this->generator = $generator;
}
/**
* @return array
*/
public function getFormatters()
{
$form... | php | MIT | 5ffe7db6c80f441f150fc88008d64e64af66634b | 2026-01-04T15:02:34.268161Z | false |
fzaninotto/Faker | https://github.com/fzaninotto/Faker/blob/5ffe7db6c80f441f150fc88008d64e64af66634b/src/Faker/DefaultGenerator.php | src/Faker/DefaultGenerator.php | <?php
namespace Faker;
/**
* This generator returns a default value for all called properties
* and methods. It works with Faker\Generator\Base->optional().
*/
class DefaultGenerator
{
protected $default;
public function __construct($default = null)
{
$this->default = $default;
}
/**
... | php | MIT | 5ffe7db6c80f441f150fc88008d64e64af66634b | 2026-01-04T15:02:34.268161Z | false |
fzaninotto/Faker | https://github.com/fzaninotto/Faker/blob/5ffe7db6c80f441f150fc88008d64e64af66634b/src/Faker/ValidGenerator.php | src/Faker/ValidGenerator.php | <?php
namespace Faker;
/**
* Proxy for other generators, to return only valid values. Works with
* Faker\Generator\Base->valid()
*/
class ValidGenerator
{
protected $generator;
protected $validator;
protected $maxRetries;
/**
* @param Generator $generator
* @param callable|null $validato... | php | MIT | 5ffe7db6c80f441f150fc88008d64e64af66634b | 2026-01-04T15:02:34.268161Z | false |
fzaninotto/Faker | https://github.com/fzaninotto/Faker/blob/5ffe7db6c80f441f150fc88008d64e64af66634b/src/Faker/Factory.php | src/Faker/Factory.php | <?php
namespace Faker;
class Factory
{
const DEFAULT_LOCALE = 'en_US';
protected static $defaultProviders = array('Address', 'Barcode', 'Biased', 'Color', 'Company', 'DateTime', 'File', 'HtmlLorem', 'Image', 'Internet', 'Lorem', 'Miscellaneous', 'Payment', 'Person', 'PhoneNumber', 'Text', 'UserAgent', 'Uuid'... | php | MIT | 5ffe7db6c80f441f150fc88008d64e64af66634b | 2026-01-04T15:02:34.268161Z | false |
fzaninotto/Faker | https://github.com/fzaninotto/Faker/blob/5ffe7db6c80f441f150fc88008d64e64af66634b/src/Faker/Generator.php | src/Faker/Generator.php | <?php
namespace Faker;
/**
* @property string $name
* @method string name(string $gender = null)
* @property string $firstName
* @method string firstName(string $gender = null)
* @property string $firstNameMale
* @property string $firstNameFemale
* @property string $lastName
* @property string $title
* @meth... | php | MIT | 5ffe7db6c80f441f150fc88008d64e64af66634b | 2026-01-04T15:02:34.268161Z | false |
fzaninotto/Faker | https://github.com/fzaninotto/Faker/blob/5ffe7db6c80f441f150fc88008d64e64af66634b/src/Faker/ORM/Doctrine/Populator.php | src/Faker/ORM/Doctrine/Populator.php | <?php
namespace Faker\ORM\Doctrine;
use Doctrine\Common\Persistence\ObjectManager;
use Faker\Generator;
/**
* Service class for populating a database using the Doctrine ORM or ODM.
* A Populator can populate several tables using ActiveRecord classes.
*/
class Populator
{
/** @var int */
protected $batchS... | php | MIT | 5ffe7db6c80f441f150fc88008d64e64af66634b | 2026-01-04T15:02:34.268161Z | false |
fzaninotto/Faker | https://github.com/fzaninotto/Faker/blob/5ffe7db6c80f441f150fc88008d64e64af66634b/src/Faker/ORM/Doctrine/EntityPopulator.php | src/Faker/ORM/Doctrine/EntityPopulator.php | <?php
namespace Faker\ORM\Doctrine;
use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\Common\Persistence\Mapping\ClassMetadata;
/**
* Service class for populating a table through a Doctrine Entity class.
*/
class EntityPopulator
{
/**
* @var ClassMetadata
*/
protected $class;
/**
... | php | MIT | 5ffe7db6c80f441f150fc88008d64e64af66634b | 2026-01-04T15:02:34.268161Z | false |
fzaninotto/Faker | https://github.com/fzaninotto/Faker/blob/5ffe7db6c80f441f150fc88008d64e64af66634b/src/Faker/ORM/Doctrine/ColumnTypeGuesser.php | src/Faker/ORM/Doctrine/ColumnTypeGuesser.php | <?php
namespace Faker\ORM\Doctrine;
use Doctrine\Common\Persistence\Mapping\ClassMetadata;
class ColumnTypeGuesser
{
protected $generator;
/**
* @param \Faker\Generator $generator
*/
public function __construct(\Faker\Generator $generator)
{
$this->generator = $generator;
}
... | php | MIT | 5ffe7db6c80f441f150fc88008d64e64af66634b | 2026-01-04T15:02:34.268161Z | false |
fzaninotto/Faker | https://github.com/fzaninotto/Faker/blob/5ffe7db6c80f441f150fc88008d64e64af66634b/src/Faker/ORM/Mandango/Populator.php | src/Faker/ORM/Mandango/Populator.php | <?php
namespace Faker\ORM\Mandango;
use Mandango\Mandango;
/**
* Service class for populating a database using Mandango.
* A Populator can populate several tables using ActiveRecord classes.
*/
class Populator
{
protected $generator;
protected $mandango;
protected $entities = array();
protected $q... | php | MIT | 5ffe7db6c80f441f150fc88008d64e64af66634b | 2026-01-04T15:02:34.268161Z | false |
fzaninotto/Faker | https://github.com/fzaninotto/Faker/blob/5ffe7db6c80f441f150fc88008d64e64af66634b/src/Faker/ORM/Mandango/EntityPopulator.php | src/Faker/ORM/Mandango/EntityPopulator.php | <?php
namespace Faker\ORM\Mandango;
use Mandango\Mandango;
use Faker\Provider\Base;
/**
* Service class for populating a table through a Mandango ActiveRecord class.
*/
class EntityPopulator
{
protected $class;
protected $columnFormatters = array();
/**
* Class constructor.
*
* @param s... | php | MIT | 5ffe7db6c80f441f150fc88008d64e64af66634b | 2026-01-04T15:02:34.268161Z | false |
fzaninotto/Faker | https://github.com/fzaninotto/Faker/blob/5ffe7db6c80f441f150fc88008d64e64af66634b/src/Faker/ORM/Mandango/ColumnTypeGuesser.php | src/Faker/ORM/Mandango/ColumnTypeGuesser.php | <?php
namespace Faker\ORM\Mandango;
class ColumnTypeGuesser
{
protected $generator;
/**
* @param \Faker\Generator $generator
*/
public function __construct(\Faker\Generator $generator)
{
$this->generator = $generator;
}
/**
* @return \Closure|null
*/
public fu... | php | MIT | 5ffe7db6c80f441f150fc88008d64e64af66634b | 2026-01-04T15:02:34.268161Z | false |
fzaninotto/Faker | https://github.com/fzaninotto/Faker/blob/5ffe7db6c80f441f150fc88008d64e64af66634b/src/Faker/ORM/Propel2/Populator.php | src/Faker/ORM/Propel2/Populator.php | <?php
namespace Faker\ORM\Propel2;
use Propel\Runtime\Propel;
use Propel\Runtime\ServiceContainer\ServiceContainerInterface;
/**
* Service class for populating a database using the Propel ORM.
* A Populator can populate several tables using ActiveRecord classes.
*/
class Populator
{
protected $generator;
... | php | MIT | 5ffe7db6c80f441f150fc88008d64e64af66634b | 2026-01-04T15:02:34.268161Z | false |
fzaninotto/Faker | https://github.com/fzaninotto/Faker/blob/5ffe7db6c80f441f150fc88008d64e64af66634b/src/Faker/ORM/Propel2/EntityPopulator.php | src/Faker/ORM/Propel2/EntityPopulator.php | <?php
namespace Faker\ORM\Propel2;
use \Faker\Provider\Base;
use \Propel\Runtime\Map\ColumnMap;
/**
* Service class for populating a table through a Propel ActiveRecord class.
*/
class EntityPopulator
{
protected $class;
protected $columnFormatters = array();
protected $modifiers = array();
/**
... | php | MIT | 5ffe7db6c80f441f150fc88008d64e64af66634b | 2026-01-04T15:02:34.268161Z | false |
fzaninotto/Faker | https://github.com/fzaninotto/Faker/blob/5ffe7db6c80f441f150fc88008d64e64af66634b/src/Faker/ORM/Propel2/ColumnTypeGuesser.php | src/Faker/ORM/Propel2/ColumnTypeGuesser.php | <?php
namespace Faker\ORM\Propel2;
use \Propel\Generator\Model\PropelTypes;
use \Propel\Runtime\Map\ColumnMap;
class ColumnTypeGuesser
{
protected $generator;
/**
* @param \Faker\Generator $generator
*/
public function __construct(\Faker\Generator $generator)
{
$this->generator = $... | php | MIT | 5ffe7db6c80f441f150fc88008d64e64af66634b | 2026-01-04T15:02:34.268161Z | false |
fzaninotto/Faker | https://github.com/fzaninotto/Faker/blob/5ffe7db6c80f441f150fc88008d64e64af66634b/src/Faker/ORM/Spot/Populator.php | src/Faker/ORM/Spot/Populator.php | <?php
namespace Faker\ORM\Spot;
use Spot\Locator;
/**
* Service class for populating a database using the Spot ORM.
*/
class Populator
{
protected $generator;
protected $locator;
protected $entities = array();
protected $quantities = array();
/**
* Populator constructor.
* @param \F... | php | MIT | 5ffe7db6c80f441f150fc88008d64e64af66634b | 2026-01-04T15:02:34.268161Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.