/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed */ protected function setUp() { global $testCase; $testCase = 'table_for_test'; $this->container = (include './config/container.php'); $this->promiseStore = $this->container->get(StoreFactory::KEY); AsyncCallback::setContaner($this->container); }
/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed */ protected function setUp() { global $testCase; $testCase = 'table_for_test'; $this->container = (include './config/container.php'); $this->promiseStore = AsyncCallback::setContaner($this->container); $this->object = (new Script())->setScriptName(__DIR__ . '/Example/scripts/testScriptProxy.php'); }
/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed */ protected function setUp() { global $testCase; $testCase = 'table_for_test'; // var_dump(fopen('./config/container.php', 'r')); $this->container = (include './config/container.php'); $this->promiseStore = AsyncCallback::setContaner($this->container); $this->object = new ViaHttp(); }