[BUGFIX] LogLevelTest dataProvider not used
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 2 Sep 2012 21:12:02 +0000 (23:12 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 2 Sep 2012 21:30:21 +0000 (23:30 +0200)
commit93e12ed884a20f82bcc31ffb9bfa6ebd3ba4beab
tree2b820219c498b615667233e683d7c47e9b1419cf
parent900d343d1cbed419d3ff73f77a17c3d31b54d20c
[BUGFIX] LogLevelTest dataProvider not used

isValidLevelThrowsExceptionOnInvalidLevelIfAskedToDoSo() test throwed a
warning that required input parameter $inputValue was not used. This was
because of a typo @dataprovider -> @dataProvider, so the data provider
was not used at all. Fixing this, one of the tests with the
object \stdClass failed.
This turned out to be an error in the thrown exception in validateLevel
 because the exception is not thrown, if the exception message is
compiled from a string and an object. Therefore, the parameter $level
is now left out in method validateLevel().
As additional cleanup, the MathUtilityTest is moved from t3lib to core
extension, and the rootline test and fixture names are adapted.

Change-Id: If5ec0505abc224ad59cd5dc6cb4b679fc4bc46ba
Fixes: #40540
Releases: 6.0
Reviewed-on: http://review.typo3.org/14295
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
tests/Unit/t3lib/utility/class.t3lib_utility_mathTest.php [deleted file]
tests/Unit/t3lib/utility/fixture/t3lib_utility_math_fixture_classWithStringRepresentation.php [deleted file]
typo3/sysext/core/Classes/Log/LogLevel.php
typo3/sysext/core/Tests/Unit/Log/LogLevelTest.php
typo3/sysext/core/Tests/Unit/Utility/Fixtures/AccessibleRootline.php [deleted file]
typo3/sysext/core/Tests/Unit/Utility/Fixtures/MathUtilityTestClassWithStringRepresentationFixture.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Utility/Fixtures/RootlineUtilityTestAccessibleFixture.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Utility/MathUtilityTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Utility/RootlineUtilityTest.php