Vendor lock
This commit is contained in:
25
vendor/phar-io/manifest/tests/xml/ComponentElementTest.php
vendored
Normal file
25
vendor/phar-io/manifest/tests/xml/ComponentElementTest.php
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace PharIo\Manifest;
|
||||
|
||||
class ComponentElementTest extends \PHPUnit\Framework\TestCase {
|
||||
/**
|
||||
* @var ComponentElement
|
||||
*/
|
||||
private $component;
|
||||
|
||||
protected function setUp() {
|
||||
$dom = new \DOMDocument();
|
||||
$dom->loadXML('<?xml version="1.0" ?><component xmlns="https://phar.io/xml/manifest/1.0" name="phar-io/phive" version="0.6.0" />');
|
||||
$this->component = new ComponentElement($dom->documentElement);
|
||||
}
|
||||
|
||||
public function testNameCanBeRetrieved() {
|
||||
$this->assertEquals('phar-io/phive', $this->component->getName());
|
||||
}
|
||||
|
||||
public function testEmailCanBeRetrieved() {
|
||||
$this->assertEquals('0.6.0', $this->component->getVersion());
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user