register() public static method

Will register this class into the autoloader.
public static register ( ) : void
return void
コード例 #1
0
ファイル: LibraryTest.php プロジェクト: nilamdoc/KYCGlobal
 public function setUp()
 {
     Mocker::register();
     $this->_backup['cwd'] = getcwd();
     $this->_backup['_SERVER'] = $_SERVER;
     $_SERVER['argv'] = array();
     chdir($this->_testPath);
     Libraries::add('library_test', array('path' => $this->_testPath . '/library_test', 'bootstrap' => false));
     Libraries::add('library_test_plugin', array('path' => $this->_testPath . '/library_test_plugin'));
     $this->classes = array('service' => 'lithium\\tests\\mocks\\console\\command\\MockLibraryService', 'response' => 'lithium\\tests\\mocks\\console\\MockResponse');
     $this->request = new Request(array('input' => fopen('php://temp', 'w+')));
     $this->library = new Library(array('request' => $this->request, 'classes' => $this->classes));
     $this->testConf = $this->library->conf = $this->_testPath . '/library.json';
 }
コード例 #2
0
ファイル: MockerChainTest.php プロジェクト: fedeisas/lithium
 public function setUp()
 {
     Mocker::register();
 }
コード例 #3
0
ファイル: ComplexityTest.php プロジェクト: nilamdoc/KYCGlobal
 /**
  * Set up a new report which will later be used in the tests.
  *
  * @see lithium\test\Report
  */
 public function setUp()
 {
     $this->report = new Report();
     Mocker::register();
     Mocker::overwriteFunction(false);
 }
コード例 #4
0
ファイル: MockerTest.php プロジェクト: nilamdoc/KYCGlobal
 public function testAutoloadRegister()
 {
     Mocker::register();
     $registered = spl_autoload_functions();
     $this->assertTrue(in_array(array('lithium\\test\\Mocker', 'create'), $registered));
 }
コード例 #5
0
ファイル: AdaptableTest.php プロジェクト: fedeisas/lithium
 public function setUp()
 {
     $this->adaptable = new Adaptable();
     Mocker::register();
 }
コード例 #6
0
ファイル: NewrelicTest.php プロジェクト: mdx-dev/li3_newrelic
 public function setUp()
 {
     Mocker::register();
     $this->selfConfig = Libraries::get('li3_newrelic');
 }