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 PharIo\Version\Version; Chris@14: use PHPUnit\Framework\TestCase; Chris@14: Chris@14: /** Chris@14: * @covers PharIo\Manifest\BundledComponent Chris@14: * Chris@14: * @uses \PharIo\Version\Version Chris@14: */ Chris@14: class BundledComponentTest extends TestCase { Chris@14: /** Chris@14: * @var BundledComponent Chris@14: */ Chris@14: private $bundledComponent; Chris@14: Chris@14: protected function setUp() { Chris@14: $this->bundledComponent = new BundledComponent('phpunit/php-code-coverage', new Version('4.0.2')); Chris@14: } Chris@14: Chris@14: public function testCanBeCreated() { Chris@14: $this->assertInstanceOf(BundledComponent::class, $this->bundledComponent); Chris@14: } Chris@14: Chris@14: public function testNameCanBeRetrieved() { Chris@14: $this->assertEquals('phpunit/php-code-coverage', $this->bundledComponent->getName()); Chris@14: } Chris@14: Chris@14: public function testVersionCanBeRetrieved() { Chris@14: $this->assertEquals('4.0.2', $this->bundledComponent->getVersion()->getVersionString()); Chris@14: } Chris@14: }