Skip to content

Commit afdfd81

Browse files
committed
Removes extension exception
1 parent 3c48090 commit afdfd81

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

src/HttpAdapterException.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -191,19 +191,6 @@ public static function doesNotSupportSubAdapter($adapter, $subAdapter)
191191
return new self(sprintf('The adapter "%s" does not support the sub-adapter "%s".', $adapter, $subAdapter));
192192
}
193193

194-
/**
195-
* Returns a "EXTENSION IS NOT LOADED" exception
196-
*
197-
* @param string $extension
198-
* @param string $adapter
199-
*
200-
* @return self
201-
*/
202-
public static function extensionIsNotLoaded($extension, $adapter)
203-
{
204-
return new self(sprintf('The adapter "%s" expects the PHP extension "%s" to be loaded.', $adapter, $extension));
205-
}
206-
207194
/**
208195
* Returns a "MAX REDIRECTS EXCEEDED" exception
209196
*

tests/HttpAdapterExceptionTest.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -155,17 +155,6 @@ public function testDoesNotSupportSubAdapter()
155155
);
156156
}
157157

158-
public function testExtensionIsNotLoaded()
159-
{
160-
$exception = HttpAdapterException::extensionIsNotLoaded('extension', 'adapter');
161-
162-
$this->assertInstanceOf('Http\Adapter\HttpAdapterException', $exception);
163-
$this->assertSame(
164-
'The adapter "adapter" expects the PHP extension "extension" to be loaded.',
165-
$exception->getMessage()
166-
);
167-
}
168-
169158
public function testMaxRedirectsExceeded()
170159
{
171160
$exception = HttpAdapterException::maxRedirectsExceeded('uri', 5, 'adapter');

0 commit comments

Comments
 (0)