Skip to content

Commit

Permalink
Added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Yury Potapov committed May 16, 2023
1 parent 2e3cb2b commit 33ac91b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/Service/FakerManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 33ac91b

Please sign in to comment.