Ejemplo n.º 1
0
 protected function setUp()
 {
     parent::setUp();
     $this->object = $this->bb->tournament();
     $this->object->title = 'PHP API library map_pool Unit Test';
     $this->object->game_code = 'HotS';
 }
 /**
  * Pseudo test constructor - set object to $bb->tournament,
  *  and verify that it's an instance of LocalTournament, as per
  *  defined in our custom BBConfiguration
  */
 protected function setUp()
 {
     $this->bb =& self::$bb_static;
     $this->object = $this->bb->tournament();
     $this->assertInstanceOf('BBTournament', $this->object);
     $this->assertInstanceOf('LocalTournament', $this->object);
     parent::setUp();
 }
Ejemplo n.º 3
0
 /**
  * Pseudo test constructor - set object to $bb->tournament,
  *  and verify that it's an instance of LocalTournament, as per
  *  defined in our custom BBConfiguration
  */
 protected function setUp()
 {
     $this->bb =& self::$bb_static;
     $this->get_tournament_inactive();
     $this->object = $this->bb->team();
     $this->assertInstanceOf('BBTeam', $this->object);
     $this->assertInstanceOf('LocalTeam', $this->object);
     parent::setUp();
 }
 protected function setUp()
 {
     $this->object =& $this->tournament;
     parent::setUp();
 }
Ejemplo n.º 5
0
 /**
  * By default, make sure we have a "new" unsaved tournament to play with
  */
 protected function setUp()
 {
     $this->get_tournament_inactive();
     $this->object = $this->tournament->team();
     parent::setUp();
 }
Ejemplo n.º 6
0
 /**
  * Runs before each test - grab a tournament with some open untouched matches, and 
  *  save one of them to our local $object property
  */
 protected function setUp()
 {
     $this->set_object();
     parent::setUp();
 }