public function testNamespaces()
 {
     $this->converter->addNamespace('http://www.example.com', 'some\\php\\ns');
     $namespaces = \PHPUnit_Framework_Assert::readAttribute($this->converter, 'namespaces');
     $this->assertArrayHasKey('http://www.example.com', $namespaces);
     $this->assertEquals('some\\php\\ns', $namespaces['http://www.example.com']);
 }
 public function __construct($useShortArrayTags = true, $ignoreAnnotationErrors = true)
 {
     parent::__construct();
     $this->resolver = new \yapcdi\resolver\MetadataResolver(true);
     $this->useShortArrayTags = $useShortArrayTags;
     $this->ignoreAnnotationErrors = $ignoreAnnotationErrors;
 }
Example #3
0
 /**
  * @param array $aCountries
  */
 public function __construct(array $aCountries)
 {
     $this->oDom = new DOMDocument('1.0', 'UTF-8');
     $this->formatOutput();
     $this->preserveWhiteSpace();
     $this->oDom->appendChild($this->oDom->createElement('countries'));
     parent::__construct($aCountries);
 }