<?phpnamespaceGuzzleHttp\Test\Handler;useGuzzleHttp\Handler\EasyHandle;useGuzzleHttp\Psr7;/** * @covers \GuzzleHttp\Handler\EasyHandle */classEasyHandleTestextends\PHPUnit_Framework_TestCase{/** * @expectedException \BadMethodCallException * @expectedExceptionMessage The EasyHandle has been released */publicfunctiontestEnsuresHandleExists(){$easy=newEasyHandle;unset($easy->handle);$easy->handle;}}