public function provideExceptions()
{
$arguments = array();
$previousException = new \Exception();
foreach (glob(__DIR__ . '/../../../src/fXmlRpc/Exception/*Exception.php') as $file) {
$exceptionClassName = 'fXmlRpc\\Exception\\' . preg_replace('~^.*/(.+?Exception)\\.php$~', '$1', $file);
$exceptionClass = new ReflectionClass($exceptionClassName);
if ($exceptionClass->isAbstract()) {
continue;
}
$arguments[] = array(new $exceptionClassName('message', 100, $previousException));
}
return $arguments;
}