for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SmartWeb\ModuleTesting\Util;
use Faker\Factory;
use Faker\Generator;
/**
* Trait WithFaker
*
* @package SmartWeb\ModuleTesting\Util
*/
trait WithFaker
{
* @var Generator
protected static $faker;
* @return Generator
protected function faker()
return static::$faker = (isset(static::$faker))
? static::$faker
: Factory::create();
}