/**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     $this->app->singleton('livedocx.livedocx', function () {
         $client = new Client(new SoapClient(config('livedocx.wsdl')));
         $client->connect(config('livedocx.username'), config('livedocx.password'));
         return new Livedocx($client, new Container(), true);
     });
 }
Example #2
0
 public function test_proxy()
 {
     $mock = $this->scaffoldMock();
     $mock->getMockController()->LogIn = true;
     $mock->getMockController()->testMethod = true;
     $ldxclient = new LdxClient($mock);
     $ldxclient->connect('test', 'test');
     $this->boolean($ldxclient->testMethod())->mock($mock)->call('testMethod')->once();
 }