for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Zenstruck\Foundry\Tests;
use Doctrine\Persistence\ManagerRegistry;
use PHPUnit\Framework\TestCase;
use Zenstruck\Foundry\Configuration;
use Zenstruck\Foundry\Factory;
use Zenstruck\Foundry\StoryManager;
/**
* @author Kevin Bond <[email protected]>
*/
abstract class UnitTestCase extends TestCase
{
protected ?Configuration $configuration = null;
* @before
public function setUpFoundry(): void
$this->configuration = new Configuration($this->createMock(ManagerRegistry::class), new StoryManager([]));
Factory::boot($this->configuration);
}