diff --git a/composer.json b/composer.json index b82b14e24ca7de7efd75d490d8ea0375de159fe4..d9c4cee07c96270b4878f6366b633181471ab644 100644 --- a/composer.json +++ b/composer.json @@ -62,7 +62,7 @@ "friendsofphp/php-cs-fixer": "^2.0", "fiunchinho/phpunit-randomizer": "~3.0.0", "typo3/cms-styleguide": "~9.0.1", - "typo3/testing-framework": "^2.0.3" + "typo3/testing-framework": "^3.0" }, "suggest": { "ext-gd": "GDlib/Freetype is required for building images with text (GIFBUILDER) and can also be used to scale images", diff --git a/composer.lock b/composer.lock index e99f7ffc5ee64a8e27a2675c23443df4af842c78..bf81400b1a092bc38c6b77adbe627931e5663081 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "404f780d81028713a93bcb93bdfc3d69", + "content-hash": "2bd96e5071eb99b24b31261e2e03e4aa", "packages": [ { "name": "cogpowered/finediff", @@ -4414,31 +4414,31 @@ }, { "name": "typo3/testing-framework", - "version": "2.0.4", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/TYPO3/testing-framework.git", - "reference": "602e59f8d80f83c006566ade6037875ecba30353" + "reference": "0793e458c801f746c8da55453d8c98744d477ede" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/TYPO3/testing-framework/zipball/602e59f8d80f83c006566ade6037875ecba30353", - "reference": "602e59f8d80f83c006566ade6037875ecba30353", + "url": "https://api.github.com/repos/TYPO3/testing-framework/zipball/0793e458c801f746c8da55453d8c98744d477ede", + "reference": "0793e458c801f746c8da55453d8c98744d477ede", "shasum": "" }, "require": { "mikey179/vfsstream": "~1.6.0", "phpunit/phpunit": "^6.2", - "typo3/cms-backend": "^8.5 || ^9", - "typo3/cms-core": "^8.5 || ^9", - "typo3/cms-extbase": "^8.5 || ^9", - "typo3/cms-fluid": "^8.5 || ^9", - "typo3/cms-frontend": "^8.5 || ^9", + "typo3/cms-backend": "^9", + "typo3/cms-core": "^9", + "typo3/cms-extbase": "^9", + "typo3/cms-fluid": "^9", + "typo3/cms-frontend": "^9", "typo3fluid/fluid": "^2.2" }, "suggest": { "codeception/codeception": "^2.2", - "typo3/cms-saltedpasswords": "^8.5", + "typo3/cms-saltedpasswords": "^9", "typo3/cms-styleguide": "~8.0.8" }, "type": "library", @@ -4472,7 +4472,7 @@ "tests", "typo3" ], - "time": "2018-02-13T16:14:26+00:00" + "time": "2018-02-13T22:48:10+00:00" }, { "name": "webmozart/assert", diff --git a/typo3/sysext/backend/Tests/Unit/Controller/FormInlineAjaxControllerTest.php b/typo3/sysext/backend/Tests/Unit/Controller/FormInlineAjaxControllerTest.php index 0b025b3053583c0d6c348a3af0b42b4af59b5f67..ead320561c5c6bd78b94146d9a43de9eb404ad40 100644 --- a/typo3/sysext/backend/Tests/Unit/Controller/FormInlineAjaxControllerTest.php +++ b/typo3/sysext/backend/Tests/Unit/Controller/FormInlineAjaxControllerTest.php @@ -24,6 +24,11 @@ use TYPO3\CMS\Core\Authentication\BackendUserAuthentication; */ class FormInlineAjaxControllerTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Controller/Wizard/SuggestWizardControllerTest.php b/typo3/sysext/backend/Tests/Unit/Controller/Wizard/SuggestWizardControllerTest.php index c8f75a14d021acee6645fe7df4c48b658d048c1e..2b724c62b38e6d580b54fc04fbcb21398e4f168e 100644 --- a/typo3/sysext/backend/Tests/Unit/Controller/Wizard/SuggestWizardControllerTest.php +++ b/typo3/sysext/backend/Tests/Unit/Controller/Wizard/SuggestWizardControllerTest.php @@ -25,6 +25,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class SuggestWizardControllerTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/Container/ListOfFieldsContainerTest.php b/typo3/sysext/backend/Tests/Unit/Form/Container/ListOfFieldsContainerTest.php index 16368f01953299a2a2a492f1b32d00ef80e023ea..106ee1152fe93f5b2a43fd19016c6413436f4f4b 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/Container/ListOfFieldsContainerTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/Container/ListOfFieldsContainerTest.php @@ -26,6 +26,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ListOfFieldsContainerTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/Container/PaletteAndSingleContainerTest.php b/typo3/sysext/backend/Tests/Unit/Form/Container/PaletteAndSingleContainerTest.php index 8f3209767d080d6a27c4139508b64d28bcccffd7..4987aa2d233e35f5a880e316638047ea5ea7c66f 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/Container/PaletteAndSingleContainerTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/Container/PaletteAndSingleContainerTest.php @@ -28,6 +28,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class PaletteAndSingleContainerTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/Element/AbstractFormElementTest.php b/typo3/sysext/backend/Tests/Unit/Form/Element/AbstractFormElementTest.php index f9e9cd8920132a830908eb9996ed824d7ed84749..4d4493df9f6d473670c9144e8578cafbf8f74556 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/Element/AbstractFormElementTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/Element/AbstractFormElementTest.php @@ -21,6 +21,11 @@ use TYPO3\CMS\Backend\Form\Element\AbstractFormElement; */ class AbstractFormElementTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @return array */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/Element/InputDateTimeElementTest.php b/typo3/sysext/backend/Tests/Unit/Form/Element/InputDateTimeElementTest.php index 71f11f223a80b6889205a42987d2743feeca09d1..92a26280f9e3093ff0eda726a171e9fd96ab432d 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/Element/InputDateTimeElementTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/Element/InputDateTimeElementTest.php @@ -25,6 +25,11 @@ use TYPO3\CMS\Core\Localization\LanguageService; */ class InputDateTimeElementTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var string Selected timezone backup */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseDefaultLanguagePageRowTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseDefaultLanguagePageRowTest.php index 42c8dfdca90ab8e2517cbc85965832e7f63555c8..bb30e3bdc6ccca4ba9a4f2a83d587c1591c1940e 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseDefaultLanguagePageRowTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseDefaultLanguagePageRowTest.php @@ -22,6 +22,11 @@ use TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseDefaultLanguagePageRow; */ class DatabaseDefaultLanguagePageRowTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var DatabaseDefaultLanguagePageRow|\PHPUnit_Framework_MockObject_MockObject */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRecordTypeValueTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRecordTypeValueTest.php index 19b9dcf7332ed3279061dfe068f76d00b5d4c14b..a02dc9199f0da2348dc1d500930a538fe5343b7f 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRecordTypeValueTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRecordTypeValueTest.php @@ -21,6 +21,11 @@ use TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseRecordTypeValue; */ class DatabaseRecordTypeValueTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var DatabaseRecordTypeValue|\PHPUnit_Framework_MockObject_MockObject */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowInitializeNewTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowInitializeNewTest.php index 8916bdab669090da1f475551082eb1960eb41048..56f10996a6ff3c71774063d79ea9b2dde0f72092 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowInitializeNewTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowInitializeNewTest.php @@ -21,6 +21,11 @@ use TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseRowInitializeNew; */ class DatabaseRowInitializeNewTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var DatabaseRowInitializeNew */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseSystemLanguageRowsTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseSystemLanguageRowsTest.php index aba5808a78807d7d2ea683bf171366409db27ffe..d24ff0d11985ec4e6abae22521694e1a13b696ce 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseSystemLanguageRowsTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseSystemLanguageRowsTest.php @@ -33,6 +33,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class DatabaseSystemLanguageRowsTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var DatabaseSystemLanguageRows */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseUserPermissionCheckTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseUserPermissionCheckTest.php index 9b82dcb49b7f4f3da314d6d0f4b1712357c14d7b..cf65e17952086bc895d61e8a5e579c4758939f2d 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseUserPermissionCheckTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseUserPermissionCheckTest.php @@ -32,6 +32,11 @@ use TYPO3\CMS\Core\Type\Bitmask\Permission; */ class DatabaseUserPermissionCheckTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var DatabaseUserPermissionCheck */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/EvaluateDisplayConditionsTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/EvaluateDisplayConditionsTest.php index 1ec712179a98027ec35b4f42cc9a02a139c116c4..74333ed18a48394fcc17e18edb5f3e6fb87614bc 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/EvaluateDisplayConditionsTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/EvaluateDisplayConditionsTest.php @@ -25,6 +25,11 @@ use TYPO3\CMS\Core\Utility\ArrayUtility; */ class EvaluateDisplayConditionsTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaCheckboxItemsTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaCheckboxItemsTest.php index 135fea0cb7a510a6c879bdb31586c26d503d8450..2617288387eb0297a970b368c6c9701831394cca 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaCheckboxItemsTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaCheckboxItemsTest.php @@ -28,6 +28,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class TcaCheckboxItemsTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var TcaCheckboxItems */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessCommonTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessCommonTest.php index 2296768c1d8fbb03413deb406a6e3b176867ede9..8add4866adf1d7dcd223b4ec8f7746fd72a4eddb 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessCommonTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessCommonTest.php @@ -21,6 +21,11 @@ use TYPO3\CMS\Backend\Form\FormDataProvider\TcaColumnsProcessCommon; */ class TcaColumnsProcessCommonTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var TcaColumnsProcessCommon */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessFieldLabelsTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessFieldLabelsTest.php index 21f27aeb23b85b1f470adefc0b9e5ef8a278131d..a24d68fb2582948a8b185c31d4a73762f44f4534 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessFieldLabelsTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessFieldLabelsTest.php @@ -22,6 +22,11 @@ use TYPO3\CMS\Core\Localization\LanguageService; */ class TcaColumnsProcessFieldLabelsTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var TcaColumnsProcessFieldLabels */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessRecordTitleTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessRecordTitleTest.php index 19f3539ceb8de3aa540c23ce704570f8d9b4ced6..3df172a79bb63061e789fe5ad64c08ee3e7dfccb 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessRecordTitleTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessRecordTitleTest.php @@ -21,6 +21,11 @@ use TYPO3\CMS\Backend\Form\FormDataProvider\TcaColumnsProcessRecordTitle; */ class TcaColumnsProcessRecordTitleTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var TcaColumnsProcessRecordTitle */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessShowitemTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessShowitemTest.php index 3ce6bd741032af748681b10be6d81e793a2eedc0..e0cfb131c6c16f4f5aa49a971fcf49285a92dd74 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessShowitemTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessShowitemTest.php @@ -21,6 +21,11 @@ use TYPO3\CMS\Backend\Form\FormDataProvider\TcaColumnsProcessShowitem; */ class TcaColumnsProcessShowitemTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var TcaColumnsProcessShowitem */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaFlexPrepareTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaFlexPrepareTest.php index fa34efad2b03057e19f594bbab3b4961b0921e88..0ce65f1e627ed9145c81e3808aefe5ddc4ca5701 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaFlexPrepareTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaFlexPrepareTest.php @@ -27,6 +27,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class TcaFlexPrepareTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var TcaFlexPrepare */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaFlexProcessTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaFlexProcessTest.php index cfbe720526c30ea2ebbf13e16634fcf862a2632b..a222ef965dabfe0c189c4c29fcb2bb8609de5732 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaFlexProcessTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaFlexProcessTest.php @@ -27,6 +27,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class TcaFlexProcessTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var BackendUserAuthentication|ObjectProphecy */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaGroupTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaGroupTest.php index 3a9c6e800f8640cf4b0c8c818dfbdd7cc421167f..e1b6b4cabbbe05b5b1a1915362266d25773c5df8 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaGroupTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaGroupTest.php @@ -27,6 +27,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class TcaGroupTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var TcaGroup */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineConfigurationTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineConfigurationTest.php index ca086870fe39f01460b31ff5951f12835bab9194..7a96acb36448a8ca0ce46c0f88e6bf6d0de2cec4 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineConfigurationTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineConfigurationTest.php @@ -21,6 +21,11 @@ use TYPO3\CMS\Backend\Form\FormDataProvider\TcaInlineConfiguration; */ class TcaInlineConfigurationTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var TcaInlineConfiguration */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineExpandCollapseStateTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineExpandCollapseStateTest.php index fa9a03f180e6ac95f2047a695884523c3d6b1b68..f4c11e0fff8cb54ae77b4e74f04ed6364327400e 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineExpandCollapseStateTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineExpandCollapseStateTest.php @@ -21,6 +21,11 @@ use TYPO3\CMS\Backend\Form\FormDataProvider\TcaInlineExpandCollapseState; */ class TcaInlineExpandCollapseStateTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var TcaInlineExpandCollapseState */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineTest.php index 0d1d4a4f4f82acf495f758060bf359e6eed6290b..aa685004805d4dddb2be94bfb966bbe13459a08b 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineTest.php @@ -23,6 +23,11 @@ use TYPO3\CMS\Core\Authentication\BackendUserAuthentication; */ class TcaInlineTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var TcaInline */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInputPlaceholdersTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInputPlaceholdersTest.php index cb1b49f221ae93ae5af6a51c393f5395598897eb..81c076f46106c7b123c88a745dbb4552d1053c5f 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInputPlaceholdersTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInputPlaceholdersTest.php @@ -26,6 +26,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class TcaInputPlaceholdersTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var TcaInputPlaceholders */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaRadioItemsTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaRadioItemsTest.php index c9b6739325197606d1c99238e109c113b48b4532..865ad7a141ef608626abced802658a4c682213b8 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaRadioItemsTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaRadioItemsTest.php @@ -28,6 +28,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class TcaRadioItemsTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var TcaRadioItems */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaRecordTitleTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaRecordTitleTest.php index f67b1e82f89d72f6e5a3de9e559ac9b50c53ef38..4af80577042d9258c69f0ddfae76d549dec50f7a 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaRecordTitleTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaRecordTitleTest.php @@ -24,6 +24,11 @@ use TYPO3\CMS\Core\Localization\LanguageService; */ class TcaRecordTitleTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var TcaRecordTitle */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php index c543a2f9b94b7874dee5a11518e30588e5fd035b..e760c5d60a9b58bab1698c73277ffc998210a048 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php @@ -39,6 +39,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class TcaSelectItemsTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var TcaSelectItems|\PHPUnit_Framework_MockObject_MockObject */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectTreeItemsTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectTreeItemsTest.php index 027020d4cffe22739904f7d0b8c000b1635a459c..c60a742fba7f8b6f9a5f4faf406f05143e629157 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectTreeItemsTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectTreeItemsTest.php @@ -37,6 +37,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class TcaSelectTreeItemsTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var TcaSelectTreeItems */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/InlineStackProcessorTest.php b/typo3/sysext/backend/Tests/Unit/Form/InlineStackProcessorTest.php index 92cf3a9ed1eefad1423ba92050fd32dd47fc79f2..e44b6ecb8e2b01e530547e79e1b00fba7e7c1e40 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/InlineStackProcessorTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/InlineStackProcessorTest.php @@ -21,6 +21,10 @@ use TYPO3\CMS\Backend\Form\InlineStackProcessor; */ class InlineStackProcessorTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; /** * @return array diff --git a/typo3/sysext/backend/Tests/Unit/Form/NodeFactoryTest.php b/typo3/sysext/backend/Tests/Unit/Form/NodeFactoryTest.php index 656160649b5ac0733765d4b15cae034e8521cb8e..7d6e2bf77ff289889504f9ee8c649c56e7043e49 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/NodeFactoryTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/NodeFactoryTest.php @@ -24,6 +24,11 @@ use TYPO3\CMS\Backend\Form\NodeResolverInterface; */ class NodeFactoryTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php b/typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php index da49363dffd17491ebc1b2caecbc45678d3d1752..c688bb643982682df0ba2752e9bc9dc806d39eb3 100644 --- a/typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php +++ b/typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php @@ -37,6 +37,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class BackendUtilityTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /////////////////////////////////////// // Tests concerning calcAge /////////////////////////////////////// diff --git a/typo3/sysext/backend/Tests/UnitDeprecated/Form/FormDataProvider/TcaFlexPrepareTest.php b/typo3/sysext/backend/Tests/UnitDeprecated/Form/FormDataProvider/TcaFlexPrepareTest.php index 1b1e34603a0268321bb00dfaf470cddcaa5f49be..60b3eafc163aff14adbca253b57b88d5d80a0f12 100644 --- a/typo3/sysext/backend/Tests/UnitDeprecated/Form/FormDataProvider/TcaFlexPrepareTest.php +++ b/typo3/sysext/backend/Tests/UnitDeprecated/Form/FormDataProvider/TcaFlexPrepareTest.php @@ -27,6 +27,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class TcaFlexPrepareTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var TcaFlexPrepare */ diff --git a/typo3/sysext/core/Documentation/Changelog/master/Breaking-83889-E_NOTICEFreeUnitTesting.rst b/typo3/sysext/core/Documentation/Changelog/master/Breaking-83889-E_NOTICEFreeUnitTesting.rst new file mode 100644 index 0000000000000000000000000000000000000000..cec8a28e7ea3cd15594c9a391cb183ec5b1f174d --- /dev/null +++ b/typo3/sysext/core/Documentation/Changelog/master/Breaking-83889-E_NOTICEFreeUnitTesting.rst @@ -0,0 +1,54 @@ +.. include:: ../../Includes.txt + +============================================= +Breaking: #83889 - E_NOTICE free unit testing +============================================= + +See :issue:`83889` + +Description +=========== + +Writing unit tests and executing them using the typo3/testing-framework +now requires the system under test to no longer raise PHP :php:`E_NOTICE` +level errors, or the test fails. + + +Impact +====== + +This is a first step towards a PHP notice free core. + + +Affected Installations +====================== + +Extensions that use the core v9 compatible typo3/testing-framework +package in a version >= 3.0.0 may see failing unit tests if the tested +class raises E_NOTICE errors. + + +Migration +========= + +Best solution is to fix the unit test and/or the system under test +to no longer raise E_NOTICE level PHP errors. + +In a transition phase, a single unit test case file can set a +property to still suppress E_NOTICE warnings: + +.. code-block:: php + + class FooTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase + { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + } + +Note this property is deprecated and will be removed from +:php:`UnitTestCase` as soon as the core does not need it +anymore. + +.. index:: PHP-API, FullyScanned \ No newline at end of file diff --git a/typo3/sysext/core/Tests/Unit/Authentication/AbstractUserAuthenticationTest.php b/typo3/sysext/core/Tests/Unit/Authentication/AbstractUserAuthenticationTest.php index 93e8523cb6924fdc6f9afb4346b33ca316516ff6..470e6a97d11e7797506f403c30d4892c3a6fb439 100644 --- a/typo3/sysext/core/Tests/Unit/Authentication/AbstractUserAuthenticationTest.php +++ b/typo3/sysext/core/Tests/Unit/Authentication/AbstractUserAuthenticationTest.php @@ -28,6 +28,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class AbstractUserAuthenticationTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Authentication/AuthenticationServiceTest.php b/typo3/sysext/core/Tests/Unit/Authentication/AuthenticationServiceTest.php index 10fe66214f608fbb71daabb2b5566a7176c76770..f7a7ff1489869ec6e7c0b160e433ee12be784431 100644 --- a/typo3/sysext/core/Tests/Unit/Authentication/AuthenticationServiceTest.php +++ b/typo3/sysext/core/Tests/Unit/Authentication/AuthenticationServiceTest.php @@ -20,6 +20,11 @@ use TYPO3\CMS\Core\Authentication\AuthenticationService; */ class AuthenticationServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * Date provider for processLoginReturnsCorrectData * diff --git a/typo3/sysext/core/Tests/Unit/Authentication/BackendUserAuthenticationTest.php b/typo3/sysext/core/Tests/Unit/Authentication/BackendUserAuthenticationTest.php index a8266796cb53300a33018e56a85c8297e955f3ea..2d388c90442dd04151c8953e2e702559cca782b2 100644 --- a/typo3/sysext/core/Tests/Unit/Authentication/BackendUserAuthenticationTest.php +++ b/typo3/sysext/core/Tests/Unit/Authentication/BackendUserAuthenticationTest.php @@ -34,6 +34,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class BackendUserAuthenticationTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var array */ diff --git a/typo3/sysext/core/Tests/Unit/Cache/Backend/FileBackendTest.php b/typo3/sysext/core/Tests/Unit/Cache/Backend/FileBackendTest.php index 0282b76cc6dbd8eea697006f748e58de91f822bb..c777c17a791462690655785d54954130962f3221 100644 --- a/typo3/sysext/core/Tests/Unit/Cache/Backend/FileBackendTest.php +++ b/typo3/sysext/core/Tests/Unit/Cache/Backend/FileBackendTest.php @@ -26,6 +26,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class FileBackendTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * Sets up this testcase */ diff --git a/typo3/sysext/core/Tests/Unit/Cache/Backend/PdoBackendTest.php b/typo3/sysext/core/Tests/Unit/Cache/Backend/PdoBackendTest.php index ddb379a0b6f775943c24bb600f4161ec503af4ea..856e0b2f3279e20e24fe24cd5b8a940e07d31bab 100644 --- a/typo3/sysext/core/Tests/Unit/Cache/Backend/PdoBackendTest.php +++ b/typo3/sysext/core/Tests/Unit/Cache/Backend/PdoBackendTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Core\Tests\Unit\Cache\Backend; */ class PdoBackendTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * Sets up this testcase */ diff --git a/typo3/sysext/core/Tests/Unit/Cache/Backend/Typo3DatabaseBackendTest.php b/typo3/sysext/core/Tests/Unit/Cache/Backend/Typo3DatabaseBackendTest.php index 86dee8e7ea6e31e6f66d7d701148e8b1156ddf78..bd84223c4384505d6f269210b5fcc68f4fd7666b 100644 --- a/typo3/sysext/core/Tests/Unit/Cache/Backend/Typo3DatabaseBackendTest.php +++ b/typo3/sysext/core/Tests/Unit/Cache/Backend/Typo3DatabaseBackendTest.php @@ -28,6 +28,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class Typo3DatabaseBackendTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Category/CategoryRegistryTest.php b/typo3/sysext/core/Tests/Unit/Category/CategoryRegistryTest.php index d4d7f6e4659ce33b3928593ddd14ef50342717c3..1f515bc7d9e12601117503ba020fe88562e33963 100644 --- a/typo3/sysext/core/Tests/Unit/Category/CategoryRegistryTest.php +++ b/typo3/sysext/core/Tests/Unit/Category/CategoryRegistryTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Core\Tests\Unit\Category; */ class CategoryRegistryTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Core\Category\CategoryRegistry */ diff --git a/typo3/sysext/core/Tests/Unit/Charset/CharsetConverterTest.php b/typo3/sysext/core/Tests/Unit/Charset/CharsetConverterTest.php index ee0706eb163c313082c665849a130cb7736a1db1..86e328f5b0720617567ca7fe6c1ae1fa6c5b612c 100644 --- a/typo3/sysext/core/Tests/Unit/Charset/CharsetConverterTest.php +++ b/typo3/sysext/core/Tests/Unit/Charset/CharsetConverterTest.php @@ -24,6 +24,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class CharsetConverterTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * Data provider for specialCharactersToAsciiConvertsUmlautsToAscii() * diff --git a/typo3/sysext/core/Tests/Unit/Configuration/ConfigurationManagerTest.php b/typo3/sysext/core/Tests/Unit/Configuration/ConfigurationManagerTest.php index 9eaf8922d5ef5bed017c899dfc5f9db0abdbfa1c..fe0d2400b0766c26c15078104ddde09e1f1eb7eb 100644 --- a/typo3/sysext/core/Tests/Unit/Configuration/ConfigurationManagerTest.php +++ b/typo3/sysext/core/Tests/Unit/Configuration/ConfigurationManagerTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Core\Tests\Unit\Configuration; */ class ConfigurationManagerTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Core\Configuration\ConfigurationManager|\PHPUnit_Framework_MockObject_MockObject */ diff --git a/typo3/sysext/core/Tests/Unit/Configuration/FlexForm/FlexFormToolsTest.php b/typo3/sysext/core/Tests/Unit/Configuration/FlexForm/FlexFormToolsTest.php index 870afe3928509748e7f46a2f986efb54e14cf3a2..520c714daf7f5563b86afb87f3310b0b3c6895ec 100644 --- a/typo3/sysext/core/Tests/Unit/Configuration/FlexForm/FlexFormToolsTest.php +++ b/typo3/sysext/core/Tests/Unit/Configuration/FlexForm/FlexFormToolsTest.php @@ -52,6 +52,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class FlexFormToolsTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcherTest.php b/typo3/sysext/core/Tests/Unit/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcherTest.php index 9a35e8a8a166dc4259290ed9016ecd96f5ae3f06..911fb2ac6b369b86d421f0f16b6bc84d5d58b152 100644 --- a/typo3/sysext/core/Tests/Unit/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcherTest.php +++ b/typo3/sysext/core/Tests/Unit/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcherTest.php @@ -23,6 +23,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class AbstractConditionMatcherTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Core\Core\ApplicationContext */ diff --git a/typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php b/typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php index 12722d4ff5a68dc8d1b85261faceee039734cd70..adc62df0f865428cae3bc3380d68f9e4f042aa68 100644 --- a/typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php +++ b/typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php @@ -29,6 +29,11 @@ use TYPO3\TestingFramework\Core\AccessibleObjectInterface; */ class DataHandlerTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var array A backup of registered singleton instances */ diff --git a/typo3/sysext/core/Tests/Unit/Database/Query/QueryBuilderTest.php b/typo3/sysext/core/Tests/Unit/Database/Query/QueryBuilderTest.php index 7bb1301e062701ec9f253e0f626d5c8a86ec1021..c80a4dca0c3de33fca4deac1c4c50ebac97ebcea 100644 --- a/typo3/sysext/core/Tests/Unit/Database/Query/QueryBuilderTest.php +++ b/typo3/sysext/core/Tests/Unit/Database/Query/QueryBuilderTest.php @@ -30,6 +30,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class QueryBuilderTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var Connection|\Prophecy\Prophecy\ObjectProphecy */ diff --git a/typo3/sysext/core/Tests/Unit/Database/Query/QueryHelperTest.php b/typo3/sysext/core/Tests/Unit/Database/Query/QueryHelperTest.php index 88efeebaaa665c6783710d7ed234215e9ab00453..db1dc7960284d6cf955c5073448bf257a6e7b101 100644 --- a/typo3/sysext/core/Tests/Unit/Database/Query/QueryHelperTest.php +++ b/typo3/sysext/core/Tests/Unit/Database/Query/QueryHelperTest.php @@ -24,6 +24,11 @@ use TYPO3\CMS\Core\Database\Query\QueryHelper; */ class QueryHelperTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * Test cases for stripping of leading logical operators in where constraints. * diff --git a/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/FrontendWorkspaceRestrictionTest.php b/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/FrontendWorkspaceRestrictionTest.php index a27e4f7c771940394e25bcf922a456ed80d50428..c7b608393ea908a7886206cb91e92906adbece8d 100644 --- a/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/FrontendWorkspaceRestrictionTest.php +++ b/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/FrontendWorkspaceRestrictionTest.php @@ -21,11 +21,9 @@ use TYPO3\CMS\Frontend\Page\PageRepository; class FrontendWorkspaceRestrictionTest extends AbstractRestrictionTestCase { /** + * Subject is not notice free, disable E_NOTICES */ - protected function setUp() - { - parent::setUp(); - } + protected static $suppressNotices = true; /** * @test diff --git a/typo3/sysext/core/Tests/Unit/Database/QueryGeneratorTest.php b/typo3/sysext/core/Tests/Unit/Database/QueryGeneratorTest.php index 824006622efd37b4987023bc8f276d1e5fefcff7..0f09a44a8b3aadb9eabed614ae3912a4b2e019e5 100644 --- a/typo3/sysext/core/Tests/Unit/Database/QueryGeneratorTest.php +++ b/typo3/sysext/core/Tests/Unit/Database/QueryGeneratorTest.php @@ -23,6 +23,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class QueryGeneratorTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @return array */ diff --git a/typo3/sysext/core/Tests/Unit/Database/Schema/EventListener/SchemaColumnDefinitionListenerTest.php b/typo3/sysext/core/Tests/Unit/Database/Schema/EventListener/SchemaColumnDefinitionListenerTest.php index 67aaa2913e5bd6ebbc996ab11ef8f8b9947500e0..1fdac50f17b10b286c4296888cace4bcdb030abc 100644 --- a/typo3/sysext/core/Tests/Unit/Database/Schema/EventListener/SchemaColumnDefinitionListenerTest.php +++ b/typo3/sysext/core/Tests/Unit/Database/Schema/EventListener/SchemaColumnDefinitionListenerTest.php @@ -32,6 +32,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class SchemaColumnDefinitionListenerTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var SchemaColumnDefinitionListener */ diff --git a/typo3/sysext/core/Tests/Unit/Database/Schema/Parser/TableBuilderTest.php b/typo3/sysext/core/Tests/Unit/Database/Schema/Parser/TableBuilderTest.php index c0ac486cf76f193094f1b74f40fc96cd511a863f..fc7c9b1fc471a69b372cca9c719752b50fc2e069 100644 --- a/typo3/sysext/core/Tests/Unit/Database/Schema/Parser/TableBuilderTest.php +++ b/typo3/sysext/core/Tests/Unit/Database/Schema/Parser/TableBuilderTest.php @@ -31,6 +31,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class TableBuilderTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var Table */ diff --git a/typo3/sysext/core/Tests/Unit/Database/Schema/SqlReaderTest.php b/typo3/sysext/core/Tests/Unit/Database/Schema/SqlReaderTest.php index 7bcbc68564eae70f7a51db25e50100c37bd44c81..09b146b053fc5eab61421d97fa1dda94bbc287f6 100644 --- a/typo3/sysext/core/Tests/Unit/Database/Schema/SqlReaderTest.php +++ b/typo3/sysext/core/Tests/Unit/Database/Schema/SqlReaderTest.php @@ -24,6 +24,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class SqlReaderTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var SqlReader */ diff --git a/typo3/sysext/core/Tests/Unit/FileStreamWrapperTest.php b/typo3/sysext/core/Tests/Unit/FileStreamWrapperTest.php index 28d889e2205b4e6391b8553f701b3d4a38152fbc..7152dfe0bdb56ac2d2228bf320b7f8f85fdb2948 100644 --- a/typo3/sysext/core/Tests/Unit/FileStreamWrapperTest.php +++ b/typo3/sysext/core/Tests/Unit/FileStreamWrapperTest.php @@ -22,6 +22,11 @@ use TYPO3\TestingFramework\Core\FileStreamWrapper; */ class FileStreamWrapperTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/FormProtection/AbstractFormProtectionTest.php b/typo3/sysext/core/Tests/Unit/FormProtection/AbstractFormProtectionTest.php index 46842362fbf9683791ac5bee378b0d9645b836c0..fadebeacb88d18ac2d656c81c75ece2bed1e18e3 100644 --- a/typo3/sysext/core/Tests/Unit/FormProtection/AbstractFormProtectionTest.php +++ b/typo3/sysext/core/Tests/Unit/FormProtection/AbstractFormProtectionTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Core\Tests\Unit\FormProtection; */ class AbstractFormProtectionTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Core\Tests\Unit\FormProtection\Fixtures\FormProtectionTesting */ diff --git a/typo3/sysext/core/Tests/Unit/Html/HtmlParserTest.php b/typo3/sysext/core/Tests/Unit/Html/HtmlParserTest.php index 91effe81443c2d3a3b3cbe52349ce0938440fbfc..8913a117443ff85e8eba589f03802a02f901d467 100644 --- a/typo3/sysext/core/Tests/Unit/Html/HtmlParserTest.php +++ b/typo3/sysext/core/Tests/Unit/Html/HtmlParserTest.php @@ -21,6 +21,11 @@ use TYPO3\CMS\Core\Html\HtmlParser; */ class HtmlParserTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Core\Html\HtmlParser */ diff --git a/typo3/sysext/core/Tests/Unit/Html/RteHtmlParserTest.php b/typo3/sysext/core/Tests/Unit/Html/RteHtmlParserTest.php index f0cb52f986174cb904b4dd71818ff776d21573bf..9567823e8ecff42de8cec76d81216642f88f8a2b 100644 --- a/typo3/sysext/core/Tests/Unit/Html/RteHtmlParserTest.php +++ b/typo3/sysext/core/Tests/Unit/Html/RteHtmlParserTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Core\Tests\Unit\Html; */ class RteHtmlParserTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Core\Html\RteHtmlParser */ diff --git a/typo3/sysext/core/Tests/Unit/Http/ServerRequestFactoryTest.php b/typo3/sysext/core/Tests/Unit/Http/ServerRequestFactoryTest.php index cf48744c2f3b0eb8a2f1887870ca6b68915d7522..27a9b5ebe2651b08c74ba29290987620e32c80c4 100644 --- a/typo3/sysext/core/Tests/Unit/Http/ServerRequestFactoryTest.php +++ b/typo3/sysext/core/Tests/Unit/Http/ServerRequestFactoryTest.php @@ -23,6 +23,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class ServerRequestFactoryTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * Set up */ diff --git a/typo3/sysext/core/Tests/Unit/Imaging/IconFactoryTest.php b/typo3/sysext/core/Tests/Unit/Imaging/IconFactoryTest.php index 6de2addcededff18a88986f4443984ee26d012b2..8c77839e0c1cbb84a0452205694b240402061aea 100644 --- a/typo3/sysext/core/Tests/Unit/Imaging/IconFactoryTest.php +++ b/typo3/sysext/core/Tests/Unit/Imaging/IconFactoryTest.php @@ -25,6 +25,11 @@ use TYPO3\CMS\Core\Resource\File; */ class IconFactoryTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Core\Imaging\IconFactory */ diff --git a/typo3/sysext/core/Tests/Unit/Imaging/ImageManipulation/AreaTest.php b/typo3/sysext/core/Tests/Unit/Imaging/ImageManipulation/AreaTest.php index 9feacc65a1efcf8ca541759d659405c65ad3ce89..d9fb5d2121f1abb0fa414fbd50d5002610e171cf 100644 --- a/typo3/sysext/core/Tests/Unit/Imaging/ImageManipulation/AreaTest.php +++ b/typo3/sysext/core/Tests/Unit/Imaging/ImageManipulation/AreaTest.php @@ -23,6 +23,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class AreaTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/LinkHandling/FileLinkHandlerTest.php b/typo3/sysext/core/Tests/Unit/LinkHandling/FileLinkHandlerTest.php index 0a84e271cc9ad7461e05374747ee59426662e4b3..ad43e5d99408aecf8f436223372e76e61603e1f7 100644 --- a/typo3/sysext/core/Tests/Unit/LinkHandling/FileLinkHandlerTest.php +++ b/typo3/sysext/core/Tests/Unit/LinkHandling/FileLinkHandlerTest.php @@ -22,6 +22,10 @@ use TYPO3\CMS\Core\Utility\MathUtility; class FileLinkHandlerTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; /** * testing folders diff --git a/typo3/sysext/core/Tests/Unit/LinkHandling/LegacyLinkNotationConverterTest.php b/typo3/sysext/core/Tests/Unit/LinkHandling/LegacyLinkNotationConverterTest.php index 838f64f02852d2d73bd889879cfb5f5cee53328d..2822de2d111aaa166135c38f1ce641bbcc7ac88a 100644 --- a/typo3/sysext/core/Tests/Unit/LinkHandling/LegacyLinkNotationConverterTest.php +++ b/typo3/sysext/core/Tests/Unit/LinkHandling/LegacyLinkNotationConverterTest.php @@ -24,6 +24,11 @@ use TYPO3\CMS\Core\Utility\MathUtility; class LegacyLinkNotationConverterTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * Data to resolve strings to arrays and vice versa, external, mail, page * diff --git a/typo3/sysext/core/Tests/Unit/LinkHandling/LinkServiceTest.php b/typo3/sysext/core/Tests/Unit/LinkHandling/LinkServiceTest.php index b7fed3dd07c5a55295d3e9c8451f2b644d8ba899..094e69d6d33c2571631d867c9d8a6dbcab9d1b24 100644 --- a/typo3/sysext/core/Tests/Unit/LinkHandling/LinkServiceTest.php +++ b/typo3/sysext/core/Tests/Unit/LinkHandling/LinkServiceTest.php @@ -19,6 +19,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class LinkServiceTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * Data to resolve strings to arrays and vice versa, external, mail, page * diff --git a/typo3/sysext/core/Tests/Unit/Localization/LocalizationFactoryTest.php b/typo3/sysext/core/Tests/Unit/Localization/LocalizationFactoryTest.php index f0edd747230e19bc78cbe8c958f140ddea6d3f25..5af2758812f7f8b4cd482d60c850ec2bfe5084f5 100644 --- a/typo3/sysext/core/Tests/Unit/Localization/LocalizationFactoryTest.php +++ b/typo3/sysext/core/Tests/Unit/Localization/LocalizationFactoryTest.php @@ -22,6 +22,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class LocalizationFactoryTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Localization/Parser/LocallangXmlParserTest.php b/typo3/sysext/core/Tests/Unit/Localization/Parser/LocallangXmlParserTest.php index 74c8729089991ea8b7068d41d0f2b887f629e6eb..e16e53dd55c6deac76a8ec9f7434aa4b950bec22 100644 --- a/typo3/sysext/core/Tests/Unit/Localization/Parser/LocallangXmlParserTest.php +++ b/typo3/sysext/core/Tests/Unit/Localization/Parser/LocallangXmlParserTest.php @@ -20,6 +20,11 @@ use TYPO3\CMS\Core\Localization\LocalizationFactory; */ class LocallangXmlParserTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Core\Localization\Parser\LocallangXmlParser */ diff --git a/typo3/sysext/core/Tests/Unit/Log/LogManagerTest.php b/typo3/sysext/core/Tests/Unit/Log/LogManagerTest.php index eadda1bd8f83c6d7519deca364795afbf7429c42..92cf764366f0b79254370db66bedccdbc52974e7 100644 --- a/typo3/sysext/core/Tests/Unit/Log/LogManagerTest.php +++ b/typo3/sysext/core/Tests/Unit/Log/LogManagerTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Core\Tests\Unit\Log; */ class LogManagerTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Core\Log\LogManager */ diff --git a/typo3/sysext/core/Tests/Unit/Log/LogRecordTest.php b/typo3/sysext/core/Tests/Unit/Log/LogRecordTest.php index a94c38509b1d9ce2583a57ddbdf096b25d4f0fb1..d6a383fd4574d3dc6e3909d4b2304872778f31d5 100644 --- a/typo3/sysext/core/Tests/Unit/Log/LogRecordTest.php +++ b/typo3/sysext/core/Tests/Unit/Log/LogRecordTest.php @@ -21,6 +21,11 @@ use TYPO3\CMS\Core\Log\LogRecord; */ class LogRecordTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * Returns a \TYPO3\CMS\Core\Log\LogRecord * diff --git a/typo3/sysext/core/Tests/Unit/Log/Processor/WebProcessorTest.php b/typo3/sysext/core/Tests/Unit/Log/Processor/WebProcessorTest.php index b5f27bf4c127c3051b998048c5240d8d755ce474..3d3250d08dc9d55953064c01b8479d5456fd7f63 100644 --- a/typo3/sysext/core/Tests/Unit/Log/Processor/WebProcessorTest.php +++ b/typo3/sysext/core/Tests/Unit/Log/Processor/WebProcessorTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Core\Tests\Unit\Log\Processor; */ class WebProcessorTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Log/Writer/FileWriterTest.php b/typo3/sysext/core/Tests/Unit/Log/Writer/FileWriterTest.php index 38bf6fe3c48720c202db0e8a09ad830c38a4f2e2..dd5882a4b2dcb66cb5276da266f3b8d17d8e6a5c 100644 --- a/typo3/sysext/core/Tests/Unit/Log/Writer/FileWriterTest.php +++ b/typo3/sysext/core/Tests/Unit/Log/Writer/FileWriterTest.php @@ -22,6 +22,11 @@ use org\bovigo\vfs\vfsStreamWrapper; */ class FileWriterTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var string */ diff --git a/typo3/sysext/core/Tests/Unit/Mail/MailerTest.php b/typo3/sysext/core/Tests/Unit/Mail/MailerTest.php index b03f9a639730200f0aae24af99e56990acb76e3b..89eb32f2a51b09a4148acf4f10ee2489787a360c 100644 --- a/typo3/sysext/core/Tests/Unit/Mail/MailerTest.php +++ b/typo3/sysext/core/Tests/Unit/Mail/MailerTest.php @@ -22,6 +22,11 @@ use TYPO3\CMS\Core\Tests\Unit\Mail\Fixtures\FakeTransportFixture; */ class MailerTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Core\Mail\Mailer */ diff --git a/typo3/sysext/core/Tests/Unit/Mail/TransportFactoryTest.php b/typo3/sysext/core/Tests/Unit/Mail/TransportFactoryTest.php index 9a0e758a673d52e41c04101956a569e90790fb34..816bae6aa4c999d65e7bbef05ba97873cecccc82 100644 --- a/typo3/sysext/core/Tests/Unit/Mail/TransportFactoryTest.php +++ b/typo3/sysext/core/Tests/Unit/Mail/TransportFactoryTest.php @@ -26,7 +26,12 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class TransportFactoryTest extends UnitTestCase { /** - * @var TransportFactory + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + + /** + * * @var TransportFactory */ protected $subject; diff --git a/typo3/sysext/core/Tests/Unit/Migrations/TcaMigrationTest.php b/typo3/sysext/core/Tests/Unit/Migrations/TcaMigrationTest.php index d0fe5abedeac0434dfaa3b4bf1cf7592ce23a51d..410c33fc5a97249858cbe322ffd52c9529868cf6 100644 --- a/typo3/sysext/core/Tests/Unit/Migrations/TcaMigrationTest.php +++ b/typo3/sysext/core/Tests/Unit/Migrations/TcaMigrationTest.php @@ -21,6 +21,11 @@ use TYPO3\CMS\Core\Migrations\TcaMigration; */ class TcaMigrationTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Package/PackageManagerTest.php b/typo3/sysext/core/Tests/Unit/Package/PackageManagerTest.php index bcc9816cf6f68b17739ede627ef7f339c0eb06d9..39394dc77e2279a6adcb4bc2507e0617d265869b 100644 --- a/typo3/sysext/core/Tests/Unit/Package/PackageManagerTest.php +++ b/typo3/sysext/core/Tests/Unit/Package/PackageManagerTest.php @@ -25,6 +25,11 @@ use TYPO3\CMS\Core\Package\PackageManager; */ class PackageManagerTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var PackageManager|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\TestingFramework\Core\AccessibleObjectInterface $packageManager */ diff --git a/typo3/sysext/core/Tests/Unit/Resource/AbstractFileTest.php b/typo3/sysext/core/Tests/Unit/Resource/AbstractFileTest.php index d2787b425c0dd8d1b6bfee6d50ef90e813d827c3..fdaa4b5e4c62d68d1a6550b0b0ce30c7c01ce7ce 100644 --- a/typo3/sysext/core/Tests/Unit/Resource/AbstractFileTest.php +++ b/typo3/sysext/core/Tests/Unit/Resource/AbstractFileTest.php @@ -23,6 +23,11 @@ use TYPO3\CMS\Core\Resource\ResourceStorage; */ class AbstractFileTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Resource/Driver/DriverRegistryTest.php b/typo3/sysext/core/Tests/Unit/Resource/Driver/DriverRegistryTest.php index ee559580ffa8e41f9608911d31e4f5e92669734c..cefd5d47281af40d2828098e1b97679c1dfec1d6 100644 --- a/typo3/sysext/core/Tests/Unit/Resource/Driver/DriverRegistryTest.php +++ b/typo3/sysext/core/Tests/Unit/Resource/Driver/DriverRegistryTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Core\Tests\Unit\Resource\Driver; */ class DriverRegistryTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Core\Resource\Driver\DriverRegistry */ diff --git a/typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php b/typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php index 57b9f4bef3a401ab8faaa8a8c76962dc6de4f140..a400c8ba1ab0b0b18b375a705b54347a1328a0f4 100644 --- a/typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php +++ b/typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php @@ -25,6 +25,11 @@ use TYPO3\TestingFramework\Core\FileStreamWrapper; */ class LocalDriverTest extends \TYPO3\CMS\Core\Tests\Unit\Resource\BaseTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Core\Resource\Driver\LocalDriver */ diff --git a/typo3/sysext/core/Tests/Unit/Resource/FileTest.php b/typo3/sysext/core/Tests/Unit/Resource/FileTest.php index 6e06c552816282bc0acea8eb7afc4962f1aca277..b52888751d13e15374c8a31fad764b547b9d20e0 100644 --- a/typo3/sysext/core/Tests/Unit/Resource/FileTest.php +++ b/typo3/sysext/core/Tests/Unit/Resource/FileTest.php @@ -21,6 +21,11 @@ use TYPO3\CMS\Core\Resource\ResourceStorage; */ class FileTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var array A backup of registered singleton instances */ diff --git a/typo3/sysext/core/Tests/Unit/Resource/ProcessedFileTest.php b/typo3/sysext/core/Tests/Unit/Resource/ProcessedFileTest.php index 7a7869819fd69892ca716c362f1ad4beef9d3f97..34ee52a4d0ac5888d2bb991707c447814842fdcf 100644 --- a/typo3/sysext/core/Tests/Unit/Resource/ProcessedFileTest.php +++ b/typo3/sysext/core/Tests/Unit/Resource/ProcessedFileTest.php @@ -24,6 +24,11 @@ use TYPO3\CMS\Core\Resource\ResourceStorage; */ class ProcessedFileTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \PHPUnit_Framework_MockObject_MockObject|Folder */ diff --git a/typo3/sysext/core/Tests/Unit/Resource/Rendering/AudioTagRendererTest.php b/typo3/sysext/core/Tests/Unit/Resource/Rendering/AudioTagRendererTest.php index 78df84bbbffab25390c7c3fc72c1904d7b4278ce..1d163e7be3f82f1b82a23237301fbedb0cfae862 100644 --- a/typo3/sysext/core/Tests/Unit/Resource/Rendering/AudioTagRendererTest.php +++ b/typo3/sysext/core/Tests/Unit/Resource/Rendering/AudioTagRendererTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Core\Tests\Unit\Resource\Rendering; */ class AudioTagRendererTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Resource/Rendering/VideoTagRendererTest.php b/typo3/sysext/core/Tests/Unit/Resource/Rendering/VideoTagRendererTest.php index 40bfeee0ba7882c329cdbf8a50f56239a4ac06e8..6380e1d44c6caa3dc0e1aa19e72d01f3ee06609d 100644 --- a/typo3/sysext/core/Tests/Unit/Resource/Rendering/VideoTagRendererTest.php +++ b/typo3/sysext/core/Tests/Unit/Resource/Rendering/VideoTagRendererTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Core\Tests\Unit\Resource\Rendering; */ class VideoTagRendererTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Resource/Rendering/VimeoRendererTest.php b/typo3/sysext/core/Tests/Unit/Resource/Rendering/VimeoRendererTest.php index 923a6768aa16a40f1cde4187e15a0469fbe4f55b..f1be8c8fc75304e9bd0a5bac5046a02a19c04aeb 100644 --- a/typo3/sysext/core/Tests/Unit/Resource/Rendering/VimeoRendererTest.php +++ b/typo3/sysext/core/Tests/Unit/Resource/Rendering/VimeoRendererTest.php @@ -24,6 +24,11 @@ use TYPO3\CMS\Core\Resource\Rendering\VimeoRenderer; */ class VimeoRendererTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var VimeoRenderer|\PHPUnit_Framework_MockObject_MockObject */ diff --git a/typo3/sysext/core/Tests/Unit/Resource/Rendering/YouTubeRendererTest.php b/typo3/sysext/core/Tests/Unit/Resource/Rendering/YouTubeRendererTest.php index 14d8e5267622456acc129595a38b8457a8d3f974..c50ac8b669b7b7c955f602fb7aa94ea74c0802bf 100644 --- a/typo3/sysext/core/Tests/Unit/Resource/Rendering/YouTubeRendererTest.php +++ b/typo3/sysext/core/Tests/Unit/Resource/Rendering/YouTubeRendererTest.php @@ -25,6 +25,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class YouTubeRendererTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var YouTubeRenderer|\PHPUnit_Framework_MockObject_MockObject */ diff --git a/typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorIntegrationTest.php b/typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorIntegrationTest.php index c493bb568f76759b1e4657ca1950d656414aba03..15bbc7c3b7090c660a5a00a2bbb0dcf8304a6785 100644 --- a/typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorIntegrationTest.php +++ b/typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorIntegrationTest.php @@ -23,6 +23,10 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class ResourceCompressorIntegrationTest extends BaseTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; /** * @var TestableResourceCompressor diff --git a/typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorTest.php b/typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorTest.php index 61f320abdc70dc68cd3684cfe9027ee9c7210dcf..e040614b16277b775c1bcb6893388c3933b29b81 100644 --- a/typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorTest.php +++ b/typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorTest.php @@ -21,6 +21,11 @@ use TYPO3\CMS\Core\Resource\ResourceCompressor; */ class ResourceCompressorTest extends BaseTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var ResourceCompressor|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\TestingFramework\Core\AccessibleObjectInterface */ diff --git a/typo3/sysext/core/Tests/Unit/Resource/ResourceStorageTest.php b/typo3/sysext/core/Tests/Unit/Resource/ResourceStorageTest.php index b83a3049725c0818e963e07ecf03d5eae9de28a0..18659af4d1b9c102a9e85ccef79d0e0ef5d2d6c9 100644 --- a/typo3/sysext/core/Tests/Unit/Resource/ResourceStorageTest.php +++ b/typo3/sysext/core/Tests/Unit/Resource/ResourceStorageTest.php @@ -34,6 +34,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class ResourceStorageTest extends BaseTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var array A backup of registered singleton instances */ diff --git a/typo3/sysext/core/Tests/Unit/Service/MarkerBasedTemplateServiceTest.php b/typo3/sysext/core/Tests/Unit/Service/MarkerBasedTemplateServiceTest.php index 032c0e3bd3a04d6f9af8a4103bd7f49221879ff1..8f17ea0eec9079615ae674bfa79dad9d8dffc22b 100644 --- a/typo3/sysext/core/Tests/Unit/Service/MarkerBasedTemplateServiceTest.php +++ b/typo3/sysext/core/Tests/Unit/Service/MarkerBasedTemplateServiceTest.php @@ -26,6 +26,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class MarkerBasedTemplateServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var MarkerBasedTemplateService */ diff --git a/typo3/sysext/core/Tests/Unit/Tree/TableConfiguration/TreeDataProviderFactoryTest.php b/typo3/sysext/core/Tests/Unit/Tree/TableConfiguration/TreeDataProviderFactoryTest.php index e9d71814901cc739a82f8de11483fb9b47d7e7cd..c4ef6c066c60bcd73f0539c2126744ab320c0b07 100644 --- a/typo3/sysext/core/Tests/Unit/Tree/TableConfiguration/TreeDataProviderFactoryTest.php +++ b/typo3/sysext/core/Tests/Unit/Tree/TableConfiguration/TreeDataProviderFactoryTest.php @@ -23,6 +23,11 @@ use TYPO3\CMS\Core\Tree\TableConfiguration\TreeDataProviderFactory; */ class TreeDataProviderFactoryTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var TreeDataProviderFactory */ diff --git a/typo3/sysext/core/Tests/Unit/Type/EnumerationTest.php b/typo3/sysext/core/Tests/Unit/Type/EnumerationTest.php index 6fc69a57e514ccd8dc71cd0769e323f1a5e357be..45b1629832bcd7720860407edb53d950062ab6dd 100644 --- a/typo3/sysext/core/Tests/Unit/Type/EnumerationTest.php +++ b/typo3/sysext/core/Tests/Unit/Type/EnumerationTest.php @@ -23,6 +23,11 @@ use TYPO3\CMS\Core\Type\Exception\InvalidEnumerationValueException; */ class EnumerationTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/TypoScript/Parser/TypoScriptParserTest.php b/typo3/sysext/core/Tests/Unit/TypoScript/Parser/TypoScriptParserTest.php index d5c9d19dfece06d19bb3e914223a3d8fd5800674..1f5a3b8e0129b432f977f432e2575371a0a9136b 100644 --- a/typo3/sysext/core/Tests/Unit/TypoScript/Parser/TypoScriptParserTest.php +++ b/typo3/sysext/core/Tests/Unit/TypoScript/Parser/TypoScriptParserTest.php @@ -21,6 +21,11 @@ use TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser; */ class TypoScriptParserTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser|\TYPO3\TestingFramework\Core\AccessibleObjectInterface */ diff --git a/typo3/sysext/core/Tests/Unit/TypoScript/TemplateServiceTest.php b/typo3/sysext/core/Tests/Unit/TypoScript/TemplateServiceTest.php index e0bfd6b15d3ee2d8b7a015157fbb19e643229ea4..0bf388e8407511b59b61cee78dcc1f0c626e3563 100644 --- a/typo3/sysext/core/Tests/Unit/TypoScript/TemplateServiceTest.php +++ b/typo3/sysext/core/Tests/Unit/TypoScript/TemplateServiceTest.php @@ -26,6 +26,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class TemplateServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Core\TypoScript\TemplateService */ diff --git a/typo3/sysext/core/Tests/Unit/TypoScript/TypoScriptServiceTest.php b/typo3/sysext/core/Tests/Unit/TypoScript/TypoScriptServiceTest.php index ac741c9c0229143b7a45977e7a37e42a82c2844d..955cbc85f423e5143c8b1c1a3c2d476012efea91 100644 --- a/typo3/sysext/core/Tests/Unit/TypoScript/TypoScriptServiceTest.php +++ b/typo3/sysext/core/Tests/Unit/TypoScript/TypoScriptServiceTest.php @@ -21,6 +21,11 @@ use TYPO3\CMS\Core\TypoScript\TypoScriptService; */ class TypoScriptServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * data provider for convertTypoScriptArrayToPlainArray * @return array diff --git a/typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php b/typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php index eb36c19c93b30207e4c45a333454965eee7d8df7..4b67b379f449424f243230a5a86323125140b955 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php +++ b/typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php @@ -23,6 +23,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ArrayUtilityTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /////////////////////// // Tests concerning filterByValueRecursive /////////////////////// diff --git a/typo3/sysext/core/Tests/Unit/Utility/ClassNamingUtilityTest.php b/typo3/sysext/core/Tests/Unit/Utility/ClassNamingUtilityTest.php index e23a925bcaa36236fc20556d5dea06f41bb4a2d2..1974444cb5383438d310f4f3a3f25baee832d3cc 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/ClassNamingUtilityTest.php +++ b/typo3/sysext/core/Tests/Unit/Utility/ClassNamingUtilityTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Core\Tests\Unit\Utility; */ class ClassNamingUtilityTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * DataProvider for translateModelNameToRepositoryName * and translateRepositoryNameToModelName diff --git a/typo3/sysext/core/Tests/Unit/Utility/ExtensionManagementUtilityTest.php b/typo3/sysext/core/Tests/Unit/Utility/ExtensionManagementUtilityTest.php index 6b13e657ab0fe3878ea092f147c137cdba044059..da9bd6d50eae7d3c2ced8a9cdd3932b7185ecc27 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/ExtensionManagementUtilityTest.php +++ b/typo3/sysext/core/Tests/Unit/Utility/ExtensionManagementUtilityTest.php @@ -30,6 +30,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; */ class ExtensionManagementUtilityTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var array A backup of registered singleton instances */ diff --git a/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php b/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php index 24d696de28fc0813d6eea6ff84290f457594115d..e88c2ee8d370d7fd1d896be4c7b41a1d96206b2a 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php +++ b/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php @@ -38,6 +38,12 @@ use TYPO3\TestingFramework\Core\FileStreamWrapper; class GeneralUtilityTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { const NO_FIX_PERMISSIONS_ON_WINDOWS = 'fixPermissions() not available on Windows (method does nothing)'; + + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var array A backup of registered singleton instances */ diff --git a/typo3/sysext/core/Tests/Unit/Utility/RootlineUtilityTest.php b/typo3/sysext/core/Tests/Unit/Utility/RootlineUtilityTest.php index 69a5d10f359aad7b072c7615c2ea9e590aa5a606..362245b83c13202873306c475859c18d06b335e2 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/RootlineUtilityTest.php +++ b/typo3/sysext/core/Tests/Unit/Utility/RootlineUtilityTest.php @@ -21,6 +21,11 @@ use TYPO3\CMS\Core\Utility\RootlineUtility; */ class RootlineUtilityTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var RootlineUtility|\TYPO3\TestingFramework\Core\AccessibleObjectInterface|\PHPUnit_Framework_MockObject_MockObject */ diff --git a/typo3/sysext/core/Tests/Unit/Utility/StringUtilityTest.php b/typo3/sysext/core/Tests/Unit/Utility/StringUtilityTest.php index 8fe5b96fa1689179189d8b1d483410d8de2cf6bd..41f0b4ee202900790d9384015e64e9f73976d4ee 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/StringUtilityTest.php +++ b/typo3/sysext/core/Tests/Unit/Utility/StringUtilityTest.php @@ -21,6 +21,11 @@ use TYPO3\CMS\Core\Utility\StringUtility; */ class StringUtilityTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * Data provider for endsWithReturnsTrueForMatchingFirstPart * diff --git a/typo3/sysext/core/Tests/Unit/ViewHelpers/IconViewHelperTest.php b/typo3/sysext/core/Tests/Unit/ViewHelpers/IconViewHelperTest.php index 6f3864bc6c4bcd305999d817a2ded9cf0281cec1..265eafe6f617ba1f07f818d68339e1b4a60ef307 100644 --- a/typo3/sysext/core/Tests/Unit/ViewHelpers/IconViewHelperTest.php +++ b/typo3/sysext/core/Tests/Unit/ViewHelpers/IconViewHelperTest.php @@ -27,6 +27,11 @@ use TYPO3\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase; */ class IconViewHelperTest extends ViewHelperBaseTestcase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var IconViewHelper */ diff --git a/typo3/sysext/core/Tests/UnitDeprecated/Html/RteHtmlParserTest.php b/typo3/sysext/core/Tests/UnitDeprecated/Html/RteHtmlParserTest.php index 1a03661f30956c6db2fb5c397d902c87d5587ab7..e6c0e5d658da284f00997162b5bea9fa42d3b40c 100644 --- a/typo3/sysext/core/Tests/UnitDeprecated/Html/RteHtmlParserTest.php +++ b/typo3/sysext/core/Tests/UnitDeprecated/Html/RteHtmlParserTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Core\Tests\Unit_Deprecated\Html; */ class RteHtmlParserTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Core\Html\RteHtmlParser */ diff --git a/typo3/sysext/core/Tests/UnitDeprecated/Utility/ClientUtilityTest.php b/typo3/sysext/core/Tests/UnitDeprecated/Utility/ClientUtilityTest.php index e437686c9b1acd7e975f97c92291fcef91f69449..0b0479238ce0c446845ca9ec7e3eefbbee084455 100644 --- a/typo3/sysext/core/Tests/UnitDeprecated/Utility/ClientUtilityTest.php +++ b/typo3/sysext/core/Tests/UnitDeprecated/Utility/ClientUtilityTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Core\Tests\Unit\Utility; */ class ClientUtilityTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + ////////////////////////////////////////////////////////// // Utility Functions ////////////////////////////////////////////////////////// diff --git a/typo3/sysext/extbase/Tests/Unit/Configuration/AbstractConfigurationManagerTest.php b/typo3/sysext/extbase/Tests/Unit/Configuration/AbstractConfigurationManagerTest.php index a04821cca06dbca8f6f0f68d0b475696f92bf21d..f8e3b15711ce1bb1f5bfba95cbce8933b002ee6e 100644 --- a/typo3/sysext/extbase/Tests/Unit/Configuration/AbstractConfigurationManagerTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Configuration/AbstractConfigurationManagerTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Configuration; */ class AbstractConfigurationManagerTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\TestingFramework\Core\AccessibleObjectInterface */ diff --git a/typo3/sysext/extbase/Tests/Unit/Configuration/FrontendConfigurationManagerTest.php b/typo3/sysext/extbase/Tests/Unit/Configuration/FrontendConfigurationManagerTest.php index e866aa3c463a36451c843e200f10e41bae4dfc9c..ec01340e0c54310506683280713b4322fd1fb282 100644 --- a/typo3/sysext/extbase/Tests/Unit/Configuration/FrontendConfigurationManagerTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Configuration/FrontendConfigurationManagerTest.php @@ -20,6 +20,11 @@ use TYPO3\CMS\Extbase\Configuration\Exception\ParseErrorException; */ class FrontendConfigurationManagerTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer|\PHPUnit_Framework_MockObject_MockObject */ diff --git a/typo3/sysext/extbase/Tests/Unit/Mvc/Controller/ActionControllerTest.php b/typo3/sysext/extbase/Tests/Unit/Mvc/Controller/ActionControllerTest.php index 783b31365c6df8c26f292765fe6fa7e603db96ea..ae5b34e7b04b424e99f6020914cbc80cff5fbbde 100644 --- a/typo3/sysext/extbase/Tests/Unit/Mvc/Controller/ActionControllerTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Mvc/Controller/ActionControllerTest.php @@ -29,6 +29,11 @@ use TYPO3Fluid\Fluid\View\TemplateView; */ class ActionControllerTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Extbase\Mvc\Controller\ActionController|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\TestingFramework\Core\AccessibleObjectInterface */ diff --git a/typo3/sysext/extbase/Tests/Unit/Mvc/Web/RequestBuilderTest.php b/typo3/sysext/extbase/Tests/Unit/Mvc/Web/RequestBuilderTest.php index 2c5a8f7aef659c0f79770fe3c27d7c183433c2ce..95a6a478a5e44bfa509a790d5edc6dc6ba2122fa 100644 --- a/typo3/sysext/extbase/Tests/Unit/Mvc/Web/RequestBuilderTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Mvc/Web/RequestBuilderTest.php @@ -23,6 +23,11 @@ use TYPO3\CMS\Extbase\Mvc\Exception\InvalidControllerNameException; */ class RequestBuilderTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Extbase\Mvc\Web\RequestBuilder|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\TestingFramework\Core\AccessibleObjectInterface */ diff --git a/typo3/sysext/extbase/Tests/Unit/Mvc/Web/Routing/UriBuilderTest.php b/typo3/sysext/extbase/Tests/Unit/Mvc/Web/Routing/UriBuilderTest.php index 914a719806e2c221f6ae3c807946ffdd315d305c..bbaeff00b439d41d67ce39fd5dfc53de64ad96a1 100644 --- a/typo3/sysext/extbase/Tests/Unit/Mvc/Web/Routing/UriBuilderTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Mvc/Web/Routing/UriBuilderTest.php @@ -36,6 +36,11 @@ use TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController; */ class UriBuilderTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var ConfigurationManagerInterface */ diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/BackendTest.php b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/BackendTest.php index f9a2c4979441d129a888272004ceb1b2c448adf5..5586d44e31cea65609f123c7d338c4e7eae9a46a 100644 --- a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/BackendTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/BackendTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic; */ class BackendTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapFactoryTest.php b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapFactoryTest.php index 194cb2837f5e79aa160ed486175873b50d1ea130..747ce3d29931e2597a40063b4df1cf624a23d315 100644 --- a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapFactoryTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapFactoryTest.php @@ -25,6 +25,11 @@ use TYPO3\TestingFramework\Core\AccessibleObjectInterface; */ class DataMapFactoryTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @return array */ diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapperTest.php b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapperTest.php index d217d8705c6c03dd2438be76be7a8875b167c9e5..d9978dbf9974ec8b9dd8be404f63e96b2e059321 100644 --- a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapperTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapperTest.php @@ -27,6 +27,11 @@ use TYPO3\TestingFramework\Core\AccessibleObjectInterface; */ class DataMapperTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/PersistenceManagerTest.php b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/PersistenceManagerTest.php index 99177dbcc80ce20069dadca2ed9c64b4120f89a2..2ac8cf1972364d84015656b572c57038762f30a5 100644 --- a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/PersistenceManagerTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/PersistenceManagerTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic; */ class PersistenceManagerTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface */ diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/SessionTest.php b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/SessionTest.php index a55741bca245a1582b26bff650f81d3f8b131c7b..ef0fa80a1587581ddae7268910f042e15a536278 100644 --- a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/SessionTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/SessionTest.php @@ -15,6 +15,11 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic; */ class SessionTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbBackendTest.php b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbBackendTest.php index cf3934a840b2ad115e6988f1fbd13be5cca987d1..91fb65bf5b20f2ac91c77094e2be2816810d8c0f 100644 --- a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbBackendTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbBackendTest.php @@ -27,6 +27,11 @@ use TYPO3\CMS\Extbase\Service\EnvironmentService; */ class Typo3DbBackendTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + public function setUp() { parent::setUp(); diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbQueryParserTest.php b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbQueryParserTest.php index 2b8ab8757aaa99159affb20210c60dc6290fa665..7de15c25d96d80c97f076e8d5ac9a9425d6018f4 100644 --- a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbQueryParserTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbQueryParserTest.php @@ -35,7 +35,12 @@ use TYPO3\CMS\Extbase\Persistence\QueryInterface; class Typo3DbQueryParserTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { /** - * @var arary + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + + /** + * @var array */ protected $singletonInstances; diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/RepositoryTest.php b/typo3/sysext/extbase/Tests/Unit/Persistence/RepositoryTest.php index 569c9d707a9f78a2b406ee5087e89e4a5d51c4d1..934773858c4157c155924f4448febb1e419927be 100644 --- a/typo3/sysext/extbase/Tests/Unit/Persistence/RepositoryTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Persistence/RepositoryTest.php @@ -21,6 +21,11 @@ use TYPO3\CMS\Extbase\Persistence\Generic\Exception\UnsupportedMethodException; */ class RepositoryTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Extbase\Persistence\Repository|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\TestingFramework\Core\AccessibleObjectInterface */ diff --git a/typo3/sysext/extbase/Tests/Unit/Reflection/ReflectionServiceTest.php b/typo3/sysext/extbase/Tests/Unit/Reflection/ReflectionServiceTest.php index ae29c619867e1ecbae46ad4b0c2f863d3b5a3e7d..33a8e130f35338de4ca075ef858c0f5f68c47ae9 100644 --- a/typo3/sysext/extbase/Tests/Unit/Reflection/ReflectionServiceTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Reflection/ReflectionServiceTest.php @@ -24,6 +24,11 @@ use TYPO3\CMS\Extbase\Reflection\ReflectionService; */ class ReflectionServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @param array $foo The foo parameter * @return string diff --git a/typo3/sysext/extbase/Tests/Unit/Scheduler/TaskTest.php b/typo3/sysext/extbase/Tests/Unit/Scheduler/TaskTest.php index 14c128cecbdb8e0838443ba6951b3941bd0065ea..34bb8e5a763117fc38eddfc19b204fd3ade27e7b 100644 --- a/typo3/sysext/extbase/Tests/Unit/Scheduler/TaskTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Scheduler/TaskTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Scheduler; */ class TaskTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Extbase\Scheduler\Task|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\TestingFramework\Core\AccessibleObjectInterface */ diff --git a/typo3/sysext/extbase/Tests/Unit/Service/ExtensionServiceTest.php b/typo3/sysext/extbase/Tests/Unit/Service/ExtensionServiceTest.php index 4384e7b52e660df28b84c58ea364fa7559e740de..bdc5b0e39083ce822e0e88aa1f0fab3df23218c7 100644 --- a/typo3/sysext/extbase/Tests/Unit/Service/ExtensionServiceTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Service/ExtensionServiceTest.php @@ -29,6 +29,11 @@ use TYPO3\CMS\Extbase\Exception; */ class ExtensionServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface */ diff --git a/typo3/sysext/extbase/Tests/Unit/Service/ImageScriptServiceTest.php b/typo3/sysext/extbase/Tests/Unit/Service/ImageScriptServiceTest.php index 7f983b0166f65f77bb115a6125a4c0c16f2b0bfc..c7be01bd0d083549dac762d010e3bae142dac02e 100644 --- a/typo3/sysext/extbase/Tests/Unit/Service/ImageScriptServiceTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Service/ImageScriptServiceTest.php @@ -26,6 +26,11 @@ use TYPO3\CMS\Extbase\Service\ImageService; */ class ImageScriptServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var ImageService */ diff --git a/typo3/sysext/extbase/Tests/Unit/SignalSlot/DispatcherTest.php b/typo3/sysext/extbase/Tests/Unit/SignalSlot/DispatcherTest.php index aeb17b281873940e36f5a1d31d6aa78eb8f3205a..e0a672030bd511a54f860a06424206a87b35b3af 100644 --- a/typo3/sysext/extbase/Tests/Unit/SignalSlot/DispatcherTest.php +++ b/typo3/sysext/extbase/Tests/Unit/SignalSlot/DispatcherTest.php @@ -24,6 +24,11 @@ use TYPO3\CMS\Extbase\Tests\Unit\SignalSlot\Fixtures\SlotMethodDoesNotExistFixtu */ class DispatcherTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\TestingFramework\Core\AccessibleObjectInterface */ diff --git a/typo3/sysext/extbase/Tests/Unit/Utility/ExtensionUtilityTest.php b/typo3/sysext/extbase/Tests/Unit/Utility/ExtensionUtilityTest.php index 95d76145e90c9ca20da6e2c32426c004798dfb8a..5c66afdff4d099897e890d2d1c3ece56086b8404 100644 --- a/typo3/sysext/extbase/Tests/Unit/Utility/ExtensionUtilityTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Utility/ExtensionUtilityTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Utility; */ class ExtensionUtilityTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + protected function setUp() { $GLOBALS['TSFE'] = new \stdClass(); diff --git a/typo3/sysext/extbase/Tests/Unit/Utility/LocalizationUtilityTest.php b/typo3/sysext/extbase/Tests/Unit/Utility/LocalizationUtilityTest.php index 0a0c05c6dfd57802f8dbc4bd7aa14dc2169e6e27..fe33a59b7f35c3fd477d2db54a01ddb298b90552 100644 --- a/typo3/sysext/extbase/Tests/Unit/Utility/LocalizationUtilityTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Utility/LocalizationUtilityTest.php @@ -21,6 +21,11 @@ use TYPO3\CMS\Extbase\Utility\LocalizationUtility; */ class LocalizationUtilityTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * Instance of configurationManager, injected to subject * diff --git a/typo3/sysext/extensionmanager/Tests/Unit/Report/ExtensionStatusTest.php b/typo3/sysext/extensionmanager/Tests/Unit/Report/ExtensionStatusTest.php index d2f841b39812d554074c25eb5766c4fdd052e39f..2a0bcd7b0ac1a4551e35a6e886cdd9bc932423eb 100644 --- a/typo3/sysext/extensionmanager/Tests/Unit/Report/ExtensionStatusTest.php +++ b/typo3/sysext/extensionmanager/Tests/Unit/Report/ExtensionStatusTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Extensionmanager\Tests\Unit\Report; */ class ExtensionStatusTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface */ diff --git a/typo3/sysext/extensionmanager/Tests/Unit/Service/ExtensionManagementServiceTest.php b/typo3/sysext/extensionmanager/Tests/Unit/Service/ExtensionManagementServiceTest.php index 29dd3729afe83bd947bcbfd11b9ac5a094eab5da..6c1ce605d2793f6072dcaea7d98bd2ac702962af 100644 --- a/typo3/sysext/extensionmanager/Tests/Unit/Service/ExtensionManagementServiceTest.php +++ b/typo3/sysext/extensionmanager/Tests/Unit/Service/ExtensionManagementServiceTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Extensionmanager\Tests\Unit\Service; */ class ExtensionManagementServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/extensionmanager/Tests/Unit/Utility/EmConfUtilityTest.php b/typo3/sysext/extensionmanager/Tests/Unit/Utility/EmConfUtilityTest.php index c0c9ab12f23dfc0e36517e8a14074a723b81f727..2d9ee242235db0054a7afdd0f8207574e0461e53 100644 --- a/typo3/sysext/extensionmanager/Tests/Unit/Utility/EmConfUtilityTest.php +++ b/typo3/sysext/extensionmanager/Tests/Unit/Utility/EmConfUtilityTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Extensionmanager\Tests\Unit\Utility; */ class EmConfUtilityTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/extensionmanager/Tests/Unit/Utility/FileHandlingUtilityTest.php b/typo3/sysext/extensionmanager/Tests/Unit/Utility/FileHandlingUtilityTest.php index a48fdfaf7a612efd83c6d32edec9d07f991db01b..2a454b3e86fd4dd1172e186dae7576469709757f 100644 --- a/typo3/sysext/extensionmanager/Tests/Unit/Utility/FileHandlingUtilityTest.php +++ b/typo3/sysext/extensionmanager/Tests/Unit/Utility/FileHandlingUtilityTest.php @@ -20,6 +20,11 @@ use TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException; */ class FileHandlingUtilityTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var array List of created fake extensions to be deleted in tearDown() again */ diff --git a/typo3/sysext/extensionmanager/Tests/Unit/Utility/InstallUtilityTest.php b/typo3/sysext/extensionmanager/Tests/Unit/Utility/InstallUtilityTest.php index 8565de8ff4f21107654ffc438bfacac12936f95c..a05d3180ceba673bf1ae310063ae1d9e95fe8ed2 100644 --- a/typo3/sysext/extensionmanager/Tests/Unit/Utility/InstallUtilityTest.php +++ b/typo3/sysext/extensionmanager/Tests/Unit/Utility/InstallUtilityTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Extensionmanager\Tests\Unit\Utility; */ class InstallUtilityTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var string */ diff --git a/typo3/sysext/extensionmanager/Tests/Unit/Utility/ListUtilityTest.php b/typo3/sysext/extensionmanager/Tests/Unit/Utility/ListUtilityTest.php index 8316e0022209e277a5add953836d7b36eb05cd26..798648e00e7d75a6fd7cdc31a75ec5d2d4aa8cae 100644 --- a/typo3/sysext/extensionmanager/Tests/Unit/Utility/ListUtilityTest.php +++ b/typo3/sysext/extensionmanager/Tests/Unit/Utility/ListUtilityTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Extensionmanager\Tests\Unit\Utility; */ class ListUtilityTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Extensionmanager\Utility\ListUtility */ diff --git a/typo3/sysext/felogin/Tests/Unit/Controller/FrontendLoginControllerTest.php b/typo3/sysext/felogin/Tests/Unit/Controller/FrontendLoginControllerTest.php index 56a98b10c59cf19e202f19d8568256d776e929e3..ed0fc9f7006a4ee21588e2efa7cd5d7c43f6916c 100644 --- a/typo3/sysext/felogin/Tests/Unit/Controller/FrontendLoginControllerTest.php +++ b/typo3/sysext/felogin/Tests/Unit/Controller/FrontendLoginControllerTest.php @@ -30,6 +30,11 @@ use TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController; */ class FrontendLoginControllerTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Felogin\Controller\FrontendLoginController|\TYPO3\TestingFramework\Core\AccessibleObjectInterface */ diff --git a/typo3/sysext/fluid/Tests/Unit/Core/Widget/AbstractWidgetViewHelperTest.php b/typo3/sysext/fluid/Tests/Unit/Core/Widget/AbstractWidgetViewHelperTest.php index b4ae07dabd24b5872e522aa48dfbce4900bf3149..7fe545f7021f186831ef7629bafcfb3a7b3dea83 100644 --- a/typo3/sysext/fluid/Tests/Unit/Core/Widget/AbstractWidgetViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Unit/Core/Widget/AbstractWidgetViewHelperTest.php @@ -24,6 +24,11 @@ use TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperVariableContainer; */ class AbstractWidgetViewHelperTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Fluid\Core\Widget\AbstractWidgetViewHelper */ diff --git a/typo3/sysext/fluid/Tests/Unit/Core/Widget/WidgetRequestBuilderTest.php b/typo3/sysext/fluid/Tests/Unit/Core/Widget/WidgetRequestBuilderTest.php index 447620672cba13b3df45c8b8e237d35b2c06c084..99c861efa5749d1722eb17524f5d2f8bdb962922 100644 --- a/typo3/sysext/fluid/Tests/Unit/Core/Widget/WidgetRequestBuilderTest.php +++ b/typo3/sysext/fluid/Tests/Unit/Core/Widget/WidgetRequestBuilderTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\Core\Widget; */ class WidgetRequestBuilderTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Fluid\Core\Widget\WidgetRequestBuilder */ diff --git a/typo3/sysext/fluid/Tests/Unit/View/StandaloneViewTest.php b/typo3/sysext/fluid/Tests/Unit/View/StandaloneViewTest.php index bc02f00321d55b52d084c77e017288dbcf63779f..467c10bdf59822f5df5e19b89f78d4c4c05a594e 100644 --- a/typo3/sysext/fluid/Tests/Unit/View/StandaloneViewTest.php +++ b/typo3/sysext/fluid/Tests/Unit/View/StandaloneViewTest.php @@ -33,6 +33,11 @@ use TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperVariableContainer; */ class StandaloneViewTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var array A backup of registered singleton instances */ diff --git a/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Be/Security/IfAuthenticatedViewHelperTest.php b/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Be/Security/IfAuthenticatedViewHelperTest.php index f3bd285e721d8824fabc0110e82d6f0bf95f502a..eb0060b14d37f1f06da01eface7846915b9cacfb 100644 --- a/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Be/Security/IfAuthenticatedViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Be/Security/IfAuthenticatedViewHelperTest.php @@ -21,6 +21,11 @@ use TYPO3\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase; */ class IfAuthenticatedViewHelperTest extends ViewHelperBaseTestcase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Fluid\ViewHelpers\Be\Security\IfAuthenticatedViewHelper */ diff --git a/typo3/sysext/fluid/Tests/Unit/ViewHelpers/CObjectViewHelperTest.php b/typo3/sysext/fluid/Tests/Unit/ViewHelpers/CObjectViewHelperTest.php index a877b45fd414ced5f5d821293429fcba723a7252..3984bd86b8e89a6898130700c1c47497d12594ef 100644 --- a/typo3/sysext/fluid/Tests/Unit/ViewHelpers/CObjectViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Unit/ViewHelpers/CObjectViewHelperTest.php @@ -27,6 +27,11 @@ use TYPO3\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase; */ class CObjectViewHelperTest extends ViewHelperBaseTestcase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var CObjectViewHelper */ diff --git a/typo3/sysext/fluid/Tests/Unit/ViewHelpers/FlashMessagesViewHelperTest.php b/typo3/sysext/fluid/Tests/Unit/ViewHelpers/FlashMessagesViewHelperTest.php index 08713dba34a98144461377574fd1ff4fc364bdab..01245817feec0308ef0cdff5ef8c0a9b4d6987ec 100644 --- a/typo3/sysext/fluid/Tests/Unit/ViewHelpers/FlashMessagesViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Unit/ViewHelpers/FlashMessagesViewHelperTest.php @@ -24,6 +24,11 @@ use TYPO3\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase; */ class FlashMessagesViewHelperTest extends ViewHelperBaseTestcase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Fluid\ViewHelpers\FlashMessagesViewHelper */ diff --git a/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/SelectViewHelperTest.php b/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/SelectViewHelperTest.php index c71c57639821ea144281756bac301f45ca3ebf0a..59dc3f872910e0ec12699f26e77858cb49f840ee 100644 --- a/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/SelectViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/SelectViewHelperTest.php @@ -22,6 +22,11 @@ use TYPO3Fluid\Fluid\Core\ViewHelper\TagBuilder; */ class SelectViewHelperTest extends ViewHelperBaseTestcase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Fluid\ViewHelpers\Form\SelectViewHelper */ diff --git a/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/TextareaViewHelperTest.php b/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/TextareaViewHelperTest.php index 01b6c468c6a5b7a74b5c5f3dcff98e95c0ecff16..40f8c4602ff3e748a716382cef0b9d6c27f41247 100644 --- a/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/TextareaViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/TextareaViewHelperTest.php @@ -20,6 +20,11 @@ use TYPO3Fluid\Fluid\Core\ViewHelper\TagBuilder; */ class TextareaViewHelperTest extends \TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\FormFieldViewHelperBaseTestcase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Fluid\ViewHelpers\Form\TextareaViewHelper */ diff --git a/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/TextfieldViewHelperTest.php b/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/TextfieldViewHelperTest.php index 76621b72985609f34951e241b43e63dbf90aed28..bdc7e0b5ad7a339f28b1e597a518c483a06512ed 100644 --- a/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/TextfieldViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/TextfieldViewHelperTest.php @@ -23,6 +23,11 @@ use TYPO3\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase; */ class TextfieldViewHelperTest extends ViewHelperBaseTestcase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var TextfieldViewHelper */ diff --git a/typo3/sysext/fluid/Tests/Unit/ViewHelpers/FormViewHelperTest.php b/typo3/sysext/fluid/Tests/Unit/ViewHelpers/FormViewHelperTest.php index e509e5b1ab0d5988d3f52feea159cb24f642d60e..623fe0fff84921e142d307b27a9835bed11753aa 100644 --- a/typo3/sysext/fluid/Tests/Unit/ViewHelpers/FormViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Unit/ViewHelpers/FormViewHelperTest.php @@ -23,6 +23,11 @@ use TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInterface; */ class FormViewHelperTest extends ViewHelperBaseTestcase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Extbase\Service\ExtensionService */ diff --git a/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Link/PageViewHelperTest.php b/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Link/PageViewHelperTest.php index 3519fa2404482d7a4e88722c626a8ecad796bf80..aa13c9868421f77c155fc24a59ffd4509448a3ca 100644 --- a/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Link/PageViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Link/PageViewHelperTest.php @@ -22,6 +22,11 @@ use TYPO3\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase; */ class PageViewHelperTest extends ViewHelperBaseTestcase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var PageViewHelper */ diff --git a/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Link/TypolinkViewHelperTest.php b/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Link/TypolinkViewHelperTest.php index c09d2acf904b89a09fc20aebaa5a4a8ff262dd17..dc8fdb6bb200591db3da269a30c1806348719182 100644 --- a/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Link/TypolinkViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Unit/ViewHelpers/Link/TypolinkViewHelperTest.php @@ -25,6 +25,11 @@ use TYPO3\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase; */ class TypolinkViewHelperTest extends ViewHelperBaseTestcase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var TypolinkViewHelper|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\TestingFramework\Core\AccessibleObjectInterface */ diff --git a/typo3/sysext/form/Tests/Unit/Controller/FormEditorControllerTest.php b/typo3/sysext/form/Tests/Unit/Controller/FormEditorControllerTest.php index a40315fdb7f1a6428052bc31a3adcff50edd420f..0e7f5657c3f70a0b6c60f6924a80a8be133cf8bf 100644 --- a/typo3/sysext/form/Tests/Unit/Controller/FormEditorControllerTest.php +++ b/typo3/sysext/form/Tests/Unit/Controller/FormEditorControllerTest.php @@ -25,6 +25,10 @@ use TYPO3\CMS\Form\Service\TranslationService; */ class FormEditorControllerTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; /** * @var array A backup of registered singleton instances diff --git a/typo3/sysext/form/Tests/Unit/Controller/FormManagerControllerTest.php b/typo3/sysext/form/Tests/Unit/Controller/FormManagerControllerTest.php index 83e960bf0b42502e4db224faef0062259bcfe88f..05e76a6c58991978870208d13b8ecbb6060998a8 100644 --- a/typo3/sysext/form/Tests/Unit/Controller/FormManagerControllerTest.php +++ b/typo3/sysext/form/Tests/Unit/Controller/FormManagerControllerTest.php @@ -30,6 +30,10 @@ use TYPO3\CMS\Form\Service\TranslationService; */ class FormManagerControllerTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; /** * @var array A backup of registered singleton instances diff --git a/typo3/sysext/form/Tests/Unit/Domain/Finishers/AbstractFinisherTest.php b/typo3/sysext/form/Tests/Unit/Domain/Finishers/AbstractFinisherTest.php index 7fdbea9b8625c2758ef8b3483f5397aa2ba73b44..714416431652954a1c3eed182f614113de5d2fd3 100644 --- a/typo3/sysext/form/Tests/Unit/Domain/Finishers/AbstractFinisherTest.php +++ b/typo3/sysext/form/Tests/Unit/Domain/Finishers/AbstractFinisherTest.php @@ -27,6 +27,11 @@ use TYPO3\CMS\Form\Service\TranslationService; */ class AbstractFinisherTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var array A backup of registered singleton instances */ diff --git a/typo3/sysext/form/Tests/Unit/Domain/FormElements/AbstractFormElementTest.php b/typo3/sysext/form/Tests/Unit/Domain/FormElements/AbstractFormElementTest.php index 1f95e2c62ed33fbbd5e0d4965e68f72f1b51950a..29711ea676a8254569cc412c5050d0754c991910 100644 --- a/typo3/sysext/form/Tests/Unit/Domain/FormElements/AbstractFormElementTest.php +++ b/typo3/sysext/form/Tests/Unit/Domain/FormElements/AbstractFormElementTest.php @@ -13,6 +13,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class AbstractFormElementTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/form/Tests/Unit/Domain/FormElements/SectionTest.php b/typo3/sysext/form/Tests/Unit/Domain/FormElements/SectionTest.php index fa4ca60843a3deb3a32c03f7d453de7669b33e1a..629676f57878567516d363f936aad369f6b2f36a 100644 --- a/typo3/sysext/form/Tests/Unit/Domain/FormElements/SectionTest.php +++ b/typo3/sysext/form/Tests/Unit/Domain/FormElements/SectionTest.php @@ -10,6 +10,11 @@ use TYPO3\CMS\Form\Domain\Model\FormElements\Section; */ class SectionTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + protected static $IDENTIFIER = 'an_id'; protected static $TYPE = 'a_type'; diff --git a/typo3/sysext/form/Tests/Unit/Hooks/DataStructureIdentifierHookTest.php b/typo3/sysext/form/Tests/Unit/Hooks/DataStructureIdentifierHookTest.php index 74bc44f95f4a69fb9668b52a30496a8f5eb46643..005463d2937060495b21164ee9356f5385977594 100644 --- a/typo3/sysext/form/Tests/Unit/Hooks/DataStructureIdentifierHookTest.php +++ b/typo3/sysext/form/Tests/Unit/Hooks/DataStructureIdentifierHookTest.php @@ -25,6 +25,11 @@ use TYPO3\CMS\Form\Mvc\Persistence\FormPersistenceManagerInterface; */ class DataStructureIdentifierHookTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var array A backup of registered singleton instances */ diff --git a/typo3/sysext/form/Tests/Unit/Mvc/Configuration/InheritancesResolverServiceTest.php b/typo3/sysext/form/Tests/Unit/Mvc/Configuration/InheritancesResolverServiceTest.php index 208e37b589632feb2d3d23b079284b997377539b..9717db4b21e6dba19201363eb7d51d86e9b878ba 100644 --- a/typo3/sysext/form/Tests/Unit/Mvc/Configuration/InheritancesResolverServiceTest.php +++ b/typo3/sysext/form/Tests/Unit/Mvc/Configuration/InheritancesResolverServiceTest.php @@ -22,6 +22,11 @@ use TYPO3\CMS\Form\Mvc\Configuration\InheritancesResolverService; */ class InheritancesResolverServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var InheritancesResolverService */ diff --git a/typo3/sysext/form/Tests/Unit/Mvc/Persistence/FormPersistenceManagerTest.php b/typo3/sysext/form/Tests/Unit/Mvc/Persistence/FormPersistenceManagerTest.php index 10531ceb1a720b56fee4767061d41b380d3eb095..d26ab527649920d1c13ffc123269676613d1480a 100644 --- a/typo3/sysext/form/Tests/Unit/Mvc/Persistence/FormPersistenceManagerTest.php +++ b/typo3/sysext/form/Tests/Unit/Mvc/Persistence/FormPersistenceManagerTest.php @@ -26,6 +26,10 @@ use TYPO3\CMS\Form\Mvc\Persistence\FormPersistenceManager; */ class FormPersistenceManagerTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; /** * @test diff --git a/typo3/sysext/form/Tests/Unit/Mvc/Property/PropertyMappingConfigurationTest.php b/typo3/sysext/form/Tests/Unit/Mvc/Property/PropertyMappingConfigurationTest.php index 75f6922d201bbfafaa022ad9032a96758e546191..5c9d513bec5adc65fd86507ad3f76b3036d08444 100644 --- a/typo3/sysext/form/Tests/Unit/Mvc/Property/PropertyMappingConfigurationTest.php +++ b/typo3/sysext/form/Tests/Unit/Mvc/Property/PropertyMappingConfigurationTest.php @@ -17,6 +17,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class PropertyMappingConfigurationTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** @var PropertyMappingConfiguration */ protected $propertyMappingConfiguration; diff --git a/typo3/sysext/form/Tests/Unit/Mvc/Validation/FileSizeValidatorTest.php b/typo3/sysext/form/Tests/Unit/Mvc/Validation/FileSizeValidatorTest.php index 2ce79cf1cf6a6ec2199106aafd769cb38c45fdb7..37da2f77afee64d0e0302c335b347d911cfdd7c5 100644 --- a/typo3/sysext/form/Tests/Unit/Mvc/Validation/FileSizeValidatorTest.php +++ b/typo3/sysext/form/Tests/Unit/Mvc/Validation/FileSizeValidatorTest.php @@ -24,6 +24,10 @@ use TYPO3\CMS\Form\Mvc\Validation\FileSizeValidator; */ class FileSizeValidatorTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; /** * @test diff --git a/typo3/sysext/form/Tests/Unit/Mvc/Validation/MimeTypeValidatorTest.php b/typo3/sysext/form/Tests/Unit/Mvc/Validation/MimeTypeValidatorTest.php index 0f11cec516e3a1512c9122e8b00d65a224a7beae..6ee00629715effe014ca4cece91a3d00f73db7b3 100644 --- a/typo3/sysext/form/Tests/Unit/Mvc/Validation/MimeTypeValidatorTest.php +++ b/typo3/sysext/form/Tests/Unit/Mvc/Validation/MimeTypeValidatorTest.php @@ -24,6 +24,10 @@ use TYPO3\CMS\Form\Mvc\Validation\MimeTypeValidator; */ class MimeTypeValidatorTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; /** * @test diff --git a/typo3/sysext/form/Tests/Unit/Service/TranslationServiceTest.php b/typo3/sysext/form/Tests/Unit/Service/TranslationServiceTest.php index 2077cedea805a16eaefeced8b3716c477a51bf53..07f7bdeebd75d131f79b0b5b7019b794392bb956 100644 --- a/typo3/sysext/form/Tests/Unit/Service/TranslationServiceTest.php +++ b/typo3/sysext/form/Tests/Unit/Service/TranslationServiceTest.php @@ -30,6 +30,10 @@ use TYPO3\CMS\Form\Service\TranslationService; */ class TranslationServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; /** * @var array A backup of registered singleton instances diff --git a/typo3/sysext/frontend/Tests/Unit/Authentication/FrontendUserAuthenticationTest.php b/typo3/sysext/frontend/Tests/Unit/Authentication/FrontendUserAuthenticationTest.php index f5f44f807fd497023a266226bb90b69cf81ba569..87e81f290c6b1a07c79eea9238c6b813eb56db47 100644 --- a/typo3/sysext/frontend/Tests/Unit/Authentication/FrontendUserAuthenticationTest.php +++ b/typo3/sysext/frontend/Tests/Unit/Authentication/FrontendUserAuthenticationTest.php @@ -38,6 +38,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class FrontendUserAuthenticationTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var array A backup of registered singleton instances */ diff --git a/typo3/sysext/frontend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php b/typo3/sysext/frontend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php index db932da00074fb2216b239850b18de90d7dd5dc0..8a1e0f88c0d2c03b85ed7036cbd7cdda5acef1ff 100644 --- a/typo3/sysext/frontend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php +++ b/typo3/sysext/frontend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php @@ -26,6 +26,11 @@ use TYPO3\CMS\Frontend\Tests\Unit\Configuration\TypoScript\ConditionMatching\Fix */ class ConditionMatcherTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var string Name of a key in $GLOBALS for this test */ diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/CaseContentObjectTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/CaseContentObjectTest.php index caa7c8d47a33210744ffbf68b45b373c9b0c2a4e..b33cb768ed293fae535356763fe157000c6e148f 100644 --- a/typo3/sysext/frontend/Tests/Unit/ContentObject/CaseContentObjectTest.php +++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/CaseContentObjectTest.php @@ -25,6 +25,11 @@ use TYPO3\CMS\Frontend\Page\PageRepository; */ class CaseContentObjectTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var CaseContentObject|\PHPUnit_Framework_MockObject_MockObject */ diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php index 55b969ba4e816e50f8ce057c20cf3e3bb684542b..f040b763998322481103e10fee1a9370092a14b6 100644 --- a/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php +++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php @@ -62,6 +62,10 @@ use TYPO3\CMS\Frontend\Page\PageRepository; */ class ContentObjectRendererTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; /** * @var array A backup of registered singleton instances diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/FilesContentObjectTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/FilesContentObjectTest.php index 04f062146a40a7d67f4cefffb7b52e28dcdc79fb..c05ab876a681c72f92a684c0bbb517e8d20af884 100644 --- a/typo3/sysext/frontend/Tests/Unit/ContentObject/FilesContentObjectTest.php +++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/FilesContentObjectTest.php @@ -32,6 +32,11 @@ use TYPO3\CMS\Frontend\Resource\FileCollector; */ class FilesContentObjectTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Frontend\ContentObject\FilesContentObject|\PHPUnit_Framework_MockObject_MockObject */ diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/FluidTemplateContentObjectTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/FluidTemplateContentObjectTest.php index b4e4ac720b86f5a6e800342793bbad7bc8810259..85d0c75f826fceee37340221e91a26bdddefef12 100644 --- a/typo3/sysext/frontend/Tests/Unit/ContentObject/FluidTemplateContentObjectTest.php +++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/FluidTemplateContentObjectTest.php @@ -28,6 +28,11 @@ use TYPO3Fluid\Fluid\View\TemplateView; */ class FluidTemplateContentObjectTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var array A backup of registered singleton instances */ diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/Menu/AbstractMenuContentObjectTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/Menu/AbstractMenuContentObjectTest.php index 9cf1321c455339403bd862c9c3c281e2e0bcbdda..c2d633c74937f31df8d446b06046977237b44ac1 100644 --- a/typo3/sysext/frontend/Tests/Unit/ContentObject/Menu/AbstractMenuContentObjectTest.php +++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/Menu/AbstractMenuContentObjectTest.php @@ -28,6 +28,11 @@ use TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject; */ class AbstractMenuContentObjectTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var array */ diff --git a/typo3/sysext/frontend/Tests/Unit/Controller/TypoScriptFrontendControllerTest.php b/typo3/sysext/frontend/Tests/Unit/Controller/TypoScriptFrontendControllerTest.php index 250019f06b7f30d4085642a7589fcee9ac7c6b40..65d2fc022b7796f1a9ebb0a39df8144e1c322c88 100644 --- a/typo3/sysext/frontend/Tests/Unit/Controller/TypoScriptFrontendControllerTest.php +++ b/typo3/sysext/frontend/Tests/Unit/Controller/TypoScriptFrontendControllerTest.php @@ -24,6 +24,11 @@ use TYPO3\CMS\Frontend\Page\PageRepository; */ class TypoScriptFrontendControllerTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \PHPUnit_Framework_MockObject_MockObject|\TYPO3\TestingFramework\Core\AccessibleObjectInterface|TypoScriptFrontendController */ diff --git a/typo3/sysext/frontend/Tests/Unit/Page/CacheHashCalculatorTest.php b/typo3/sysext/frontend/Tests/Unit/Page/CacheHashCalculatorTest.php index 2f00569569f011c7bf5c0e1fba5089990749461a..efdba66a0e7d7ee4dc9dd5af47e4e38ffece434d 100644 --- a/typo3/sysext/frontend/Tests/Unit/Page/CacheHashCalculatorTest.php +++ b/typo3/sysext/frontend/Tests/Unit/Page/CacheHashCalculatorTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Frontend\Tests\Unit\Page; */ class CacheHashCalculatorTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Frontend\Page\CacheHashCalculator */ diff --git a/typo3/sysext/frontend/Tests/Unit/Page/PageGeneratorTest.php b/typo3/sysext/frontend/Tests/Unit/Page/PageGeneratorTest.php index 9d3605d691125d79ec1036d701162ce8b8e8ed35..9502b1c50bb0ffceb8b8b4aed4d3297eba7fd943 100644 --- a/typo3/sysext/frontend/Tests/Unit/Page/PageGeneratorTest.php +++ b/typo3/sysext/frontend/Tests/Unit/Page/PageGeneratorTest.php @@ -27,6 +27,11 @@ use TYPO3\CMS\Frontend\Page\PageGenerator; */ class PageGeneratorTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var array A backup of registered singleton instances */ diff --git a/typo3/sysext/frontend/Tests/Unit/Page/PageRepositoryTest.php b/typo3/sysext/frontend/Tests/Unit/Page/PageRepositoryTest.php index ec63f488a799e969fed2b9d0f22d564890737163..1fcd024b142efb2f4317da5bb656926a6bf5273a 100644 --- a/typo3/sysext/frontend/Tests/Unit/Page/PageRepositoryTest.php +++ b/typo3/sysext/frontend/Tests/Unit/Page/PageRepositoryTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\Frontend\Tests\Unit\Page; */ class PageRepositoryTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var \TYPO3\CMS\Frontend\Page\PageRepository|\TYPO3\TestingFramework\Core\AccessibleObjectInterface */ diff --git a/typo3/sysext/frontend/Tests/Unit/Plugin/AbstractPluginTest.php b/typo3/sysext/frontend/Tests/Unit/Plugin/AbstractPluginTest.php index cfeae7497fff5d05f504f24dd224c8d99cee46e5..d3202f235833b060d76c0ea7a8f766771b23e56d 100644 --- a/typo3/sysext/frontend/Tests/Unit/Plugin/AbstractPluginTest.php +++ b/typo3/sysext/frontend/Tests/Unit/Plugin/AbstractPluginTest.php @@ -24,6 +24,11 @@ use TYPO3\CMS\Frontend\Tests\Unit\Fixtures\ResultBrowserPluginHook; */ class AbstractPluginTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var AbstractPlugin */ diff --git a/typo3/sysext/frontend/Tests/Unit/Processor/GalleryProcessorTest.php b/typo3/sysext/frontend/Tests/Unit/Processor/GalleryProcessorTest.php index 82a8e0f2b849fe01581e71eff157023cd27850cd..c854df85c6d6bebee36f3c167a458b216a0a267c 100644 --- a/typo3/sysext/frontend/Tests/Unit/Processor/GalleryProcessorTest.php +++ b/typo3/sysext/frontend/Tests/Unit/Processor/GalleryProcessorTest.php @@ -23,6 +23,11 @@ use TYPO3\CMS\Frontend\DataProcessing\GalleryProcessor; */ class GalleryProcessorTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var ContentObjectRenderer|\PHPUnit_Framework_MockObject_MockObject */ diff --git a/typo3/sysext/frontend/Tests/Unit/Typolink/AbstractTypolinkBuilderTest.php b/typo3/sysext/frontend/Tests/Unit/Typolink/AbstractTypolinkBuilderTest.php index 003034cda5ffb6b76dfaac1ec3067331d93c5b33..3d5b589ea1df0e8b66593c660e5295c151623c09 100644 --- a/typo3/sysext/frontend/Tests/Unit/Typolink/AbstractTypolinkBuilderTest.php +++ b/typo3/sysext/frontend/Tests/Unit/Typolink/AbstractTypolinkBuilderTest.php @@ -29,6 +29,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class AbstractTypolinkBuilderTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var array A backup of registered singleton instances */ diff --git a/typo3/sysext/frontend/Tests/Unit/View/AdminPanelViewTest.php b/typo3/sysext/frontend/Tests/Unit/View/AdminPanelViewTest.php index 36f498fe7efa8044825093375f14867eb1991a8c..af796889c1f788108c26f970d80618303d439f7b 100644 --- a/typo3/sysext/frontend/Tests/Unit/View/AdminPanelViewTest.php +++ b/typo3/sysext/frontend/Tests/Unit/View/AdminPanelViewTest.php @@ -22,6 +22,11 @@ use TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController; */ class AdminPanelViewTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * Set up */ diff --git a/typo3/sysext/indexed_search/Tests/Unit/IndexerTest.php b/typo3/sysext/indexed_search/Tests/Unit/IndexerTest.php index 0bb7db0e6b7f824bd0cb635ba83108c60d4e7074..e2a461d32340f9c0dbd31db7168f7a8c54008533 100644 --- a/typo3/sysext/indexed_search/Tests/Unit/IndexerTest.php +++ b/typo3/sysext/indexed_search/Tests/Unit/IndexerTest.php @@ -19,6 +19,11 @@ namespace TYPO3\CMS\IndexedSearch\Tests\Unit; */ class IndexerTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * Indexer instance * diff --git a/typo3/sysext/install/Classes/Controller/UpgradeController.php b/typo3/sysext/install/Classes/Controller/UpgradeController.php index 8af39ea4c2f1ba10af08a2c419afde921bed4b3a..af59fe5fcacffa1fcc054c6ce8bb581b0a207aee 100644 --- a/typo3/sysext/install/Classes/Controller/UpgradeController.php +++ b/typo3/sysext/install/Classes/Controller/UpgradeController.php @@ -51,6 +51,7 @@ use TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\MethodArgumentUnusedMatcher; use TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\MethodCallMatcher; use TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\MethodCallStaticMatcher; use TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\PropertyAnnotationMatcher; +use TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\PropertyExistsStaticMatcher; use TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\PropertyProtectedMatcher; use TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\PropertyPublicMatcher; use TYPO3\CMS\Install\ExtensionScanner\Php\MatcherFactory; @@ -146,6 +147,10 @@ class UpgradeController extends AbstractController 'class' => MethodCallStaticMatcher::class, 'configurationFile' => 'EXT:install/Configuration/ExtensionScanner/Php/MethodCallStaticMatcher.php', ], + [ + 'class' => PropertyExistsStaticMatcher::class, + 'configurationFile' => 'EXT:install/Configuration/ExtensionScanner/Php/PropertyExistsStaticMatcher.php' + ], [ 'class' => PropertyProtectedMatcher::class, 'configurationFile' => 'EXT:install/Configuration/ExtensionScanner/Php/PropertyProtectedMatcher.php', diff --git a/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/PropertyExistsStaticMatcher.php b/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/PropertyExistsStaticMatcher.php new file mode 100644 index 0000000000000000000000000000000000000000..b614a455ddcebb6e27e81213c66e45c8304f4c56 --- /dev/null +++ b/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/PropertyExistsStaticMatcher.php @@ -0,0 +1,62 @@ +<?php +declare(strict_types = 1); +namespace TYPO3\CMS\Install\ExtensionScanner\Php\Matcher; + +/* + * This file is part of the TYPO3 CMS project. + * + * It is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License, either version 2 + * of the License, or any later version. + * + * For the full copyright and license information, please read the + * LICENSE.txt file that was distributed with this source code. + * + * The TYPO3 project - inspiring people to share! + */ + +use PhpParser\Node; +use PhpParser\Node\Stmt\Property; + +/** + * Find usages of properties which have been deprecated or removed. + * Useful if abstract classes remove properties. + */ +class PropertyExistsStaticMatcher extends AbstractCoreMatcher +{ + /** + * Validate config and prepare flat mach array + * + * @param array $matcherDefinitions Incoming main configuration + */ + public function __construct(array $matcherDefinitions) + { + $this->matcherDefinitions = $matcherDefinitions; + $this->validateMatcherDefinitions(); + } + + /** + * Called by PhpParser. + * + * @param Node $node + */ + public function enterNode(Node $node) + { + if (!$this->isFileIgnored($node) + && !$this->isLineIgnored($node) + && $node instanceof Property + && $node->isStatic() + && !$node->isPrivate() + && in_array($node->props[0]->name, array_keys($this->matcherDefinitions), true) + ) { + $propertyName = $node->props[0]->name; + $match = [ + 'restFiles' => $this->matcherDefinitions[$propertyName]['restFiles'], + 'line' => $node->getAttribute('startLine'), + 'message' => 'Use of property "' . $node->props[0]->name . '"', + 'indicator' => 'weak', + ]; + $this->matches[] = $match; + } + } +} diff --git a/typo3/sysext/install/Configuration/ExtensionScanner/Php/PropertyExistsStaticMatcher.php b/typo3/sysext/install/Configuration/ExtensionScanner/Php/PropertyExistsStaticMatcher.php new file mode 100644 index 0000000000000000000000000000000000000000..74a5cd5e3430cc477607fa00eef100d54d56e60c --- /dev/null +++ b/typo3/sysext/install/Configuration/ExtensionScanner/Php/PropertyExistsStaticMatcher.php @@ -0,0 +1,9 @@ +<?php +return [ + // Properties changed from public to protected + 'suppressNotices' => [ + 'restFiles' => [ + 'Breaking-83889-E_NOTICEFreeUnitTesting.rst', + ], + ], +]; diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/AbstractCoreMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/AbstractCoreMatcherTest.php index ee7d670bc8ce35cb8041e989d87f6b0951fc7086..f7e8cdcb6afc3fd39ba016bc09a5f83ad892702e 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/AbstractCoreMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/AbstractCoreMatcherTest.php @@ -23,6 +23,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class AbstractCoreMatcherTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayDimensionMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayDimensionMatcherTest.php index 7ba3bbaa125b1e63a737ba5815af231e7c101f91..7643bfad13d6d3665d49c06d470a44c0c2a47659 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayDimensionMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayDimensionMatcherTest.php @@ -26,6 +26,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ArrayDimensionMatcherTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/Fixtures/PropertyExistsStaticMatcherFixture.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/Fixtures/PropertyExistsStaticMatcherFixture.php new file mode 100644 index 0000000000000000000000000000000000000000..d93e244c36e17956cc54664aba2e3e81a91a4a6b --- /dev/null +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/Fixtures/PropertyExistsStaticMatcherFixture.php @@ -0,0 +1,65 @@ +<?php +declare(strict_types = 1); +namespace TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher\Fixtures; + +/* + * This file is part of the TYPO3 CMS project. + * + * It is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License, either version 2 + * of the License, or any later version. + * + * For the full copyright and license information, please read the + * LICENSE.txt file that was distributed with this source code. + * + * The TYPO3 project - inspiring people to share! + */ + +/** + * Fixture file + */ +class PropertyExistsStaticMatcherFixture1 +{ + protected static $iAmAMatch = 42; + + protected static $iAmNotAMatch; + + public static $iAmNotAMatchEither; + + private static $iAmNoMatchToo; +} + +class PropertyExistsStaticMatcherFixture2 +{ + public static $iAmAMatch; +} + +class PropertyExistsStaticMatcherFixture3 +{ + // Not a match: private + private static $iAmAMatch; +} + +class PropertyExistsStaticMatcherFixture4 +{ + // Not a match: suppressed + // @extensionScannerIgnoreLine + public static $iAmAMatch; +} + +class PropertyExistsStaticMatcherFixture5 +{ + /** + * Not a match: suppressed + * + * @extensionScannerIgnoreLine + * @var string|null + */ + public static $iAmAMatch; +} + +class PropertyExistsStaticMatcherFixture6 +{ + // Not a match: Not static + public $iAmAMatch; +} diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedMatcherTest.php index ca2241f0aea960babd41810a8548676175666ad6..f682b72bb42fad6fef4d5dda1d02b2ca157b83df 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedMatcherTest.php @@ -26,6 +26,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class MethodArgumentDroppedMatcherTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedStaticMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedStaticMatcherTest.php index 0cf030904c625b18b4b623e56b09dd06ee34f468..3262cdb176c1f3d5209b576ca7bebee4e02b3c5c 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedStaticMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedStaticMatcherTest.php @@ -26,6 +26,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class MethodArgumentDroppedStaticMatcherTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredMatcherTest.php index e35611eeba383994dd0c5b1a90f158f417fde7d4..e14ef040cef7cd6ad25b9ce46ad29ee2eb53ea5f 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredMatcherTest.php @@ -26,6 +26,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class MethodArgumentRequiredMatcherTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredStaticMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredStaticMatcherTest.php index aaa282455274c43307dbc9d99e2e43c7e0492cd7..aa0c8e2351d4fd78f54c699bdec7fa433d976ff3 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredStaticMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredStaticMatcherTest.php @@ -26,6 +26,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class MethodArgumentRequiredStaticMatcherTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentUnusedMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentUnusedMatcherTest.php index 53941487b014cec55b11bf6d205acbbd58a95640..ddbcbe2c91663bfc633e1e1c02cf461365970d3e 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentUnusedMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentUnusedMatcherTest.php @@ -26,6 +26,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class MethodArgumentUnusedMatcherTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodCallMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodCallMatcherTest.php index baa9f61dae30ed4b463330beb63071db64b2852b..f4e69f0e121e653940cdc5aa683a6a60f036ca2e 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodCallMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodCallMatcherTest.php @@ -26,6 +26,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class MethodCallMatcherTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodCallStaticMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodCallStaticMatcherTest.php index 9e946a97e732c743cfdc3a546f7be9795b6f2d9b..64d4c3e86efbea3dd1e50839ff0b41abf7d76a1c 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodCallStaticMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodCallStaticMatcherTest.php @@ -27,6 +27,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class MethodCallStaticMatcherTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyExistsStaticMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyExistsStaticMatcherTest.php new file mode 100644 index 0000000000000000000000000000000000000000..7c69f3692b6607675caaf8945c941421b8357056 --- /dev/null +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyExistsStaticMatcherTest.php @@ -0,0 +1,61 @@ +<?php +declare(strict_types = 1); +namespace TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher; + +/* + * This file is part of the TYPO3 CMS project. + * + * It is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License, either version 2 + * of the License, or any later version. + * + * For the full copyright and license information, please read the + * LICENSE.txt file that was distributed with this source code. + * + * The TYPO3 project - inspiring people to share! + */ + +use PhpParser\NodeTraverser; +use PhpParser\NodeVisitor\NameResolver; +use PhpParser\ParserFactory; +use TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\PropertyExistsStaticMatcher; +use TYPO3\TestingFramework\Core\Unit\UnitTestCase; + +/** + * Test case + */ +class PropertyExistsStaticMatcherTest extends UnitTestCase +{ + /** + * @test + */ + public function hitsFromFixtureAreFound() + { + $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $fixtureFile = __DIR__ . '/Fixtures/PropertyExistsStaticMatcherFixture.php'; + $statements = $parser->parse(file_get_contents($fixtureFile)); + + $traverser = new NodeTraverser(); + $traverser->addVisitor(new NameResolver()); + + $configuration = [ + 'iAmAMatch' => [ + 'restFiles' => [ + 'Breaking-12345-DeprecateFoo.rst', + ], + ], + ]; + $subject = new PropertyExistsStaticMatcher($configuration); + $traverser->addVisitor($subject); + $traverser->traverse($statements); + $expectedHitLineNumbers = [ + 23, + 34, + ]; + $actualHitLineNumbers = []; + foreach ($subject->getMatches() as $hit) { + $actualHitLineNumbers[] = $hit['line']; + } + $this->assertEquals($expectedHitLineNumbers, $actualHitLineNumbers); + } +} diff --git a/typo3/sysext/install/Tests/Unit/FolderStructure/AbstractNodeTest.php b/typo3/sysext/install/Tests/Unit/FolderStructure/AbstractNodeTest.php index af7ce6961255e6c33b5c7f5c182cd09d38e43846..22c5399a74ce64e8851c78fec600b47906178a34 100644 --- a/typo3/sysext/install/Tests/Unit/FolderStructure/AbstractNodeTest.php +++ b/typo3/sysext/install/Tests/Unit/FolderStructure/AbstractNodeTest.php @@ -26,6 +26,11 @@ use TYPO3\TestingFramework\Core\AccessibleObjectInterface; */ class AbstractNodeTest extends FolderStructureTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/install/Tests/Unit/FolderStructure/DirectoryNodeTest.php b/typo3/sysext/install/Tests/Unit/FolderStructure/DirectoryNodeTest.php index b163ac6cfaa740d3fce21e2a1577a0cc86f6d74b..23359866588fdb6ca478b5806da44cdc7a46ac76 100644 --- a/typo3/sysext/install/Tests/Unit/FolderStructure/DirectoryNodeTest.php +++ b/typo3/sysext/install/Tests/Unit/FolderStructure/DirectoryNodeTest.php @@ -28,6 +28,11 @@ use TYPO3\TestingFramework\Core\AccessibleObjectInterface; */ class DirectoryNodeTest extends FolderStructureTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/install/Tests/Unit/FolderStructure/FileNodeTest.php b/typo3/sysext/install/Tests/Unit/FolderStructure/FileNodeTest.php index b1a2f70b7498152ec9a30e38aaacfb904ceacbb5..9b633d5b5ed956a143479707a6c88313ca0af351 100644 --- a/typo3/sysext/install/Tests/Unit/FolderStructure/FileNodeTest.php +++ b/typo3/sysext/install/Tests/Unit/FolderStructure/FileNodeTest.php @@ -26,6 +26,11 @@ use TYPO3\TestingFramework\Core\AccessibleObjectInterface; */ class FileNodeTest extends FolderStructureTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/install/Tests/Unit/FolderStructure/LinkNodeTest.php b/typo3/sysext/install/Tests/Unit/FolderStructure/LinkNodeTest.php index 2f9869661d8125c1c35e3bf9655a7bfb2400123f..e50aca6e0d19c20a30b19166da39b5906d2876f0 100644 --- a/typo3/sysext/install/Tests/Unit/FolderStructure/LinkNodeTest.php +++ b/typo3/sysext/install/Tests/Unit/FolderStructure/LinkNodeTest.php @@ -25,6 +25,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class LinkNodeTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/install/Tests/Unit/Service/SilentConfigurationUpgradeServiceTest.php b/typo3/sysext/install/Tests/Unit/Service/SilentConfigurationUpgradeServiceTest.php index 6c2530e7af25806f2d85eedc9a60ca1dae855064..18769c07d403e70a8587c20d2dc7a17d7060f2a0 100644 --- a/typo3/sysext/install/Tests/Unit/Service/SilentConfigurationUpgradeServiceTest.php +++ b/typo3/sysext/install/Tests/Unit/Service/SilentConfigurationUpgradeServiceTest.php @@ -28,6 +28,11 @@ use TYPO3\CMS\Install\Service\SilentConfigurationUpgradeService; */ class SilentConfigurationUpgradeServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var ConfigurationManager|\PHPUnit_Framework_MockObject_MockObject */ diff --git a/typo3/sysext/install/Tests/Unit/Updates/RowUpdater/L10nModeUpdaterTest.php b/typo3/sysext/install/Tests/Unit/Updates/RowUpdater/L10nModeUpdaterTest.php index fc6b01a625a7378a84a17fb6a8ddc831693589cd..d72ee363f4ccdc962708f1e48d2a728ee44ac408 100644 --- a/typo3/sysext/install/Tests/Unit/Updates/RowUpdater/L10nModeUpdaterTest.php +++ b/typo3/sysext/install/Tests/Unit/Updates/RowUpdater/L10nModeUpdaterTest.php @@ -28,6 +28,11 @@ use TYPO3\CMS\Install\Updates\RowUpdater\L10nModeUpdater; */ class L10nModeUpdaterTest extends BaseTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test */ diff --git a/typo3/sysext/recordlist/Tests/UnitDeprecated/RecordList/AbstractDatabaseRecordListTest.php b/typo3/sysext/recordlist/Tests/UnitDeprecated/RecordList/AbstractDatabaseRecordListTest.php index d41edf723773a0968e7a7aef6cf6569fd1e8678a..61eb0007687d68e5e66bf07d22718abffe9f64c5 100644 --- a/typo3/sysext/recordlist/Tests/UnitDeprecated/RecordList/AbstractDatabaseRecordListTest.php +++ b/typo3/sysext/recordlist/Tests/UnitDeprecated/RecordList/AbstractDatabaseRecordListTest.php @@ -21,6 +21,11 @@ use TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList; */ class AbstractDatabaseRecordListTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @test * @dataProvider setTableDisplayOrderConvertsStringsDataProvider diff --git a/typo3/sysext/redirects/Tests/Unit/Service/RedirectServiceTest.php b/typo3/sysext/redirects/Tests/Unit/Service/RedirectServiceTest.php index 48a58d39eb952ff1664987efa0c1823d2f006b42..7d2621017c64d6ab2c88e20d8ba174f671884943 100644 --- a/typo3/sysext/redirects/Tests/Unit/Service/RedirectServiceTest.php +++ b/typo3/sysext/redirects/Tests/Unit/Service/RedirectServiceTest.php @@ -30,6 +30,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class RedirectServiceTest extends UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var RedirectCacheService|ObjectProphecy */ diff --git a/typo3/sysext/rsaauth/Tests/Unit/Backend/CommandLineBackendTest.php b/typo3/sysext/rsaauth/Tests/Unit/Backend/CommandLineBackendTest.php index a6231c8b0a5f4c6f7e4d5ad41ef2ccbb16e8824d..e1bad6f90a41e342f58ab5742c3b49b9bc8baa32 100644 --- a/typo3/sysext/rsaauth/Tests/Unit/Backend/CommandLineBackendTest.php +++ b/typo3/sysext/rsaauth/Tests/Unit/Backend/CommandLineBackendTest.php @@ -21,6 +21,11 @@ use TYPO3\CMS\Rsaauth\Backend\CommandLineBackend; */ class CommandLineBackendTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @var CommandLineBackend */ diff --git a/typo3/sysext/scheduler/Tests/Unit/CronCommand/NormalizeCommandTest.php b/typo3/sysext/scheduler/Tests/Unit/CronCommand/NormalizeCommandTest.php index 52dec9ee5b7885cc8481b89c968b46d85e81c599..066277042375536edb8e09861bd0cb8525cad531 100644 --- a/typo3/sysext/scheduler/Tests/Unit/CronCommand/NormalizeCommandTest.php +++ b/typo3/sysext/scheduler/Tests/Unit/CronCommand/NormalizeCommandTest.php @@ -22,6 +22,11 @@ use TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\AccessibleProxies\NormalizeComman */ class NormalizeCommandTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase { + /** + * Subject is not notice free, disable E_NOTICES + */ + protected static $suppressNotices = true; + /** * @return array */