Skip to content

Commit

Permalink
updated tests for Zend\Form\Decorator's [Abstract, ViewHelper, ViewSc…
Browse files Browse the repository at this point in the history
…ript]
  • Loading branch information
Shreef committed Oct 14, 2010
1 parent 2454925 commit df5f6fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/Zend/Form/Decorator/AbstractTest.php
Expand Up @@ -103,7 +103,7 @@ public function testSetElementAllowsDisplayGroups()
public function testSetElementThrowsExceptionWithInvalidElementTypes()
{
$config = new Config(array());
$this->setExpectedException('Zend\Form\Exception', 'Invalid element');
$this->setExpectedException('Zend\Form\Decorator\Exception\InvalidArgumentException', 'Invalid element');
$this->decorator->setElement($config);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Zend/Form/Decorator/ViewHelperTest.php
Expand Up @@ -110,7 +110,7 @@ public function testRenderThrowsExceptionIfNoViewSetInElement()
{
$element = $this->getElement();
$content = 'test content';
$this->setExpectedException('Zend\Form\Exception', 'ViewHelper decorator cannot render');
$this->setExpectedException('Zend\Form\Decorator\Exception\UnexpectedValueException', 'ViewHelper decorator cannot render');
$test = $this->decorator->render($content);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Zend/Form/Decorator/ViewScriptTest.php
Expand Up @@ -66,7 +66,7 @@ public function getElement()

public function testRenderRaisesExceptionIfNoViewScriptRegistered()
{
$this->setExpectedException('Zend\Form\Exception', 'script');
$this->setExpectedException('Zend\Form\Decorator\Exception\UnexpectedValueException', 'script');
$this->getElement();
$this->decorator->render('');
}
Expand Down

0 comments on commit df5f6fa

Please sign in to comment.