for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AcelayaTest\Expressive\Factory;
use Acelaya\Expressive\Factory\SlimRouterFactory;
use Acelaya\Expressive\Router\SlimRouter;
use PHPUnit\Framework\TestCase;
use Psr\Container\ContainerInterface;
class SlimRouterFactoryTest extends TestCase
{
/**
* @var SlimRouterFactory
*/
protected $factory;
public function setUp()
$this->factory = new SlimRouterFactory();
}
public function testInvoke()
$container = $this->prophesize(ContainerInterface::class);
$instance = $this->factory->__invoke($container->reveal());
$this->assertInstanceOf(SlimRouter::class, $instance);