Scalr\Tests\Service\Aws\RdsTest::assertClientException PHP Метод

assertClientException() публичный Метод

Catch AWS errors
    public function assertClientException(callable $fn)
    {
        try {
            call_user_func($fn);
            $this->fail('ClientException is expected.');
        } catch (ClientException $e) {
            $this->assertContains('AWS Error', $e->getMessage(), '', true);
        }
    }