Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| FakerTest | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| fake | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | namespace Apie\IntegrationTests\Apie\TypeDemo\Actions; |
| 3 | |
| 4 | use Apie\Maker\ValueObjects\ClassNameReference; |
| 5 | use Apie\Maker\ValueObjects\VendorValueObject; |
| 6 | use Faker\Generator; |
| 7 | |
| 8 | class FakerTest |
| 9 | { |
| 10 | public function __construct( |
| 11 | private readonly Generator $faker |
| 12 | ) { |
| 13 | } |
| 14 | public function fake( |
| 15 | VendorValueObject|ClassNameReference $className |
| 16 | ): mixed { |
| 17 | return $this->faker->fakeClass($className->toNative()); |
| 18 | } |
| 19 | } |