Add spy function

This commit is contained in:
Dan Jones 2021-10-15 11:15:40 -05:00
commit 261c42dbab
4 changed files with 55 additions and 3 deletions

18
tests/FunctionsTest.php Normal file
View 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);
}
}