Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function setUp()
 {
     parent::setUp();
     $location = new InMemoryLocation("127.0.0.1", 5555);
     $this->server = new ZeroMqServer($location);
     $this->client = new ZeroMqClient($location);
 }
Exemplo n.º 2
0
 protected function setUp()
 {
     parent::setUp();
     $this->handler = \PhpConsole\Handler::getInstance();
     $this->connector = $this->getMockBuilder('\\PhpConsole\\Connector')->disableOriginalConstructor()->setMethods(array('sendMessage', 'onShutDown', 'isActiveClient'))->getMock();
     $this->connector->expects($this->any())->method('isActiveClient')->will($this->returnValue(true));
     $this->setProtectedProperty($this->handler, 'connector', $this->connector);
 }
Exemplo n.º 3
0
 public function setUp()
 {
     parent::setUp();
     // TODO: Change the autogenerated stub
     $guzzle = new \GuzzleHttp\Client();
     $baseUrl = 'https://mss.swicpc.bankgirot.se/swish-cpcapi/api/v1';
     $options = ['verify' => __DIR__ . '/../_data/ca.crt', 'cert' => __DIR__ . '/../_data/cl.crt', 'ssl_key' => [__DIR__ . '/../_data/key.pem', 'swish']];
     $this->client = new Client($guzzle, $baseUrl, $options);
 }
Exemplo n.º 4
0
 protected function setUp()
 {
     parent::setUp();
     $this->connector = \PhpConsole\Connector::getInstance();
 }
Exemplo n.º 5
0
 public function __construct()
 {
     parent::setUp();
 }
Exemplo n.º 6
0
 protected function setUp()
 {
     parent::setUp();
     $this->randomOutputMustPresentInResponse = false;
 }
Exemplo n.º 7
0
 protected function setUp()
 {
     parent::setUp();
     $this->dumper = new \PhpConsole\Dumper();
 }
Exemplo n.º 8
0
 protected function setUp()
 {
     parent::setUp();
     $this->connector = $this->initConnectorMock();
     $this->dispatcher = $this->initDispatcher($this->connector);
 }
Exemplo n.º 9
0
 protected function setUp()
 {
     parent::setUp();
     $this->evalProvider = new \PhpConsole\EvalProvider();
 }
Exemplo n.º 10
0
 protected function setUp()
 {
     parent::setUp();
     $this->storage = $this->initStorage();
 }