[BUGFIX] Fix the unit tests to work with PHPUnit 3.6
authorOliver Klee <typo3-coding@oliverklee.de>
Fri, 6 Apr 2012 23:54:46 +0000 (01:54 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 12 Apr 2012 16:26:48 +0000 (18:26 +0200)
Phpunit 3.6 is no longer able to test for a generic Exception
class. The main part of this patch changes generic Exceptions to
better detailed subclasses to give more information on the error.

Change-Id: I2197b88fae4e90d8c5ceaa0f983f43ef1388ed02
Fixes: #35202
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/10187
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
21 files changed:
t3lib/class.t3lib_compressor.php
t3lib/class.t3lib_lock.php
t3lib/config_default.php
t3lib/file/FileReference.php
t3lib/file/ProcessedFile.php
t3lib/file/Service/BackwardsCompatibility/TslibContentAdapterService.php
t3lib/file/Storage.php
t3lib/mail/class.t3lib_mail_mboxtransport.php
t3lib/mail/class.t3lib_mail_rfc822addressesparser.php
t3lib/tree/pagetree/class.t3lib_tree_pagetree_commands.php
tests/t3lib/class.t3lib_extmgmTest.php
tests/t3lib/file/Driver/LocalDriverTest.php
tests/t3lib/file/FactoryTest.php
tests/t3lib/file/FileTest.php
tests/t3lib/file/FolderTest.php
tests/t3lib/utility/class.t3lib_utility_mailTest.php
typo3/sysext/em/classes/connection/class.tx_em_connection_soap.php
typo3/sysext/form/Classes/Domain/Factory/Typoscript.php
typo3/sysext/scheduler/class.tx_scheduler_croncmd_normalize.php
typo3/sysext/scheduler/tasks/class.tx_scheduler_recyclergarbagecollection.php
typo3/sysext/scheduler/tasks/class.tx_scheduler_tablegarbagecollection.php

index 8b22006..cbb4b7f 100644 (file)
@@ -280,7 +280,7 @@ class t3lib_Compressor {
                        // Get file type
                $type = strtolower(trim($type, '. '));
                if (empty($type)) {
                        // Get file type
                $type = strtolower(trim($type, '. '));
                if (empty($type)) {
-                       throw new Exception('Error in t3lib_Compressor: No valid file type given for merged file', 1308957498);
+                       throw new InvalidArgumentException('Error in t3lib_Compressor: No valid file type given for merged file', 1308957498);
                }
 
                        // we add up the filenames, filemtimes and filsizes to later build a checksum over
                }
 
                        // we add up the filenames, filemtimes and filsizes to later build a checksum over
index 719e0fc..eeadfd5 100644 (file)
@@ -126,7 +126,7 @@ class t3lib_lock {
                        case 'semaphore':
                                $this->id = abs(crc32($id));
                                if (($this->resource = sem_get($this->id, 1)) === FALSE) {
                        case 'semaphore':
                                $this->id = abs(crc32($id));
                                if (($this->resource = sem_get($this->id, 1)) === FALSE) {
-                                       throw new Exception(
+                                       throw new RuntimeException(
                                                'Unable to get semaphore',
                                                1313828196
                                        );
                                                'Unable to get semaphore',
                                                1313828196
                                        );
index 7ff9a0e..85a528e 100644 (file)
@@ -773,7 +773,7 @@ define('TYPO3_URL_DONATE', 'http://typo3.org/donate/');
 
        // Include localconf.php. Use this file to configure TYPO3 for your needs and database
 if (!@is_file(PATH_typo3conf . 'localconf.php')) {
 
        // Include localconf.php. Use this file to configure TYPO3 for your needs and database
 if (!@is_file(PATH_typo3conf . 'localconf.php')) {
-       throw new Exception('localconf.php is not found!');
+       throw new RuntimeException('localconf.php is not found!', 1333754332);
 }
 require(PATH_typo3conf.'localconf.php');
 
 }
 require(PATH_typo3conf.'localconf.php');
 
index c6691b2..decb04b 100644 (file)
@@ -94,7 +94,7 @@ class t3lib_file_FileReference implements t3lib_file_FileInterface {
                $this->propertiesOfFileReference = $fileReferenceData;
 
                if (!$fileReferenceData['uid_local']) {
                $this->propertiesOfFileReference = $fileReferenceData;
 
                if (!$fileReferenceData['uid_local']) {
-                       throw new Exception('Incorrect reference to original file given for FileReference.', 1300098528);
+                       throw new InvalidArgumentException('Incorrect reference to original file given for FileReference.', 1300098528);
                }
 
                if (!$factory) {
                }
 
                if (!$factory) {
@@ -107,7 +107,7 @@ class t3lib_file_FileReference implements t3lib_file_FileInterface {
                $this->fileRepository = t3lib_div::makeInstance('t3lib_file_Repository_FileRepository');
 
                if (!is_object($this->originalFile)) {
                $this->fileRepository = t3lib_div::makeInstance('t3lib_file_Repository_FileRepository');
 
                if (!is_object($this->originalFile)) {
-                       throw new Exception('Original File not found for FileReference.', 1300098529);
+                       throw new RuntimeException('Original File not found for FileReference.', 1300098529);
                }
 
                $this->name = $fileReferenceData['name'] !== '' ? $fileReferenceData['name'] : $this->originalFile->getName();
                }
 
                $this->name = $fileReferenceData['name'] !== '' ? $fileReferenceData['name'] : $this->originalFile->getName();
@@ -349,7 +349,7 @@ class t3lib_file_FileReference implements t3lib_file_FileInterface {
        public function delete() {
                        // TODO: Implement this function. This should only delete the
                        // FileReference (sys_file_reference) record, not the file itself.
        public function delete() {
                        // TODO: Implement this function. This should only delete the
                        // FileReference (sys_file_reference) record, not the file itself.
-               throw new Exception('Function not implemented FileReference::delete().');
+               throw new BadMethodCallException('Function not implemented FileReference::delete().', 1333754461);
                return $this->fileRepository->removeUsageRecord($this);
        }
 
                return $this->fileRepository->removeUsageRecord($this);
        }
 
@@ -362,7 +362,7 @@ class t3lib_file_FileReference implements t3lib_file_FileInterface {
        public function rename($newName) {
                        // TODO: Implement this function. This should only rename the
                        // FileReference (sys_file_reference) record, not the file itself.
        public function rename($newName) {
                        // TODO: Implement this function. This should only rename the
                        // FileReference (sys_file_reference) record, not the file itself.
-               throw new Exception('Function not implemented FileReference::rename().');
+               throw new BadMethodCallException('Function not implemented FileReference::rename().', 1333754473);
                return $this->fileRepository->renameUsageRecord($this, $newName);
        }
 
                return $this->fileRepository->renameUsageRecord($this, $newName);
        }
 
index 5d4bed9..af8db15 100644 (file)
@@ -111,7 +111,7 @@ class t3lib_file_ProcessedFile extends t3lib_file_AbstractFile {
         * @return t3lib_file_File The file object (allows chaining).
         */
        public function setContents($contents) {
         * @return t3lib_file_File The file object (allows chaining).
         */
        public function setContents($contents) {
-               throw new Exception('Setting contents not possible for processed file.', 1305438528);
+               throw new BadMethodCallException('Setting contents not possible for processed file.', 1305438528);
        }
 
        /****************************************
        }
 
        /****************************************
index 0586142..da81ac3 100644 (file)
@@ -108,7 +108,7 @@ class t3lib_file_Service_BackwardsCompatibility_TslibContentAdapterService {
                                        if (count($files) > 0) {
 
                                        } elseif ($row['image'] > 0) {
                                        if (count($files) > 0) {
 
                                        } elseif ($row['image'] > 0) {
-                                               throw new Exception('inconsistent count field in "' . $table . '".'.$migrateFieldName);
+                                               throw new RuntimeException('inconsistent count field in "' . $table . '".' . $migrateFieldName, 1333754565);
                                        }
                                }
                        }
                                        }
                                }
                        }
index 103aa60..614d409 100644 (file)
@@ -278,7 +278,10 @@ class t3lib_file_Storage {
         * @param string $identifier
         */
        public function getFolderByIdentifier($identifier) {
         * @param string $identifier
         */
        public function getFolderByIdentifier($identifier) {
-               throw new Exception('Function t3lib_file_Storage::getFolderByIdentifier() has been renamed to just getFolder(). Please fix the metho call.');
+               throw new BadMethodCallException(
+                       'Function t3lib_file_Storage::getFolderByIdentifier() has been renamed to just getFolder(). Please fix the method call.',
+                       1333754514
+               );
        }
 
        /**
        }
 
        /**
@@ -287,7 +290,11 @@ class t3lib_file_Storage {
         * @param string $identifier
         */
        public function getFileByIdentifier($identifier) {
         * @param string $identifier
         */
        public function getFileByIdentifier($identifier) {
-               throw new Exception('Function t3lib_file_Storage::getFileByIdentifier() has been renamed to just getFileInfoByIdentifier().  Please fix the metho call.');
+               throw new BadMethodCallException(
+                       'Function t3lib_file_Storage::getFileByIdentifier() has been renamed to just getFileInfoByIdentifier(). ' .
+                               'Please fix the metho call.',
+                       1333754533
+               );
        }
 
        /**
        }
 
        /**
index 612fd1b..d094fae 100644 (file)
@@ -75,7 +75,7 @@ class t3lib_mail_MboxTransport implements Swift_Transport {
         * @param Swift_Mime_Message $message The message to send
         * @param string[] &$failedRecipients To collect failures by-reference, nothing will fail in our debugging case
         * @return int
         * @param Swift_Mime_Message $message The message to send
         * @param string[] &$failedRecipients To collect failures by-reference, nothing will fail in our debugging case
         * @return int
-        * @throws Exception
+        * @throws RuntimeException
         */
        public function send(Swift_Mime_Message $message, &$failedRecipients = NULL) {
                $message->generateId();
         */
        public function send(Swift_Mime_Message $message, &$failedRecipients = NULL) {
                $message->generateId();
index ace379a..438a1e1 100644 (file)
@@ -171,7 +171,7 @@ class t3lib_mail_Rfc822AddressesParser {
                while ($this->address = $this->_splitAddresses($this->address));
 
                if ($this->address === FALSE || isset($this->error)) {
                while ($this->address = $this->_splitAddresses($this->address));
 
                if ($this->address === FALSE || isset($this->error)) {
-                       throw new Exception($this->error, 1294681466);
+                       throw new InvalidArgumentException($this->error, 1294681466);
                }
 
                // Validate each address individually.  If we encounter an invalid
                }
 
                // Validate each address individually.  If we encounter an invalid
@@ -180,7 +180,7 @@ class t3lib_mail_Rfc822AddressesParser {
                        $valid = $this->_validateAddress($address);
 
                        if ($valid === FALSE || isset($this->error)) {
                        $valid = $this->_validateAddress($address);
 
                        if ($valid === FALSE || isset($this->error)) {
-                               throw new Exception($this->error, 1294681467);
+                               throw new InvalidArgumentException($this->error, 1294681467);
                        }
 
                        $this->structure = array_merge($this->structure, $valid);
                        }
 
                        $this->structure = array_merge($this->structure, $valid);
index 69c3923..a4324ee 100644 (file)
@@ -171,7 +171,7 @@ final class t3lib_tree_pagetree_Commands {
         *
         * @param array $cmd
         * @param array $data
         *
         * @param array $cmd
         * @param array $data
-        * @throws Exception if an error happened while the TCE processing
+        * @throws RuntimeException if an error happened while the TCE processing
         * @return array
         */
        protected static function processTceCmdAndDataMap(array $cmd, array $data = array()) {
         * @return array
         */
        protected static function processTceCmdAndDataMap(array $cmd, array $data = array()) {
@@ -191,7 +191,7 @@ final class t3lib_tree_pagetree_Commands {
 
                        // check errors
                if (count($tce->errorLog)) {
 
                        // check errors
                if (count($tce->errorLog)) {
-                       throw new Exception(implode(chr(10), $tce->errorLog));
+                       throw new RuntimeException(implode(chr(10), $tce->errorLog), 1333754629);
                }
 
                return $returnValues;
                }
 
                return $returnValues;
index 4e1ec62..e9e0388 100644 (file)
@@ -107,7 +107,7 @@ class t3lib_extmgmTest extends tx_phpunit_testcase {
         * @test
         */
        public function extPathSearchesForPathOfExtensionInRequiredExtensionList() {
         * @test
         */
        public function extPathSearchesForPathOfExtensionInRequiredExtensionList() {
-               $this->setExpectedException('Exception', '', 1294430951);
+               $this->setExpectedException('BadFunctionCallException', '', 1294430951);
 
                unset($GLOBALS['TYPO3_LOADED_EXT']);
                $GLOBALS['TYPO3_CONF_VARS']['EXT']['requiredExt'] = 'foo';
 
                unset($GLOBALS['TYPO3_LOADED_EXT']);
                $GLOBALS['TYPO3_CONF_VARS']['EXT']['requiredExt'] = 'foo';
@@ -119,7 +119,7 @@ class t3lib_extmgmTest extends tx_phpunit_testcase {
         * @test
         */
        public function extPathSearchesForPathOfExtensionInExtList() {
         * @test
         */
        public function extPathSearchesForPathOfExtensionInExtList() {
-               $this->setExpectedException('Exception', '', 1294430951);
+               $this->setExpectedException('BadFunctionCallException', '', 1294430951);
 
                unset($GLOBALS['TYPO3_LOADED_EXT']);
                $GLOBALS['TYPO3_CONF_VARS']['EXT']['requiredExt'] = '';
 
                unset($GLOBALS['TYPO3_LOADED_EXT']);
                $GLOBALS['TYPO3_CONF_VARS']['EXT']['requiredExt'] = '';
index c054f91..4bba3f7 100644 (file)
@@ -50,6 +50,11 @@ class t3lib_file_Driver_LocalDriverTest extends t3lib_file_BaseTestCase {
                t3lib_div::setSingletonInstance('t3lib_file_Repository_FileRepository', $mockedRepository);
        }
 
                t3lib_div::setSingletonInstance('t3lib_file_Repository_FileRepository', $mockedRepository);
        }
 
+       public function tearDown() {
+               t3lib_div::purgeInstances();
+               parent::tearDown();
+       }
+
        public static function tearDownAfterClass() {
                foreach (self::$testDirs as $dir) {
                        t3lib_div::rmdir($dir, TRUE);
        public static function tearDownAfterClass() {
                foreach (self::$testDirs as $dir) {
                        t3lib_div::rmdir($dir, TRUE);
index 16f59ee..a74b5e2 100644 (file)
@@ -49,6 +49,10 @@ class t3lib_file_FactoryTest extends Tx_Phpunit_TestCase {
                $this->fixture = new t3lib_file_Factory();
        }
 
                $this->fixture = new t3lib_file_Factory();
        }
 
+       protected function tearDown() {
+               t3lib_div::purgeInstances();
+       }
+
        /**********************************
         * Storage Collections
         **********************************/
        /**********************************
         * Storage Collections
         **********************************/
index 24f6d42..947ae40 100644 (file)
@@ -35,6 +35,9 @@ require_once 'vfsStream/vfsStream.php';
  * @todo Many, many, many tests are skipped in this test case...
  */
 class t3lib_file_FileTest extends Tx_Phpunit_TestCase {
  * @todo Many, many, many tests are skipped in this test case...
  */
 class t3lib_file_FileTest extends Tx_Phpunit_TestCase {
+       protected function tearDown() {
+               t3lib_div::purgeInstances();
+       }
 
        /**
         * @return t3lib_file_File
 
        /**
         * @return t3lib_file_File
@@ -181,7 +184,7 @@ class t3lib_file_FileTest extends Tx_Phpunit_TestCase {
                $fixture = new t3lib_file_File(array('uid' => 1, 'foo' => 'asdf', 'baz' => 'fdsw', 'identifier' => '/test', 'storage' => $mockedOldStorage));
 
                $mockedRepository = $this->getMock('t3lib_file_Repository_StorageRepository');
                $fixture = new t3lib_file_File(array('uid' => 1, 'foo' => 'asdf', 'baz' => 'fdsw', 'identifier' => '/test', 'storage' => $mockedOldStorage));
 
                $mockedRepository = $this->getMock('t3lib_file_Repository_StorageRepository');
-               $mockedRepository->expects($this->once())->method('findByUid')->with($this->equalTo(2))->will($this->returnValue($mockedNewStorage));
+               $mockedRepository->expects($this->once())->method('findByUid')->with(2)->will($this->returnValue($mockedNewStorage));
                t3lib_div::setSingletonInstance('t3lib_file_Repository_StorageRepository', $mockedRepository);
 
                $fixture->updateProperties(array('storage' => 2));
                t3lib_div::setSingletonInstance('t3lib_file_Repository_StorageRepository', $mockedRepository);
 
                $fixture->updateProperties(array('storage' => 2));
index b8be93e..4f63606 100644 (file)
@@ -45,6 +45,10 @@ class t3lib_file_FolderTest extends Tx_Phpunit_TestCase {
                vfsStream::setup($this->basedir);
        }
 
                vfsStream::setup($this->basedir);
        }
 
+       protected function tearDown() {
+               t3lib_div::purgeInstances();
+       }
+
        protected function createFolderFixture($path, $name, $mockedStorage = NULL) {
                if ($mockedStorage === NULL) {
                        $mockedStorage = $this->getMock('t3lib_file_Storage', array(), array(), '', FALSE);
        protected function createFolderFixture($path, $name, $mockedStorage = NULL) {
                if ($mockedStorage === NULL) {
                        $mockedStorage = $this->getMock('t3lib_file_Storage', array(), array(), '', FALSE);
index c199341..b969c38 100644 (file)
@@ -51,6 +51,7 @@ class t3lib_utility_MailTest extends tx_phpunit_testcase {
        }
 
        public function tearDown() {
        }
 
        public function tearDown() {
+               t3lib_div::purgeInstances();
                $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'] = $this->scOptionsBackup;
                $GLOBALS['T3_VAR']['callUserFunction'] = $this->callUserFunctionBackup;
        }
                $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'] = $this->scOptionsBackup;
                $GLOBALS['T3_VAR']['callUserFunction'] = $this->callUserFunctionBackup;
        }
index 56868cc..a800f86 100644 (file)
@@ -88,7 +88,7 @@ class tx_em_Connection_Soap {
                        $this->client = new SoapClient($options['wsdl'], (array) $options['soapoptions']);
                } else {
                        $this->client = FALSE;
                        $this->client = new SoapClient($options['wsdl'], (array) $options['soapoptions']);
                } else {
                        $this->client = FALSE;
-                       throw new Exception('PHP soap extension not available');
+                       throw new RuntimeException('PHP soap extension not available', 1333754714);
                }
        }
 
                }
        }
 
index 9bac977..1166809 100644 (file)
@@ -79,7 +79,7 @@ class tx_form_Domain_Factory_Typoscript implements t3lib_Singleton {
         *
         * @param tx_form_Domain_Model_Element_Abstract $parentElement Parent model object
         * @param array $arguments Configuration array
         *
         * @param tx_form_Domain_Model_Element_Abstract $parentElement Parent model object
         * @param array $arguments Configuration array
-        * @throws Exception
+        * @throws InvalidArgumentException
         * @return void
         */
        public function getChildElementsByIntegerKey(tx_form_Domain_Model_Element_Abstract $parentElement, array $typoscript) {
         * @return void
         */
        public function getChildElementsByIntegerKey(tx_form_Domain_Model_Element_Abstract $parentElement, array $typoscript) {
@@ -97,7 +97,10 @@ class tx_form_Domain_Factory_Typoscript implements t3lib_Singleton {
                                }
                        }
                } else {
                                }
                        }
                } else {
-                       throw new Exception ('Container element with id=' . $parentElement->getElementId() . ' has no configuration which means no children');
+                       throw new InvalidArgumentException(
+                               'Container element with id=' . $parentElement->getElementId() . ' has no configuration which means no children.',
+                               1333754854
+                       );
                }
        }
 
                }
        }
 
@@ -183,7 +186,7 @@ class tx_form_Domain_Factory_Typoscript implements t3lib_Singleton {
                        $object->setData($arguments['data']);
                        $this->reconstituteElement($object, $arguments);
                } else {
                        $object->setData($arguments['data']);
                        $this->reconstituteElement($object, $arguments);
                } else {
-                       throw new Exception('Element type "' . $object->getElementType() . '" is not supported.');
+                       throw new InvalidArgumentException('Element type "' . $object->getElementType() . '" is not supported.', 1333754878);
                }
 
                return $object;
                }
 
                return $object;
@@ -242,12 +245,14 @@ class tx_form_Domain_Factory_Typoscript implements t3lib_Singleton {
                                        try {
                                                $element->setAttribute($attribute, $value);
                                        } catch (Exception $exception) {
                                        try {
                                                $element->setAttribute($attribute, $value);
                                        } catch (Exception $exception) {
-                                               throw new Exception ('Cannot call user function for attribute ' . ucfirst($attribute));
+                                               throw new RuntimeException('Cannot call user function for attribute ' . ucfirst($attribute), 1333754904);
                                        }
                                }
                        }
                } else {
                                        }
                                }
                        }
                } else {
-                       throw new Exception ('The element with id=' . $element->getElementId() . ' has no default attributes set');
+                       throw new InvalidArgumentException(
+                               'The element with id=' . $element->getElementId() . ' has no default attributes set.', 1333754925
+                       );
                }
        }
 
                }
        }
 
@@ -278,7 +283,9 @@ class tx_form_Domain_Factory_Typoscript implements t3lib_Singleton {
                                                try {
                                                        $element->setAdditional($additional, $type, $value);
                                                } catch (Exception $exception) {
                                                try {
                                                        $element->setAdditional($additional, $type, $value);
                                                } catch (Exception $exception) {
-                                                       throw new Exception ('Cannot call user function for additional ' . ucfirst($additional));
+                                                       throw new RuntimeException(
+                                                               'Cannot call user function for additional ' . ucfirst($additional), 1333754941
+                                                       );
                                                }
                                        }
                                        if (isset($arguments['layout.'][$additional]) && $element->additionalIsSet($additional)) {
                                                }
                                        }
                                        if (isset($arguments['layout.'][$additional]) && $element->additionalIsSet($additional)) {
@@ -287,7 +294,10 @@ class tx_form_Domain_Factory_Typoscript implements t3lib_Singleton {
                                        }
                                }
                        } else {
                                        }
                                }
                        } else {
-                               throw new Exception ('The element with id=' . $element->getElementId() . ' has no additionals set');
+                               throw new InvalidArgumentException(
+                                       'The element with id=' . $element->getElementId() . ' has no additionals set.',
+                                       1333754962
+                               );
                        }
                }
        }
                        }
                }
        }
index 5f9388a..1ba1243 100644 (file)
@@ -309,7 +309,7 @@ class tx_scheduler_CronCmd_Normalize {
         *      1-5/2 -> 1,3,5
         *      2-10/3 -> 2,5,8
         *
         *      1-5/2 -> 1,3,5
         *      2-10/3 -> 2,5,8
         *
-        * @throws Exception if step value is invalid or if resulting list is empty
+        * @throws InvalidArgumentException if step value is invalid or if resulting list is empty
         * @param string $stepExpression Step value expression
         * @return string Comma separated list of valid values
         */
         * @param string $stepExpression Step value expression
         * @return string Comma separated list of valid values
         */
index 0e5eb63..c01aa36 100644 (file)
@@ -59,7 +59,7 @@ class tx_scheduler_RecyclerGarbageCollection extends tx_scheduler_Task {
        public function execute() {
                        // There is no file ctime on windows, so this task disables itself if OS = win
                if (TYPO3_OS == 'WIN') {
        public function execute() {
                        // There is no file ctime on windows, so this task disables itself if OS = win
                if (TYPO3_OS == 'WIN') {
-                       throw new Exception(
+                       throw new BadMethodCallException(
                                'This task is not reliable for Windows OS',
                                1308270454
                        );
                                'This task is not reliable for Windows OS',
                                1308270454
                        );
index a68ac82..7d3d5d2 100644 (file)
@@ -121,7 +121,7 @@ class tx_scheduler_TableGarbageCollection extends tx_scheduler_Task {
 
                $error = $GLOBALS['TYPO3_DB']->sql_error();
                if ($error) {
 
                $error = $GLOBALS['TYPO3_DB']->sql_error();
                if ($error) {
-                       throw new Exception(
+                       throw new RuntimeException(
                                'tx_scheduler_TableGarbageCollection failed for table ' . $this->table . ' with error: ' . $error,
                                1308255491
                        );
                                'tx_scheduler_TableGarbageCollection failed for table ' . $this->table . ' with error: ' . $error,
                                1308255491
                        );