コード例 #1
0
ファイル: ProfilerTest.php プロジェクト: kevinwojo/framework
 /**
  * Setup the tests.
  *
  * @return  void
  */
 protected function setUp()
 {
     parent::setUp();
     $this->instance = new Profiler('test');
 }
コード例 #2
0
 /**
  * Sets up the fixture.
  *
  * @return  void
  */
 public function setUp()
 {
     $this->obj = $this->getObjectForTrait('Hubzero\\Base\\Traits\\ErrorBag');
     parent::setUp();
 }
コード例 #3
0
ファイル: PhpTest.php プロジェクト: kevinwojo/framework
 /**
  * Test setup
  *
  * @return  void
  */
 protected function setUp()
 {
     $data = new stdClass();
     $data->app = new stdClass();
     $data->app->application_env = "development";
     $data->app->editor = "ckeditor";
     $data->app->list_limit = 25;
     $data->app->helpurl = "English (GB) - HUBzero help";
     $data->app->debug = 1;
     $data->app->debug_lang = 0;
     $data->app->sef = 1;
     $data->app->sef_rewrite = 1;
     $data->app->sef_suffix = 0;
     $data->app->sef_groups = 0;
     $data->app->feed_limit = 10;
     $data->app->feed_email = "author";
     $data->seo = new stdClass();
     $data->seo->sef = 1;
     $data->seo->sef_groups = 0;
     $data->seo->sef_rewrite = 1;
     $data->seo->sef_suffix = 0;
     $data->seo->unicodeslugs = 0;
     $data->seo->sitename_pagetitles = 0;
     $this->obj = $data;
     $this->arr = array('app' => (array) $data->app, 'seo' => (array) $data->seo);
     $this->processor = new Php();
     parent::setUp();
 }