From 2873c1ad3f155abc359dc654e85d6178d3a58841 Mon Sep 17 00:00:00 2001 From: Thibaud Fabre Date: Wed, 17 Dec 2014 01:40:10 +0100 Subject: [PATCH] Add tests for Pecl factory --- src/Uuid.php | 4 ++-- tests/PeclUuidTest.php | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 tests/PeclUuidTest.php diff --git a/src/Uuid.php b/src/Uuid.php index 0da5200..74a3d5a 100644 --- a/src/Uuid.php +++ b/src/Uuid.php @@ -99,7 +99,7 @@ class Uuid implements UuidInterface, \JsonSerializable /** * - * @var UuidFactory + * @var UuidFactoryInterface */ private static $factory = null; @@ -725,7 +725,7 @@ class Uuid implements UuidInterface, \JsonSerializable return self::$factory; } - public static function setFactory(UuidFactory $factory) + public static function setFactory(UuidFactoryInterface $factory) { self::$factory = $factory; } diff --git a/tests/PeclUuidTest.php b/tests/PeclUuidTest.php new file mode 100644 index 0000000..a5cf9f0 --- /dev/null +++ b/tests/PeclUuidTest.php @@ -0,0 +1,17 @@ +