radarrplexorganizrnginxsonarrdashboardsabnzbdheimdallembycouchpotatonzbgetbookmarkapplication-dashboardmuximuxlandingpagestartpagelandinghtpcserverhomepage
		
		
		
		
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							25 lines
						
					
					
						
							713 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							25 lines
						
					
					
						
							713 B
						
					
					
				
								<?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());
							 | 
						|
								    }
							 | 
						|
								
							 | 
						|
								}
							 | 
						|
								
							 |