MethodNotImplementedException -> MethodArgumentValueNotImplementedException
This commit is contained in:
parent
789fc14145
commit
4938080422
@ -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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -908,7 +908,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