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

Commit

Permalink
Merge branch 'remove-tests-catch-fail' of https://github.com/Maks3w/zf2
Browse files Browse the repository at this point in the history
… into hotfix/tests-exceptions
  • Loading branch information
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 20 deletions.
6 changes: 1 addition & 5 deletions test/Writer/Renderer/Entry/AtomTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,7 @@ public function tearDown()
public function testRenderMethodRunsMinimalWriterContainerProperlyBeforeICheckAtomCompliance()
{
$renderer = new Renderer\Feed\Atom($this->_validWriter);
try {
$renderer->render();
} catch (Writer\Exception $e) {
$this->fail('Valid Writer object caused an exception when building which should never happen');
}
$renderer->render();
}

public function testEntryEncodingHasBeenSet()
Expand Down
6 changes: 1 addition & 5 deletions test/Writer/Renderer/Entry/RssTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,7 @@ public function tearDown()
public function testRenderMethodRunsMinimalWriterContainerProperlyBeforeICheckAtomCompliance()
{
$renderer = new Renderer\Feed\Rss($this->_validWriter);
try {
$renderer->render();
} catch (Writer\Exception $e) {
$this->fail('Valid Writer object caused an exception when building which should never happen');
}
$renderer->render();
}

public function testEntryEncodingHasBeenSet()
Expand Down
6 changes: 1 addition & 5 deletions test/Writer/Renderer/Feed/AtomTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ public function testSetsWriterInConstructor()
public function testBuildMethodRunsMinimalWriterContainerProperlyBeforeICheckAtomCompliance()
{
$feed = new Renderer\Feed\Atom($this->_validWriter);
try {
$feed->render();
} catch (Writer\Exception $e) {
$this->fail('Valid Writer object caused an exception when building which should never happen');
}
$feed->render();
}

public function testFeedEncodingHasBeenSet()
Expand Down
6 changes: 1 addition & 5 deletions test/Writer/Renderer/Feed/RssTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,7 @@ public function testSetsWriterInConstructor()
public function testBuildMethodRunsMinimalWriterContainerProperlyBeforeICheckRssCompliance()
{
$feed = new Renderer\Feed\Rss($this->_validWriter);
try {
$feed->render();
} catch (Writer\Exception\ExceptionInterface $e) {
$this->fail('Valid Writer object caused an exception when building which should never happen');
}
$feed->render();
}

public function testFeedEncodingHasBeenSet()
Expand Down

0 comments on commit efcb47b

Please sign in to comment.