1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace PharIo\Manifest;
- use PHPUnit\Framework\TestCase;
- class LicenseTest extends TestCase {
-
- private $license;
- protected function setUp() {
- $this->license = new License('BSD-3-Clause', new Url('https://github.com/sebastianbergmann/phpunit/blob/master/LICENSE'));
- }
- public function testCanBeCreated() {
- $this->assertInstanceOf(License::class, $this->license);
- }
- public function testNameCanBeRetrieved() {
- $this->assertEquals('BSD-3-Clause', $this->license->getName());
- }
- public function testUrlCanBeRetrieved() {
- $this->assertEquals('https://github.com/sebastianbergmann/phpunit/blob/master/LICENSE', $this->license->getUrl());
- }
- }
|