Skip to content

Commit c6cef76

Browse files
committed
travisci fixes
1 parent d8b9f7f commit c6cef76

File tree

3 files changed

+0
-21
lines changed

3 files changed

+0
-21
lines changed

src/Client.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,6 @@ public function getBranchId()
185185
public function __call($method, array $args)
186186
{
187187
$class = 'JulianoBailao\DomusApi\Endpoints\\'.ucfirst(strtolower($method));
188-
189-
if (!class_exists($class)) {
190-
throw new InvalidApiEndPointException("The domus api $method endpoint don't exists.", 1);
191-
}
192-
193188
array_unshift($args, $this);
194189

195190
return call_user_func_array([new \ReflectionClass($class), 'newInstance'], $args);

src/Exception/InvalidApiEndPointException.php

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/ClientTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@ public function testSetBranch()
3232
$this->assertEquals($client->getBranchId(), FakeHandler::getJson('branch')->id);
3333
}
3434

35-
public function testInvalidApiEndPointException()
36-
{
37-
$this->expectException(InvalidApiEndPointException::class);
38-
39-
$client = new Client('foo.bar', '8080', 'username', 'password');
40-
$client->inexistentEndpoint();
41-
}
42-
4335
public function testCall()
4436
{
4537
$client = new Client('foo.bar', '8080', 'username', 'password');

0 commit comments

Comments
 (0)