Ejemplo n.º 1
0
 public function setUp()
 {
     $client = new GuzzleHttp\Client();
     $watcher = new Gsaulmon\GuzzleRecorder\GuzzleRecorder(__DIR__ . '/Fixtures/Http');
     $watcher->includeCookies(false);
     $client->getEmitter()->attach($watcher);
     \PHRETS\Http\Client::set($client);
     $config = new \PHRETS\Configuration();
     $config->setLoginUrl('http://retsgw.flexmls.com/rets2_1/Login')->setUsername(getenv('PHRETS_TESTING_USERNAME'))->setPassword(getenv('PHRETS_TESTING_PASSWORD'))->setRetsVersion('1.7.2');
     $this->session = new PHRETS\Session($config);
     $this->session->Login();
 }
Ejemplo n.º 2
0
 /** @test **/
 public function it_allows_overrides()
 {
     $gc = new GuzzleHttp\Client();
     \PHRETS\Http\Client::set($gc);
     $this->assertSame($gc, \PHRETS\Http\Client::make());
 }