Chris@14: , Sebastian Heuer , Sebastian Bergmann Chris@14: * Chris@14: * For the full copyright and license information, please view the LICENSE Chris@14: * file that was distributed with this source code. Chris@14: */ Chris@14: Chris@14: namespace PharIo\Manifest; Chris@14: Chris@14: use PHPUnit\Framework\TestCase; Chris@14: Chris@14: /** Chris@14: * @covers PharIo\Manifest\License Chris@14: * Chris@14: * @uses PharIo\Manifest\Url Chris@14: */ Chris@14: class LicenseTest extends TestCase { Chris@14: /** Chris@14: * @var License Chris@14: */ Chris@14: private $license; Chris@14: Chris@14: protected function setUp() { Chris@14: $this->license = new License('BSD-3-Clause', new Url('https://github.com/sebastianbergmann/phpunit/blob/master/LICENSE')); Chris@14: } Chris@14: Chris@14: public function testCanBeCreated() { Chris@14: $this->assertInstanceOf(License::class, $this->license); Chris@14: } Chris@14: Chris@14: public function testNameCanBeRetrieved() { Chris@14: $this->assertEquals('BSD-3-Clause', $this->license->getName()); Chris@14: } Chris@14: Chris@14: public function testUrlCanBeRetrieved() { Chris@14: $this->assertEquals('https://github.com/sebastianbergmann/phpunit/blob/master/LICENSE', $this->license->getUrl()); Chris@14: } Chris@14: }