for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Liip\MonitorBundle\Tests\Helper;
use Liip\MonitorBundle\Helper\PathHelper;
class PathHelperTest extends \PHPUnit_Framework_TestCase
{
public function testHelperWithSymfony2()
$container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface');
$container
->expects($this->any())
->method('getParameter')
->with('templating.helper.assets')
->willReturn('Exist');
->with('assets.packages')
->will($this->throwException(new \Exception()));
->method('has')
->willReturn(true);
$this->assertInstanceOf('Liip\MonitorBundle\Helper\PathHelper', new PathHelper($container, '2.0.1'));
}
public function testHelperWithSymfony3()
->willReturn(false);
$this->assertInstanceOf('Liip\MonitorBundle\Helper\PathHelper', new PathHelper($container, '3.0.1'));