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

Commit

Permalink
#6730 #6761 - clarifying on weird warning assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Dec 31, 2014
1 parent 0bfeb8f commit 5bc511c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/ZendTest/Config/Reader/XmlTest.php
Expand Up @@ -152,6 +152,8 @@ public function testCloseWhenCallFromFileReaderGetInvalid()
$xmlReader = $this->getInternalXmlReader($configReader);

$this->setExpectedException('PHPUnit_Framework_Error_Warning');

// following operation should fail because the internal reader is closed (and expected to be closed)
$xmlReader->setParserProperty(XMLReader::VALIDATE, true);
}

Expand All @@ -178,6 +180,8 @@ public function testCloseWhenCallFromStringReaderGetInvalid()
$xmlReader = $this->getInternalXmlReader($configReader);

$this->setExpectedException('PHPUnit_Framework_Error_Warning');

// following operation should fail because the internal reader is closed (and expected to be closed)
$xmlReader->setParserProperty(XMLReader::VALIDATE, true);
}

Expand Down

0 comments on commit 5bc511c

Please sign in to comment.