[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/infrastructure/storage/lisk/__tests__/ -> LiskIsolationTestDAO.php (source)

   1  <?php
   2  
   3  final class LiskIsolationTestDAO extends LiskDAO {
   4  
   5    protected $name;
   6    protected $phid;
   7  
   8    public function getConfiguration() {
   9      return array(
  10        self::CONFIG_AUX_PHID => true,
  11      ) + parent::getConfiguration();
  12    }
  13  
  14    public function generatePHID() {
  15      return PhabricatorPHID::generateNewPHID('TISO');
  16    }
  17  
  18    public function establishLiveConnection($mode) {
  19      throw new LiskIsolationTestDAOException(
  20        'Isolation failure! DAO is attempting to connect to an external '.
  21        'resource!');
  22    }
  23  
  24    public function getConnectionNamespace() {
  25      return 'test';
  26    }
  27  
  28    public function getTableName() {
  29      return 'test';
  30    }
  31  
  32  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1