diff --git a/src/Client.php b/src/Client.php index 85917fe..ad9777b 100644 --- a/src/Client.php +++ b/src/Client.php @@ -143,7 +143,7 @@ * All public methods of the `Client` are considered *advanced usage*. * If you want to call RPC functions, see below for the [`Proxy`](#proxy) class. */ -final class Client +class Client { private $browser; private $encoder; diff --git a/tests/ProxyTest.php b/tests/ProxyTest.php new file mode 100644 index 0000000..9081cc1 --- /dev/null +++ b/tests/ProxyTest.php @@ -0,0 +1,16 @@ +getMockBuilder('Clue\React\Soap\Client')->disableOriginalConstructor()->getMock(); + $client->expects($this->once())->method('soapCall')->with('demo', array(1, 2)); + + $proxy = new Proxy($client); + $proxy->demo(1, 2); + } +}