for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace DmCommonTest\Factory\Helper;
use DmCommon\Factory\Helper\Options;
use DmTest\ServiceManager\ServiceLocatorDummy;
class OptionsTest extends \PHPUnit_Framework_TestCase
{
/** @var Options */
private $sut;
public function setUp()
$this->sut = new Options();
}
/**
* @covers DmCommon\Factory\Helper\Options
*/
public function testCreateService()
$serviceLocator = new ServiceLocatorDummy($this);
$serviceLocator->set('config', []);
$result = $this->sut->createService($serviceLocator);
$this->assertInstanceOf('DmCommon\Helper\Options', $result);