You are here

public function HttpClientTest::testMagicMethodCallWithWrongCommandName in HTTP Client Manager 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/HttpClientTest.php \Drupal\Tests\http_client_manager\Unit\HttpClientTest::testMagicMethodCallWithWrongCommandName()

Tests HttpClient::__call() with wrong command name.

@covers ::__call

@expectedException \Guzzle\Common\Exception\InvalidArgumentException @expectedExceptionMessage Command was not found matching missing

File

tests/src/Unit/HttpClientTest.php, line 155

Class

HttpClientTest
Class HttpClientTest.

Namespace

Drupal\Tests\http_client_manager\Unit

Code

public function testMagicMethodCallWithWrongCommandName() {
  $this->client
    ->missing();
}