<?php/* * This file is part of PharIo\Manifest. * * (c) Arne Blankerts <arne@blankerts.de>, Sebastian Heuer <sebastian@phpeople.de>, Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */namespacePharIo\Manifest;usePHPUnit\Framework\TestCase;/** * @covers PharIo\Manifest\Url */classUrlTestextendsTestCase{publicfunctiontestCanBeCreatedForValidUrl(){$this->assertInstanceOf(Url::class,newUrl('https://phar.io/'));}publicfunctiontestCanBeUsedAsString(){$this->assertEquals('https://phar.io/',newUrl('https://phar.io/'));}/** * @covers PharIo\Manifest\InvalidUrlException */publicfunctiontestCannotBeCreatedForInvalidUrl(){$this->expectException(InvalidUrlException::class);newUrl('invalid');}}