コード例 #1
0
ファイル: ServiceTest.php プロジェクト: phwoolcon/phwoolcon
 public function tearDown()
 {
     $this->appendRemoteCoverage();
     $this->service->stop();
     $this->service->stop('old');
     parent::tearDown();
 }
コード例 #2
0
ファイル: CliTestCase.php プロジェクト: phwoolcon/phwoolcon
 public function setUp()
 {
     parent::setUp();
     $_SERVER['PHWOOLCON_MIGRATION_PATH'] = TEST_ROOT_PATH . '/bin/migrations';
     $this->cli = Cli::register($this->di);
     $this->cli->setAutoExit(false);
     $this->output = new BufferedOutput();
 }
コード例 #3
0
 public function setUp()
 {
     parent::setUp();
     $this->configTrait = new TestConfigTrait();
     Config::set('white_listed', ['_white_list' => ['foo'], 'foo' => 'bar', 'hello' => 'world']);
     Config::set('black_listed', ['_black_list' => ['foo'], 'foo' => 'bar', 'hello' => 'world']);
     Config::set('protected', ['foo' => 'bar', 'hello' => 'world']);
 }
コード例 #4
0
ファイル: TestCase.php プロジェクト: phwoolcon/payment
 public function setUp()
 {
     parent::setUp();
     Processor::register($this->di);
     new TestOrderModel();
     new TestOrderDataModel();
     $this->processor = $this->di->getShared('payment');
 }
コード例 #5
0
ファイル: UserModelTest.php プロジェクト: phwoolcon/phwoolcon
 public function setUp()
 {
     parent::setUp();
     Db::clearMetadata();
     $this->di->set(User::class, TestUserModel::class);
     $this->di->set(UserProfile::class, TestUserProfileModel::class);
     $this->getUserModelInstance()->delete();
 }
コード例 #6
0
ファイル: RouterTest.php プロジェクト: phwoolcon/phwoolcon
 public function tearDown()
 {
     unset($_SERVER['REQUEST_METHOD']);
     parent::tearDown();
 }
コード例 #7
0
ファイル: SecurityTest.php プロジェクト: phwoolcon/phwoolcon
 public function setUp()
 {
     parent::setUp();
 }
コード例 #8
0
ファイル: ViewTest.php プロジェクト: phwoolcon/phwoolcon
 public function setUp()
 {
     parent::setUp();
     View::register($this->di);
 }
コード例 #9
0
ファイル: I18nTest.php プロジェクト: phwoolcon/phwoolcon
 public function setUp()
 {
     parent::setUp();
     I18n::clearCache();
 }
コード例 #10
0
 public function tearDown()
 {
     Config::set('counter.default', 'auto');
     parent::tearDown();
 }
コード例 #11
0
ファイル: CacheTest.php プロジェクト: phwoolcon/phwoolcon
 public function setUp()
 {
     parent::setUp();
     Cache::register($this->di);
     Cache::flush();
 }
コード例 #12
0
ファイル: CryptTest.php プロジェクト: phwoolcon/phwoolcon
 public function setUp()
 {
     parent::setUp();
     Crypt::reset();
 }
コード例 #13
0
ファイル: DbTest.php プロジェクト: phwoolcon/phwoolcon
 public function setUp()
 {
     parent::setUp();
     Db::connection()->dropTable('config');
     Config::register($this->di);
 }