Skip to content

Commit

Permalink
Update tests for Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwindell committed Mar 20, 2013
1 parent 90b0456 commit bef553b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/ZendTest/Filter/DateTimeFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ public function testFormatDateTimeFromTimestamp()
$this->assertEquals('2013-02-01T17:30:01+0000', $result);
}

public function testOriginalValueReturnedOnInvalidInput()
public function testInvalidArgumentExceptionThrownOnInvalidInput()
{
$this->setExpectedException('Zend\Filter\Exception\InvalidArgumentException');

$filter = new DateTimeFormatter();
$result = $filter->filter('2013-31-31');
$this->assertEquals('2013-31-31', $result);
}
}

0 comments on commit bef553b

Please sign in to comment.