MethodNotImplementedException -> MethodArgumentValueNotImplementedException
This commit is contained in:
parent
cea6489ddf
commit
d55f7ed689
@ -416,12 +416,12 @@ class StubIntlDateFormatter
|
|||||||
*
|
*
|
||||||
* @see http://www.php.net/manual/en/intldateformatter.setlenient.php
|
* @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)
|
public function setLenient($lenient)
|
||||||
{
|
{
|
||||||
if ($lenient) {
|
if ($lenient) {
|
||||||
throw new MethodNotImplementedException(__METHOD__);
|
throw new MethodArgumentValueNotImplementedException(__METHOD__, 'lenient', $lenient, 'Only the strict parser is supported');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -906,7 +906,7 @@ class StubIntlDateFormatterTest extends LocaleTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
|
* @expectedException Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
|
||||||
*/
|
*/
|
||||||
public function testSetLenient()
|
public function testSetLenient()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user