コード例 #1
0
ファイル: BuildLoggerTest.php プロジェクト: mrudtf/PHPCI
 protected function setUp()
 {
     parent::setUp();
     $this->mockLogger = $this->prophesize('\\Psr\\Log\\LoggerInterface');
     $this->mockBuild = $this->prophesize('\\PHPCI\\Model\\Build');
     $this->testedBuildLogger = new BuildLogger($this->mockLogger->reveal(), $this->mockBuild->reveal());
 }
コード例 #2
0
 protected function setUp()
 {
     if (!class_exists('AMQPConnection')) {
         $this->markTestSkipped('The AMQP extension is not available');
     }
     parent::setUp();
 }
コード例 #3
0
 protected function setUp()
 {
     parent::setUp();
     $this->filtersCache = $this->prophesize('Pitech\\FiltersBundle\\Annotations\\FiltersCache');
     $this->dir = __DIR__ . '/../Resources/public';
     $this->class = new FilterFieldReader($this->filtersCache->reveal(), $this->dir);
 }
コード例 #4
0
ファイル: ExecutorTest.php プロジェクト: mrudtf/PHPCI
 protected function setUp()
 {
     parent::setUp();
     $this->mockBuildLogger = $this->prophesize('\\PHPCI\\Logging\\BuildLogger');
     $this->mockFactory = $this->prophesize('\\PHPCI\\Plugin\\Util\\Factory');
     $this->testedExecutor = new Executor($this->mockFactory->reveal(), $this->mockBuildLogger->reveal());
 }
コード例 #5
0
 protected function setUp()
 {
     parent::setUp();
     $this->parser = $this->prophesize('Pitech\\MailerBundle\\Parser\\FileParserInterface');
     $this->translator = $this->prophesize('Symfony\\Component\\Translation\\TranslatorInterface');
     $this->templating = $this->prophesize('Pitech\\MailerBundle\\Templating\\TemplatingInterface');
 }
コード例 #6
0
ファイル: RouterTest.php プロジェクト: rawebone/wilson
 function setUp()
 {
     parent::setUp();
     $this->cache = $this->prophesize("Wilson\\Utils\\Cache");
     $this->ut = $this->prophesize("Wilson\\Routing\\UrlTools");
     $this->router = new Router($this->cache->reveal(), $this->ut->reveal());
 }
コード例 #7
0
 protected function setUp()
 {
     parent::setUp();
     $this->mailResolver = $this->prophesize('Pitech\\MailerBundle\\Resolver\\MailResolver');
     $this->event = $this->prophesize('Pitech\\MailerBundle\\Event\\MailEvent');
     $this->class = new EventEmailSubscriber($this->mailResolver->reveal());
 }
コード例 #8
0
 protected function setUp()
 {
     parent::setUp();
     $this->mailer = $this->prophesize('Pitech\\MailerBundle\\Mailer\\MailerInterface');
     $this->provider = $this->prophesize('Pitech\\MailerBundle\\Provider\\MailerProviderInterface');
     $this->message = $this->prophesize('Pitech\\MailerBundle\\Model\\MailMessageInterface');
     $this->class = new MailResolver(self::$defaults, $this->mailer->reveal(), $this->provider->reveal());
 }
コード例 #9
0
 protected function setUp()
 {
     parent::setUp();
     $this->mockBugsnag = $this->prophesize('\\Bugsnag_Client');
     $this->testedHandler = new BugsnagHandler($this->mockBugsnag->reveal());
     $this->monolog = new Logger("TestLogger");
     $this->monolog->pushHandler($this->testedHandler);
 }
コード例 #10
0
 protected function setUp()
 {
     parent::setUp();
     $this->mailer = $this->prophesize('\\Swift_Mailer');
     $this->logger = $this->prophesize('Psr\\Log\\LoggerInterface');
     $this->message = $this->prophesize('Pitech\\MailerBundle\\Model\\MailMessageInterface');
     $this->class = new SwiftMailer($this->mailer->reveal(), $this->logger->reveal());
 }
コード例 #11
0
ファイル: ScriptHandlerTest.php プロジェクト: Dren-x/mobit
 protected function setUp()
 {
     parent::setUp();
     $this->event = $this->prophesize('Composer\\Script\\Event');
     $this->io = $this->prophesize('Composer\\IO\\IOInterface');
     $this->package = $this->prophesize('Composer\\Package\\PackageInterface');
     $composer = $this->prophesize('Composer\\Composer');
     $composer->getPackage()->willReturn($this->package);
     $this->event->getComposer()->willReturn($composer);
     $this->event->getIO()->willReturn($this->io);
 }
コード例 #12
0
ファイル: TestCase.php プロジェクト: hautelook/frankenstein
 protected function setUp()
 {
     parent::setUp();
     $this->argument = new Argument();
     $this->setAsserterGenerator();
     $this->setAssertionManager();
 }
コード例 #13
0
 protected function setUp()
 {
     parent::setUp();
     $this->filePath = sprintf('%s%s', __DIR__, self::TEST_FILE_PATH);
     $this->class = new YamlParser();
 }
コード例 #14
0
 protected function setUp()
 {
     parent::setUp();
     $this->io = $this->prophesize('Composer\\IO\\IOInterface');
     $this->processor = new Processor($this->io->reveal());
 }
コード例 #15
0
 protected function setUp()
 {
     parent::setUp();
     $this->twigEngine = $this->prophesize('Symfony\\Bundle\\TwigBundle\\TwigEngine');
     $this->class = new TwigTemplating($this->twigEngine->reveal());
 }
コード例 #16
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->pjax = $this->prophesize('\\Strontium\\PjaxBundle\\Helper\\PjaxHelperInterface');
     $this->listener = new KernelResponseListener($this->pjax->reveal());
 }
コード例 #17
0
 protected function setUp()
 {
     parent::setUp();
     $this->user = $this->getUserProvider()->loadUserByUsername($this->username);
     $this->session = new Session($this->getChunkFileManager(), $this->getReferenceManager(), $this->getTreeManager(), $this->getCommitManager(), $this->user, $this->referenceName);
 }
コード例 #18
0
ファイル: CommandExecutorTest.php プロジェクト: mrudtf/PHPCI
 protected function setUp()
 {
     parent::setUp();
     $mockBuildLogger = $this->prophesize('PHPCI\\Logging\\BuildLogger');
     $this->testedExecutor = new UnixCommandExecutor($mockBuildLogger->reveal(), __DIR__ . "/");
 }
コード例 #19
0
ファイル: ApiTest.php プロジェクト: devhelp/piwik-api
 protected function setUp()
 {
     parent::setUp();
     $this->client = $this->prophesize('Devhelp\\Piwik\\Api\\Client\\PiwikClient');
 }
コード例 #20
0
 protected function setUp()
 {
     parent::setUp();
     $this->class = new MailMessage();
 }