Пример #1
0
 protected function setUp()
 {
     parent::setUp();
     $this->client = new Guzzle\Client();
     $this->mock = new Guzzle\Subscriber\Mock();
     $this->client->getEmitter()->attach($this->mock);
     $this->service = new ServiceMock();
     $this->service->setClient($this->client);
 }
Пример #2
0
 protected function setUp()
 {
     parent::setUp();
     $this->pricing = new PricingPhone($this->getPricing());
 }
Пример #3
0
 protected function tearDown()
 {
     parent::tearDown();
     $this->guzzle = null;
     $this->mock = null;
 }
Пример #4
0
 protected function setUp()
 {
     parent::setUp();
     $this->numbers = new NumberCollection($this->getNumbers());
 }
Пример #5
0
 protected function setUp()
 {
     parent::setUp();
     $this->service = new VoiceMock();
     $this->service->setClient($this->guzzle());
 }