本文整理汇总了PHP中Psc\Code\Test\Base::setUp方法的典型用法代码示例。如果您正苦于以下问题:PHP Base::setUp方法的具体用法?PHP Base::setUp怎么用?PHP Base::setUp使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Psc\Code\Test\Base
的用法示例。
在下文中一共展示了Base::setUp方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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);
}
示例2: setUp
public function setUp()
{
$this->chainClass = 'Psc\\Code\\Build\\CoreBuilder';
parent::setUp();
$this->out = $this->newFile('core.phar.gz');
$this->out->delete();
}
示例3: setUp
public function setUp()
{
$this->chainClass = 'Psc\\Form\\SetValidator';
parent::setUp();
$this->validator = $this->createFixture();
$this->failingValidator = $this->createFixture(array('birthday' => 'blubb', 'email' => 'wrong'));
}
示例4: setUp
public function setUp()
{
$this->chainClass = 'Psc\\CMS\\ComponentMapper';
parent::setUp();
$this->mapper = $this->createComponentMapper();
$this->dumper = new \Psc\Code\Event\Dumper($this->mapper);
}
示例5: setUp
public function setUp()
{
$this->chainClass = 'Psc\\CMS\\EntitySearchPanel';
parent::setUp();
$this->meta = new \Psc\Doctrine\TestEntities\ArticleEntityMeta();
$this->entitySearchPanel = new EntitySearchPanel($this->meta);
}
示例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();
}
示例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')));
}
示例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');
}
示例9: setUp
public function setUp()
{
$this->chainClass = 'Psc\\Code\\Test\\Mock\\DoctrineEntityRepositoryBuilder';
parent::setUp();
$this->emm = $this->doublesManager->createEntityManagerMock();
$this->builder = new DoctrineEntityRepositoryBuilder($this, $this->emm);
}
示例10: 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);
}
示例11: setUp
public function setUp()
{
$this->chainClass = 'Psc\\Net\\HTTP\\ResponseConverter';
parent::setUp();
$this->converter = new ResponseConverter();
$this->fileWithWhitespace = $this->getCommonFile('whitespace file.txt');
}
示例12: setUp
public function setUp()
{
$this->chainClass = 'Psc\\CMS\\Service\\ControllerService';
$this->project = $this->getMock('Psc\\CMS\\Project', array(), array(), '', FALSE);
parent::setUp();
$this->createControllerService();
}
示例13: setUp
public function setUp()
{
$this->chainClass = 'Psc\\JS\\Parser';
parent::setUp();
$this->parser = new Parser();
$this->dsl = new AST\DSL();
}
示例14: 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')));
}
示例15: setUp
public function setUp()
{
$this->chainClass = 'Psc\\Doctrine\\HydrationCollectionSynchronizer';
parent::setUp();
// unsere Datenbank
$this->tags = $this->loadTestEntities('tags');
}