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.
information-system/dingdingcallback/vendor/nategood/httpful/tests/Httpful/requestTest.php

22 lines
510 B
PHTML

<?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();
}
}