コード例 #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';
 }
コード例 #2
0
 protected function setUp()
 {
     $this->object =& $this->tournament;
     parent::setUp();
 }
コード例 #3
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();
 }
コード例 #4
0
 /**
  * Re-instantiate $bb as a normal instance without the custom $config
  */
 public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
     self::$bb_static = new BinaryBeast();
     self::$bb_static->disable_ssl_verification();
 }
コード例 #5
0
 function __construct($name = NULL, array $data = array(), $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->object =& $this->bb;
 }
コード例 #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();
 }