Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 2
0
 /**
  * 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');
 }
Exemplo n.º 3
0
 /**
  * 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();
 }