Esempio n. 1
0
 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]');
 }
Esempio n. 2
0
 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');
 }
Esempio n. 3
0
    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);
    }
Esempio n. 4
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\Net\\HTTP\\ResponseConverter';
     parent::setUp();
     $this->converter = new ResponseConverter();
     $this->fileWithWhitespace = $this->getCommonFile('whitespace file.txt');
 }
Esempio n. 5
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\Code\\Build\\CoreBuilder';
     parent::setUp();
     $this->out = $this->newFile('core.phar.gz');
     $this->out->delete();
 }
Esempio n. 6
0
 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();
 }
 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')));
 }
 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');
 }
Esempio n. 9
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\JS\\Parser';
     parent::setUp();
     $this->parser = new Parser();
     $this->dsl = new AST\DSL();
 }
Esempio n. 10
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\CMS\\EntitySearchPanel';
     parent::setUp();
     $this->meta = new \Psc\Doctrine\TestEntities\ArticleEntityMeta();
     $this->entitySearchPanel = new EntitySearchPanel($this->meta);
 }
Esempio n. 11
0
 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);
 }
Esempio n. 12
0
 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();
 }
Esempio n. 13
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\CMS\\Service\\ControllerService';
     $this->project = $this->getMock('Psc\\CMS\\Project', array(), array(), '', FALSE);
     parent::setUp();
     $this->createControllerService();
 }
Esempio n. 14
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\Form\\SetValidator';
     parent::setUp();
     $this->validator = $this->createFixture();
     $this->failingValidator = $this->createFixture(array('birthday' => 'blubb', 'email' => 'wrong'));
 }
Esempio n. 15
0
 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')));
 }
 public function setUp()
 {
     $this->chainClass = 'Psc\\Code\\Test\\Mock\\DoctrineEntityRepositoryBuilder';
     parent::setUp();
     $this->emm = $this->doublesManager->createEntityManagerMock();
     $this->builder = new DoctrineEntityRepositoryBuilder($this, $this->emm);
 }
 public function setUp()
 {
     $this->chainClass = 'Psc\\Doctrine\\HydrationCollectionSynchronizer';
     parent::setUp();
     // unsere Datenbank
     $this->tags = $this->loadTestEntities('tags');
 }
Esempio n. 18
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\CMS\\ComponentMapper';
     parent::setUp();
     $this->mapper = $this->createComponentMapper();
     $this->dumper = new \Psc\Code\Event\Dumper($this->mapper);
 }
Esempio n. 19
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\CMS\\EntityPropertyMeta';
     parent::setUp();
     $this->entityPropertyMeta = new EntityPropertyMeta('translations', new PersistentCollectionType(new GClass('Entities\\User')), 'Übersetzungen');
     $this->singleEntityPropertyMeta = new EntityPropertyMeta('person', new EntityType(new GClass('Entities\\Person')), 'zuständige Person');
 }
Esempio n. 20
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\Doctrine\\ModelCompiler';
     $this->module = $this->getModule('Doctrine');
     $this->classWriter = $this->getMock('Psc\\Code\\Generate\\ClassWriter');
     $this->mc = new ConcreteModelCompiler($this->module, $this->classWriter);
     parent::setUp();
 }
Esempio n. 21
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\System\\Deploy\\CreateBootstrapTask';
     parent::setUp();
     $this->testDir = $this->getTestDirectory('target/');
     $this->targetProject = $this->doublesManager->Project('test-project', $this->testDir)->build();
     $this->task = new CreateBootstrapTask($this->targetProject, 'testproject.ps-webforge.com', $modules = array('Doctrine', 'PHPExcel', 'Imagine'));
 }
Esempio n. 22
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\Doctrine\\EntityRelationMeta';
     parent::setUp();
     $this->source = new EntityRelationMeta(new GClass('tiptoi\\Entities\\User'), EntityRelationMeta::SOURCE, EntityRelationMeta::COLLECTION_VALUED);
     $this->source->setIdentifier('email');
     $this->target = new EntityRelationMeta(new GClass('tiptoi\\Entities\\Product'), EntityRelationMeta::TARGET, EntityRelationMeta::COLLECTION_VALUED);
 }
Esempio n. 23
0
 public function setUp()
 {
     $this->assertNotEmpty($this->annotation, 'Bitte $this->annotation vor parent::setUp() setzen');
     parent::setUp();
     $this->test->object = $this->annotation;
     //$this->parser = new DocParser;
     //$this->parser->addNamespace('Doctrine\ORM\Mapping');
 }
Esempio n. 24
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\Data\\Ical\\Calendar';
     $this->eventClass = 'Psc\\Data\\Ical\\CalendarEvent';
     $this->builderClass = 'Psc\\Data\\Ical\\Builder';
     $this->calendar = $this->createCalendar();
     parent::setUp();
 }
Esempio n. 25
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\Entities\\NavigationNode';
     parent::setUp();
     $this->navigationNode = new NavigationNode(array('de' => 'something de', 'fr' => 'something in france'));
     $this->cs1 = ContentStream::create('de', 'page-content', 'default', 'de-default');
     $this->cs2 = ContentStream::create('en', 'page-content', 'default', 'en-default');
 }
Esempio n. 26
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\System\\SVN\\MiniClient';
     parent::setUp();
     $this->markTestSkipped('test needs a local testing sandbox (dev test)');
     $this->miniClient = new SVNMiniClient();
     $this->repos = new Dir('D:\\www\\TestRepos\\');
 }
Esempio n. 27
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\Code\\Generate\\ClosureCompiler';
     parent::setUp();
     $this->gClass = new GClass('MyClosureClass');
     $this->gClass->setNamespace(__NAMESPACE__);
     $this->closureCompiler = new ClosureCompiler();
 }
Esempio n. 28
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\CMS\\Service\\MetadataGenerator';
     parent::setUp();
     //$this->metadataGenerator = new MetadataGenerator();
     $this->entity = new \Psc\Doctrine\TestEntities\Article('Lorem Ipsum:', 'Lorem Ipsum Dolor sit amet... <more>');
     $this->entity->setId(7);
 }
Esempio n. 29
0
 public function setUp()
 {
     parent::setUp();
     $this->childClass = new GClass('ChildClass');
     $this->childClass->setNamespace(__NAMESPACE__)->elevateClass();
     $this->parentClass = new GClass('ParentClass1');
     $this->parentClass->setNamespace(__NAMESPACE__)->elevateClass();
 }
Esempio n. 30
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\Code\\AST\\LVariableDefinition';
     parent::setUp();
     // set $identifier to 17
     $this->valueDef = new LVariableDefinition(new LVariable('identifier', new LType('Integer')), new LBaseValue(17));
     $this->def = new LVariableDefinition(new LVariable('identifier', new LType('Integer')), NULL);
 }