Exemplo n.º 1
0
 /**
  * @covers PHPUnit::execute
  */
 public function testExecute_CreateBuildWithExtra()
 {
     $project = new Project();
     $project->setType('bitbucket');
     $project->setId(101);
     $returnValue = $this->testedService->createBuild($project, null, null, null, null, array('item1' => 1001));
     $this->assertEquals(1001, $returnValue->getExtra('item1'));
 }
Exemplo n.º 2
0
 public function setUp()
 {
     $project = new Project();
     $project->setId(3);
     $project->setBranch(self::BRANCH);
     $project->setTitle('Test');
     $this->project = $project;
     $this->timezone = date_default_timezone_get();
     date_default_timezone_set('UTC');
 }