/** * If calling checkPort without an explicit port or an default port, * throw an exception * * @expectedException Exception */ public function testCheckUrlException() { $checker = new \Amp\Util\PortChecker(); $checker->checkUrl('invalidscheme://example.com'); }