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'; }
public function setUp() { Mocker::register(); }
/** * 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); }
public function testAutoloadRegister() { Mocker::register(); $registered = spl_autoload_functions(); $this->assertTrue(in_array(array('lithium\\test\\Mocker', 'create'), $registered)); }
public function setUp() { $this->adaptable = new Adaptable(); Mocker::register(); }
public function setUp() { Mocker::register(); $this->selfConfig = Libraries::get('li3_newrelic'); }