Skip to content

Commit

Permalink
MethodNotImplementedException -> MethodArgumentValueNotImplementedExc…
Browse files Browse the repository at this point in the history
…eption
  • Loading branch information
frosas authored and beberlei committed Jun 4, 2012
1 parent 789fc14 commit 4938080
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Component/Locale/Stub/StubIntlDateFormatter.php
Expand Up @@ -416,12 +416,12 @@ public function setCalendar($calendar)
*
* @see http://www.php.net/manual/en/intldateformatter.setlenient.php
*
* @throws MethodNotImplementedException When $lenient is true
* @throws MethodArgumentValueNotImplementedException When $lenient is true
*/
public function setLenient($lenient)
{
if ($lenient) {
throw new MethodNotImplementedException(__METHOD__);
throw new MethodArgumentValueNotImplementedException(__METHOD__, 'lenient', $lenient, 'Only the strict parser is supported');
}
}

Expand Down
Expand Up @@ -908,7 +908,7 @@ public function testSetCalendar()
}

/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
*/
public function testSetLenient()
{
Expand Down

0 comments on commit 4938080

Please sign in to comment.