ExceptionThrowingTestSource.php in Migrate Tools 8.5
File
tests/modules/migrate_tools_test/src/Plugin/migrate/source/ExceptionThrowingTestSource.php
View source
<?php
namespace Drupal\migrate_tools_test\Plugin\migrate\source;
use Drupal\migrate\Plugin\migrate\source\SourcePluginBase;
class ExceptionThrowingTestSource extends SourcePluginBase {
public function fields() {
return [];
}
public function __toString() {
return '';
}
public function getIds() {
return [];
}
protected function initializeIterator() {
return new \ArrayIterator();
}
public function rewind() {
throw new \Exception('Rewind Failure');
}
}