for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Gorynych\Tests\Testing;
use Gorynych\Testing\EntityMock;
use Gorynych\Tests\Testing\Resource\TestObject;
use PHPUnit\Framework\TestCase;
class EntityMockTest extends TestCase
{
public function testCreatesEntityMock(): void
$entityMock = EntityMock::create(TestObject::class);
/** @phpstan-ignore-next-line */
$this->assertIsString($entityMock->foo);
foo
Gorynych\Testing\EntityMock
$this->assertIsInt($entityMock->bar);
bar
$this->assertIsBool($entityMock->baz);
baz
$this->assertIsString($entityMock->date);
date
}