From 33ac91b2d58fd6f81496930ae7b87c37f98f692c Mon Sep 17 00:00:00 2001 From: Yury Potapov Date: Tue, 16 May 2023 13:56:27 +0300 Subject: [PATCH] Added tests --- tests/Service/FakerManagerTest.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/Service/FakerManagerTest.php b/tests/Service/FakerManagerTest.php index 19157aa..d2cb82d 100644 --- a/tests/Service/FakerManagerTest.php +++ b/tests/Service/FakerManagerTest.php @@ -95,4 +95,18 @@ public function testGetRandomCity() $result = $faker->getRandomCity(); self::assertIsString($result); } + + public function testGetRandomPhoneNumber() + { + $faker = new FakerManager(); + $result = $faker->getRandomPhoneNumber(); + self::assertIsString($result); + } + + public function testGetRandomDateTimeThisMonth() + { + $faker = new FakerManager(); + $result = $faker->getRandomDateTimeThisMonth(); + self::assertTrue($result instanceof \DateTime); + } }