You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
510 B
PHP
22 lines
510 B
PHP
<?php
|
|
/**
|
|
* @author nick fox <quixand gmail com>
|
|
*/
|
|
namespace Httpful\Test;
|
|
|
|
class requestTest extends \PHPUnit_Framework_TestCase
|
|
{
|
|
|
|
/**
|
|
* @author Nick Fox
|
|
* @expectedException Httpful\Exception\ConnectionErrorException
|
|
* @expectedExceptionMessage Unable to connect
|
|
*/
|
|
public function testGet_InvalidURL()
|
|
{
|
|
// Silence the default logger via whenError override
|
|
\Httpful\Request::get('unavailable.url')->whenError(function($error) {})->send();
|
|
}
|
|
|
|
}
|