Thanks to visit codestin.com
Credit goes to github.com

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

Commit 138488a

Browse files
committed
zendframework/zendframework#6730 zendframework/zendframework#6761 - clarifying on weird warning assertions
1 parent def4708 commit 138488a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/Reader/XmlTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ public function testCloseWhenCallFromFileReaderGetInvalid()
152152
$xmlReader = $this->getInternalXmlReader($configReader);
153153

154154
$this->setExpectedException('PHPUnit_Framework_Error_Warning');
155+
156+
// following operation should fail because the internal reader is closed (and expected to be closed)
155157
$xmlReader->setParserProperty(XMLReader::VALIDATE, true);
156158
}
157159

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

180182
$this->setExpectedException('PHPUnit_Framework_Error_Warning');
183+
184+
// following operation should fail because the internal reader is closed (and expected to be closed)
181185
$xmlReader->setParserProperty(XMLReader::VALIDATE, true);
182186
}
183187

0 commit comments

Comments
 (0)