for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tests\Ds\Router\Adaptor;
use Ds\Router\Interfaces\AdaptorInterface;
use Ds\Router\Interfaces\SerializerInterface;
/**
* Class AbstractAdaptorTest
* @package Tests\Ds\Router\Adaptor
*/
class AbstractAdaptorTest extends \PHPUnit_Framework_TestCase
{
* @var AdaptorInterface
public $adaptor;
* @var \PHPUnit_Framework_MockObject_MockObject|SerializerInterface
public $serializer;
*
public function setUp()
$this->serializer = $this->getMockBuilder(SerializerInterface::class)->getMock();
$this->adaptor = new AbstractAdaptorMock($this->serializer);
}
public function testGetOptions()
$expected = [];
$actual = $this->adaptor->getOptions();
$this->assertEquals($expected, $actual);
public function testGetOption()
public function testWithOptions()
$expected = ['new' => 'options'];
$this->adaptor->withOptions($expected);