Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
#6730 #6761 - using reflection to access the internal config reader
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Dec 31, 2014
1 parent 8abd686 commit 2df6f59
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/ZendTest/Config/Reader/XmlTest.php
Expand Up @@ -157,8 +157,11 @@ public function testCloseWhenCallFromFileReaderGetInvalid()
$configReader = new Xml();

$configReader->fromFile($this->getTestAssetPath('attributes'));

$xmlReader = $this->getInternalXmlReader($configReader);

$this->setExpectedException('PHPUnit_Framework_Error_Warning');
$configReader->getReader()->setParserProperty(XMLReader::VALIDATE, true);
$xmlReader->setParserProperty(XMLReader::VALIDATE, true);
}

/**
Expand All @@ -184,7 +187,6 @@ public function testCloseWhenCallFromStringReaderGetInvalid()
$xmlReader = $this->getInternalXmlReader($configReader);

$this->setExpectedException('PHPUnit_Framework_Error_Warning');

$xmlReader->setParserProperty(XMLReader::VALIDATE, true);
}

Expand Down

0 comments on commit 2df6f59

Please sign in to comment.