MethodNotImplementedException -> MethodArgumentValueNotImplementedException

This commit is contained in:
Francesc Rosàs 2012-05-31 05:04:03 +02:00
parent cea6489ddf
commit d55f7ed689
2 changed files with 3 additions and 3 deletions

View File

@ -416,12 +416,12 @@ class StubIntlDateFormatter
*
* @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');
}
}

View File

@ -906,7 +906,7 @@ class StubIntlDateFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
*/
public function testSetLenient()
{