✨ Add spy function
This commit is contained in:
parent
d857775289
commit
261c42dbab
4 changed files with 55 additions and 3 deletions
18
tests/FunctionsTest.php
Normal file
18
tests/FunctionsTest.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Danjones000\Test\Spy;
|
||||
|
||||
use Danjones000\Spy\ObjectProxy;
|
||||
|
||||
use function Danjones000\Spy\spy;
|
||||
|
||||
class FunctionsTest extends TestCase
|
||||
{
|
||||
public function testSpy(): void
|
||||
{
|
||||
$spy = spy(Fixtures\Example::class);
|
||||
$this->assertInstanceOf(ObjectProxy::class, $spy);
|
||||
}
|
||||
}
|
||||
|
|
@ -5,8 +5,6 @@ declare(strict_types=1);
|
|||
namespace Danjones000\Test\Spy;
|
||||
|
||||
use Danjones000\Spy\ObjectProxy;
|
||||
use Mockery;
|
||||
use Mockery\MockInterface;
|
||||
|
||||
class ObjectProxyTest extends TestCase
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue