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


PHP Test\Base類代碼示例

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


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

示例1: __construct

 public function __construct(Base $testCase, $entityName, $debug = FALSE)
 {
     $this->testCase = $testCase;
     $this->hostConfig = $testCase->getHostConfig();
     $this->entityMeta = $this->getEntityMeta($entityName);
     $this->setDebug($debug);
     $this->getLogger()->setPrefix('[acceptance]');
 }
開發者ID:pscheit,項目名稱:psc-cms,代碼行數:8,代碼來源:CMSAcceptanceTester.php

示例2: __construct

 public function __construct(\Psc\Code\Test\Base $testCase, $name, Dir $root, array $paths = NULL, $mode = Project::MODE_SRC)
 {
     $this->name = $name;
     $this->root = $root;
     $this->hostConfig = $testCase->getHostConfig();
     $this->projectsFactory = new ProjectsFactory($this->hostConfig);
     $this->paths = $paths;
     $this->mode = $mode;
     parent::__construct($testCase, $fqn = 'Psc\\CMS\\Project');
 }
開發者ID:pscheit,項目名稱:psc-cms,代碼行數:10,代碼來源:ProjectBuilder.php

示例3: setUp

    public function setUp()
    {
        $this->chainClass = 'Psc\\System\\Deploy\\WriteChangelogTask';
        parent::setUp();
        $this->file = $this->newFile('myChangelog.php');
        $this->file->writeContents(<<<'PHP'
<?php

$data = array();
$data[] = array(
  'version'=>'2.0.9-Beta',
  'time'=>'13:14 25.06.2012',
  'changelog'=>array(
    'bugfix: Im Sound Content stand nur "content" statt dem eigentlichen Soundtext',
    'geändert: Bei der Soundsuche wird bei sehr großen Results das Ergebnis auf 15 Einträge eingeschränkt'
    //'bugfix: spinner bei autocomplete wird wieder angezeigt'
  )
);

$data[] = array(
  'version'=>'2.0.8-Beta',
  'time'=>'00:02 25.06.2012',
  'changelog'=>array(
    'geändert: tiptoi Version 2 jetzt online',
    'neu: für Externe Spiele können weitere Dateien hochgeladen werden',
    'neu: Upload Manager',
    'bugfixes: alle Tests laufen wieder'
  )
);
?>
PHP
);
        $this->writeChangelogTask = new WriteChangelogTask($this->file);
    }
開發者ID:pscheit,項目名稱:psc-cms,代碼行數:34,代碼來源:WriteChangelogTaskTest.php

示例4: setUp

 public function setUp()
 {
     $this->chainClass = 'Psc\\Net\\HTTP\\ResponseConverter';
     parent::setUp();
     $this->converter = new ResponseConverter();
     $this->fileWithWhitespace = $this->getCommonFile('whitespace file.txt');
 }
開發者ID:pscheit,項目名稱:psc-cms,代碼行數:7,代碼來源:ResponseConverterTest.php

示例5: setUp

 public function setUp()
 {
     $this->chainClass = 'Psc\\Code\\Build\\CoreBuilder';
     parent::setUp();
     $this->out = $this->newFile('core.phar.gz');
     $this->out->delete();
 }
開發者ID:pscheit,項目名稱:psc-cms,代碼行數:7,代碼來源:CoreBuilderTest.php

示例6: setUp

 public function setUp()
 {
     $this->chainClass = 'Psc\\Net\\HTTP\\RequestHandler';
     $this->handler = new RequestHandler($this->svc = $this->createServiceMock(), $this->converter = $this->createResponseConverterMock());
     $this->handler->setDebugLevel(15);
     parent::setUp();
 }
開發者ID:pscheit,項目名稱:psc-cms,代碼行數:7,代碼來源:RequestHandlerTest.php

示例7: setUp

 public function setUp()
 {
     $this->chainClass = 'Psc\\CMS\\Item\\TabButtonableValueObject';
     parent::setUp();
     $this->defaultObj = $this->obj = new TabButtonableValueObject();
     $this->item = $this->getEntityMeta('Psc\\Doctrine\\TestEntities\\Article')->getAdapter(current($this->loadTestEntities('articles')));
 }
開發者ID:pscheit,項目名稱:psc-cms,代碼行數:7,代碼來源:TabButtonableValueObjectTest.php

示例8: setUp

 public function setUp()
 {
     $this->chainClass = 'Psc\\Code\\Compile\\AddPropertyExtension';
     parent::setUp();
     $this->type = $this->createType('PositiveInteger');
     $this->extension = new AddPropertyExtension('oid', $this->type, AddPropertyExtension::DEPENDENCY_INJECTION_NONE, 'OID');
 }
開發者ID:pscheit,項目名稱:psc-cms,代碼行數:7,代碼來源:AddPropertyExtensionTest.php

示例9: setUp

 public function setUp()
 {
     $this->chainClass = 'Psc\\JS\\Parser';
     parent::setUp();
     $this->parser = new Parser();
     $this->dsl = new AST\DSL();
 }
開發者ID:pscheit,項目名稱:psc-cms,代碼行數:7,代碼來源:ParserBaseTest.php

示例10: setUp

 public function setUp()
 {
     $this->chainClass = 'Psc\\CMS\\EntitySearchPanel';
     parent::setUp();
     $this->meta = new \Psc\Doctrine\TestEntities\ArticleEntityMeta();
     $this->entitySearchPanel = new EntitySearchPanel($this->meta);
 }
開發者ID:pscheit,項目名稱:psc-cms,代碼行數:7,代碼來源:EntitySearchPanelTest.php

示例11: setUp

 public function setUp()
 {
     $this->chainClass = 'Psc\\CMS\\Item\\JooseBridge';
     parent::setUp();
     $this->item = $this->getEntityMeta('Psc\\Doctrine\\TestEntities\\Article')->getAdapter(current($this->loadTestEntities('articles')));
     $this->jooseBridge = new JooseBridge($this->item);
 }
開發者ID:pscheit,項目名稱:psc-cms,代碼行數:7,代碼來源:JooseBridgeTest.php

示例12: setUp

 public function setUp()
 {
     $this->chainClass = 'Psc\\CMS\\EntityViewPackage';
     parent::setUp();
     $this->ev = new EntityViewPackage($this->getTranslationContainer());
     $this->entityForm = $this->getMockBuilder('Psc\\CMS\\EntityForm')->disableOriginalConstructor()->getMock();
 }
開發者ID:pscheit,項目名稱:psc-cms,代碼行數:7,代碼來源:EntityViewPackageTest.php

示例13: setUp

 public function setUp()
 {
     $this->chainClass = 'Psc\\CMS\\Service\\ControllerService';
     $this->project = $this->getMock('Psc\\CMS\\Project', array(), array(), '', FALSE);
     parent::setUp();
     $this->createControllerService();
 }
開發者ID:pscheit,項目名稱:psc-cms,代碼行數:7,代碼來源:ControllerServiceTest.php

示例14: setUp

 public function setUp()
 {
     $this->chainClass = 'Psc\\Form\\SetValidator';
     parent::setUp();
     $this->validator = $this->createFixture();
     $this->failingValidator = $this->createFixture(array('birthday' => 'blubb', 'email' => 'wrong'));
 }
開發者ID:pscheit,項目名稱:psc-cms,代碼行數:7,代碼來源:ComponentsValidatorTest.php

示例15: setUp

 public function setUp()
 {
     $this->chainClass = 'Psc\\UI\\TwitterBootstrap\\Builder';
     parent::setUp();
     $this->builder = new Builder();
     $this->txt = (object) array('teaser' => (object) array('heading' => 'Teaser1 Heading', 'content' => 'Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermen', 'link' => array('/teaser1/more', 'learn more')));
 }
開發者ID:pscheit,項目名稱:psc-cms,代碼行數:7,代碼來源:BuilderTest.php


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