Skip to content

Instantly share code, notes, and snippets.

@suzuki
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suzuki/9505543 to your computer and use it in GitHub Desktop.
Save suzuki/9505543 to your computer and use it in GitHub Desktop.
<?php
namespace Acme\HelloBundle\Tests\Service;
use \Phake;
use Acme\HelloBundle\Service\DummyService;
class DummyServiceTest extends \PHPUnit_Framework_TestCase
{
private $dummyService;
public function setUp()
{
$doctrine = Phake::mock('Symfony\Bridge\Doctrine\RegistryInterface');
$logger = Phake::mock('Symfony\Component\HttpKernel\Log\LoggerInterface');
$this->dummyService = new DummyService($doctrine, $logger);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment