thrownewMigrateException(sprintf('Format date plugin could not transform "%s" using the format "%s". Error: %s',$value,$fromFormat,$e->getMessage()),$e->getCode(),$e);
thrownewMigrateException(sprintf("Format date plugin could not transform '%s' using the format '%s' for destination '%s'. Error: %s",$value,$fromFormat,$destination_property,$e->getMessage()),$e->getCode(),$e);
}
catch(\UnexpectedValueException$e){
thrownewMigrateException(sprintf('Format date plugin could not transform "%s" using the format "%s" for destination "%s". Error: %s',$value,$fromFormat,$destination_property,$e->getMessage()),$e->getCode(),$e);
thrownewMigrateException(sprintf("Format date plugin could not transform '%s' using the format '%s' for destination '%s'. Error: %s",$value,$fromFormat,$destination_property,$e->getMessage()),$e->getCode(),$e);
@@ -51,7 +51,7 @@ public function testMigrateExceptionBadFormat() {
'to_format'=>'Y-m-d',
];
$this->setExpectedException(MigrateException::class,'Format date plugin could not transform "January 5, 1955" using the format "m/d/Y". Error: The date cannot be created from a format.');
$this->setExpectedException(MigrateException::class,"Format date plugin could not transform 'January 5, 1955' using the format 'm/d/Y' for destination 'field_date'. Error: The date cannot be created from a format.");
@@ -65,7 +65,7 @@ public function testMigrateExceptionUnexpectedValue() {
'to_format'=>'Y-m-d',
];
$this->setExpectedException(MigrateException::class,'Format date plugin could not transform "01/05/55" using the format "m/d/Y" for destination "field_date". Error: The created date does not match the input value.');
$this->setExpectedException(MigrateException::class,"Format date plugin could not transform '01/05/55' using the format 'm/d/Y' for destination 'field_date'. Error: The created date does not match the input value.");