add tests
All checks were successful
/ ls (push) Successful in 20s

This commit is contained in:
lubiana 2024-06-02 11:20:20 +02:00
parent 13bfbbe528
commit eb40f1df49
Signed by: lubiana
SSH key fingerprint: SHA256:gkqM8DUX4Blf6P52fycW8ISTd+4eAHH+Uzu9iyc8hAM
10 changed files with 388 additions and 44 deletions

View file

@ -1,5 +1,6 @@
<?php declare(strict_types=1);
use Mockery\MockInterface;
use Tests\TestCase;
/*
@ -24,7 +25,12 @@ uses(TestCase::class)->in('Feature', 'Unit');
| global functions to help you to reduce the number of lines of code in your test files.
|
*/
function something(): void
/**
* @template T of object
* @param class-string<T> $className
* @return MockInterface&T
*/
function createMock(string $className): MockInterface
{
// ..
return Mockery::mock($className);
}