diff --git a/composer.json b/composer.json index 73ec09e..8bb24b2 100644 --- a/composer.json +++ b/composer.json @@ -19,8 +19,7 @@ }, "autoload": { "psr-4": { - "FindBrok\\WatsonTranslate\\": "src/", - "FindBrok\\WatsonTranslate\\Tests\\": "packages/findbrok/laravel-watson-translate/tests/" + "FindBrok\\WatsonTranslate\\": "src/" } } } diff --git a/src/AbstractTranslator.php b/src/AbstractTranslator.php index b6e1988..07b4c67 100644 --- a/src/AbstractTranslator.php +++ b/src/AbstractTranslator.php @@ -82,28 +82,6 @@ public function __construct() $this->setClient(); } - /** - * Calling method that does not exist for testing - * - * @param $method - * @param $parameters - * @return self|null - */ - public function __call($method, $parameters) - { - //Check if this is a pretend method for mocking responses - if(method_exists(new \FindBrok\WatsonTranslate\Tests\Mocks\MockResponses, $method)) { - //Call pretend method - $this->response = call_user_func_array([new \FindBrok\WatsonTranslate\Tests\Mocks\MockResponses, $method], $parameters); - //Add results to class - $this->results = $this->response->getBody()->getContents(); - //Return the object - return $this; - } - //Return - return null; - } - /** * Creates the http client *