コード例 #1
0
 /**
  * Sets up dependencies for the test.
  *
  * @return  void
  *
  * @since   1.0
  */
 protected function setUp()
 {
     parent::setUp();
     include_once dirname(__DIR__) . '/inspectors.php';
 }
コード例 #2
0
ファイル: DatabaseTest.php プロジェクト: MATsxm/session
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @return  void
  *
  * @since   1.0
  */
 protected function setUp()
 {
     parent::setUp();
     $this->object = Storage::getInstance('Database', array('db' => static::$driver));
 }
コード例 #3
0
 /**
  * Sets up the fixture.
  *
  * This method is called before a test is executed.
  *
  * @return  void
  *
  * @since   1.0
  */
 protected function setUp()
 {
     parent::setUp();
     static::$instance = DatabaseFactory::getInstance();
 }