當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PhpUnit\AbstractCompilerPassTestCase類代碼示例

本文整理匯總了PHP中Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractCompilerPassTestCase的典型用法代碼示例。如果您正苦於以下問題:PHP AbstractCompilerPassTestCase類的具體用法?PHP AbstractCompilerPassTestCase怎麽用?PHP AbstractCompilerPassTestCase使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了AbstractCompilerPassTestCase類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: setUp

 protected function setUp()
 {
     parent::setUp();
     $this->setDefinition('security.authentication.provider.dao', new Definition());
     $this->setDefinition('security.authentication.provider.anonymous', new Definition());
     $this->setDefinition('security.http_utils', new Definition());
     $this->setDefinition('security.authentication.success_handler', new Definition());
 }
開發者ID:ezsystems,項目名稱:ezpublish-kernel,代碼行數:8,代碼來源:SecurityPassTest.php

示例2: setUp

 public function setUp()
 {
     parent::setUp();
     $this->container->setParameter('ez_io.metadata_handlers', array());
     $this->container->setParameter('ez_io.binarydata_handlers', array());
     $this->container->setDefinition('ezpublish.core.io.binarydata_handler.factory', new Definition());
     $this->container->setDefinition('ezpublish.core.io.metadata_handler.factory', new Definition());
 }
開發者ID:dfritschy,項目名稱:ezpublish-kernel,代碼行數:8,代碼來源:IOConfigurationPassTest.php

示例3: setUp

 protected function setUp()
 {
     parent::setUp();
     $this->apiClientClass = 'CL\\Slack\\Transport\\ApiClient';
     $this->mockApiClientClass = 'CL\\Slack\\Test\\Transport\\MockApiClient';
     $this->setDefinition(self::API_CLIENT_ID, new Definition($this->apiClientClass));
     $this->setDefinition(self::MOCK_API_CLIENT_ID, new Definition($this->mockApiClientClass));
 }
開發者ID:nunojsferreira,項目名稱:CLSlackBundle,代碼行數:8,代碼來源:RegisterApiClientPassTest.php

示例4: setUp

 protected function setUp()
 {
     parent::setUp();
     $this->container->setParameter('cmf_seo.sitemap.configurations', array());
     $nonProviderService = new Definition();
     $this->setDefinition('some_service', $nonProviderService);
     foreach ($this->tagProvider() as $service) {
         $chain = new Definition();
         $this->setDefinition('cmf_seo.sitemap.' . $service[1], $chain);
     }
 }
開發者ID:damonsson,項目名稱:SeoBundle,代碼行數:11,代碼來源:RegisterUrlInformationProviderPassTest.php

示例5: setUp

 protected function setUp()
 {
     parent::setUp();
     $this->setDefinition('ezpublish_debug.data_collector', new Definition());
 }
開發者ID:Pixy,項目名稱:ezpublish-kernel,代碼行數:5,代碼來源:DataCollectorPassTest.php

示例6: setUp

 protected function setUp()
 {
     parent::setUp();
     $this->setDefinition('ezpublish.api.storage_engine.factory', new Definition());
     $this->container->setParameter('ezpublish.api.storage_engine.default', 'default_storage_engine');
 }
開發者ID:Pixy,項目名稱:ezpublish-kernel,代碼行數:6,代碼來源:RegisterStorageEnginePassTest.php

示例7: setUp

 public function setUp()
 {
     parent::setUp();
     require_once __DIR__ . '/mocks.php';
 }
開發者ID:runopencode,項目名稱:traitor-bundle,代碼行數:5,代碼來源:CompilerPassTest.php

示例8: setUp

 protected function setUp()
 {
     parent::setUp();
     $this->container->registerExtension(new DatagridExtension());
     $this->container->loadFromExtension('rollerworks_datagrid');
 }
開發者ID:sstok,項目名稱:rollerworks-datagrid-bundle,代碼行數:6,代碼來源:RequestUriProviderPassTest.php


注:本文中的Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractCompilerPassTestCase類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。