diff --git a/tests/Configurator/RulesGenerators/AutoCloseIfVoidTest.php b/tests/Configurator/RulesGenerators/AutoCloseIfVoidTest.php
index cd1abf9bb9..0ce39986ea 100644
--- a/tests/Configurator/RulesGenerators/AutoCloseIfVoidTest.php
+++ b/tests/Configurator/RulesGenerators/AutoCloseIfVoidTest.php
@@ -5,7 +5,7 @@
/**
* @covers s9e\TextFormatter\Configurator\RulesGenerators\AutoCloseIfVoid
*/
-class AutoCloseIfVoidTest extends AbstractTest
+class AutoCloseIfVoidTest extends AbstractTestClass
{
/**
* @testdox Generates an autoClose rule for
diff --git a/tests/Configurator/RulesGenerators/AutoReopenFormattingElementsTest.php b/tests/Configurator/RulesGenerators/AutoReopenFormattingElementsTest.php
index a524a0a2a4..d1e369daaf 100644
--- a/tests/Configurator/RulesGenerators/AutoReopenFormattingElementsTest.php
+++ b/tests/Configurator/RulesGenerators/AutoReopenFormattingElementsTest.php
@@ -5,7 +5,7 @@
/**
* @covers s9e\TextFormatter\Configurator\RulesGenerators\AutoReopenFormattingElements
*/
-class AutoReopenFormattingElementsTest extends AbstractTest
+class AutoReopenFormattingElementsTest extends AbstractTestClass
{
/**
* @testdox Generates an autoReopen rule for
diff --git a/tests/Configurator/RulesGenerators/BlockElementsCloseFormattingElementsTest.php b/tests/Configurator/RulesGenerators/BlockElementsCloseFormattingElementsTest.php
index fc016bf25a..61a1d29a50 100644
--- a/tests/Configurator/RulesGenerators/BlockElementsCloseFormattingElementsTest.php
+++ b/tests/Configurator/RulesGenerators/BlockElementsCloseFormattingElementsTest.php
@@ -5,7 +5,7 @@
/**
* @covers s9e\TextFormatter\Configurator\RulesGenerators\BlockElementsCloseFormattingElements
*/
-class BlockElementsCloseFormattingElementsTest extends AbstractTest
+class BlockElementsCloseFormattingElementsTest extends AbstractTestClass
{
/**
* @testdox has a closeParent rule for
diff --git a/tests/Configurator/RulesGenerators/BlockElementsFosterFormattingElementsTest.php b/tests/Configurator/RulesGenerators/BlockElementsFosterFormattingElementsTest.php
index 17cf38bb8d..9eb8cb0672 100644
--- a/tests/Configurator/RulesGenerators/BlockElementsFosterFormattingElementsTest.php
+++ b/tests/Configurator/RulesGenerators/BlockElementsFosterFormattingElementsTest.php
@@ -5,7 +5,7 @@
/**
* @covers s9e\TextFormatter\Configurator\RulesGenerators\BlockElementsFosterFormattingElements
*/
-class BlockElementsFosterFormattingElementsTest extends AbstractTest
+class BlockElementsFosterFormattingElementsTest extends AbstractTestClass
{
/**
* @testdox has a fosterParent rule for
diff --git a/tests/Configurator/RulesGenerators/DisableAutoLineBreaksIfNewLinesArePreservedTest.php b/tests/Configurator/RulesGenerators/DisableAutoLineBreaksIfNewLinesArePreservedTest.php
index 3019b2eb1b..0c2bb5353b 100644
--- a/tests/Configurator/RulesGenerators/DisableAutoLineBreaksIfNewLinesArePreservedTest.php
+++ b/tests/Configurator/RulesGenerators/DisableAutoLineBreaksIfNewLinesArePreservedTest.php
@@ -5,7 +5,7 @@
/**
* @covers s9e\TextFormatter\Configurator\RulesGenerators\DisableAutoLineBreaksIfNewLinesArePreserved
*/
-class DisableAutoLineBreaksIfNewLinesArePreservedTest extends AbstractTest
+class DisableAutoLineBreaksIfNewLinesArePreservedTest extends AbstractTestClass
{
/**
* @testdox Does not generate a disableAutoLineBreaks rule for
diff --git a/tests/Configurator/RulesGenerators/EnforceContentModelsTest.php b/tests/Configurator/RulesGenerators/EnforceContentModelsTest.php
index 12224fe267..9ced3dd1d0 100644
--- a/tests/Configurator/RulesGenerators/EnforceContentModelsTest.php
+++ b/tests/Configurator/RulesGenerators/EnforceContentModelsTest.php
@@ -5,7 +5,7 @@
/**
* @covers s9e\TextFormatter\Configurator\RulesGenerators\EnforceContentModels
*/
-class EnforceContentModelsTest extends AbstractTest
+class EnforceContentModelsTest extends AbstractTestClass
{
/**
* @testdox has an allowChild rule and an allowDescendant rule for
diff --git a/tests/Configurator/RulesGenerators/EnforceOptionalEndTagsTest.php b/tests/Configurator/RulesGenerators/EnforceOptionalEndTagsTest.php
index 3da7f264d4..bb60b10cc4 100644
--- a/tests/Configurator/RulesGenerators/EnforceOptionalEndTagsTest.php
+++ b/tests/Configurator/RulesGenerators/EnforceOptionalEndTagsTest.php
@@ -5,7 +5,7 @@
/**
* @covers s9e\TextFormatter\Configurator\RulesGenerators\EnforceOptionalEndTags
*/
-class EnforceOptionalEndTagsTest extends AbstractTest
+class EnforceOptionalEndTagsTest extends AbstractTestClass
{
/**
* @testdox - closes parent
-
diff --git a/tests/Configurator/RulesGenerators/IgnoreTagsInCodeTest.php b/tests/Configurator/RulesGenerators/IgnoreTagsInCodeTest.php
index 4d460f1e40..325492766e 100644
--- a/tests/Configurator/RulesGenerators/IgnoreTagsInCodeTest.php
+++ b/tests/Configurator/RulesGenerators/IgnoreTagsInCodeTest.php
@@ -5,7 +5,7 @@
/**
* @covers s9e\TextFormatter\Configurator\RulesGenerators\IgnoreTagsInCode
*/
-class IgnoreTagsInCodeTest extends AbstractTest
+class IgnoreTagsInCodeTest extends AbstractTestClass
{
/**
* @testdox Generates an ignoreTags rule for
diff --git a/tests/Configurator/RulesGenerators/IgnoreTextIfDisallowedTest.php b/tests/Configurator/RulesGenerators/IgnoreTextIfDisallowedTest.php
index 4370a3bfae..8a927f2bdf 100644
--- a/tests/Configurator/RulesGenerators/IgnoreTextIfDisallowedTest.php
+++ b/tests/Configurator/RulesGenerators/IgnoreTextIfDisallowedTest.php
@@ -5,7 +5,7 @@
/**
* @covers s9e\TextFormatter\Configurator\RulesGenerators\IgnoreTextIfDisallowed
*/
-class IgnoreTextIfDisallowedTest extends AbstractTest
+class IgnoreTextIfDisallowedTest extends AbstractTestClass
{
/**
* @testdox Generates an ignoreText rule for
diff --git a/tests/Configurator/RulesGenerators/IgnoreWhitespaceAroundBlockElementsTest.php b/tests/Configurator/RulesGenerators/IgnoreWhitespaceAroundBlockElementsTest.php
index 687963a1aa..14a4989f38 100644
--- a/tests/Configurator/RulesGenerators/IgnoreWhitespaceAroundBlockElementsTest.php
+++ b/tests/Configurator/RulesGenerators/IgnoreWhitespaceAroundBlockElementsTest.php
@@ -5,7 +5,7 @@
/**
* @covers s9e\TextFormatter\Configurator\RulesGenerators\IgnoreWhitespaceAroundBlockElements
*/
-class IgnoreWhitespaceAroundBlockElementsTest extends AbstractTest
+class IgnoreWhitespaceAroundBlockElementsTest extends AbstractTestClass
{
/**
* @testdox Generates a ignoreSurroundingWhitespace rule for
diff --git a/tests/Configurator/RulesGenerators/ManageParagraphsTest.php b/tests/Configurator/RulesGenerators/ManageParagraphsTest.php
index 712ddc739f..1fb1e7526c 100644
--- a/tests/Configurator/RulesGenerators/ManageParagraphsTest.php
+++ b/tests/Configurator/RulesGenerators/ManageParagraphsTest.php
@@ -5,7 +5,7 @@
/**
* @covers s9e\TextFormatter\Configurator\RulesGenerators\ManageParagraphs
*/
-class ManageParagraphsTest extends AbstractTest
+class ManageParagraphsTest extends AbstractTestClass
{
/**
* @testdox Generates a breakParagraph rule for
diff --git a/tests/Configurator/RulesGenerators/TrimFirstLineInCodeBlocksTest.php b/tests/Configurator/RulesGenerators/TrimFirstLineInCodeBlocksTest.php
index cfbe264fad..68b28aa44e 100644
--- a/tests/Configurator/RulesGenerators/TrimFirstLineInCodeBlocksTest.php
+++ b/tests/Configurator/RulesGenerators/TrimFirstLineInCodeBlocksTest.php
@@ -5,7 +5,7 @@
/**
* @covers s9e\TextFormatter\Configurator\RulesGenerators\TrimFirstLineInCodeBlocks
*/
-class TrimFirstLineInCodeBlocksTest extends AbstractTest
+class TrimFirstLineInCodeBlocksTest extends AbstractTestClass
{
/**
* @testdox Generates a trimFirstLine rule for
diff --git a/tests/Configurator/TemplateChecks/AbstractDynamicContentCheckTest.php b/tests/Configurator/TemplateChecks/AbstractDynamicContentCheckTestClass.php
similarity index 99%
rename from tests/Configurator/TemplateChecks/AbstractDynamicContentCheckTest.php
rename to tests/Configurator/TemplateChecks/AbstractDynamicContentCheckTestClass.php
index 17c4e7bf97..5e120a6ed5 100644
--- a/tests/Configurator/TemplateChecks/AbstractDynamicContentCheckTest.php
+++ b/tests/Configurator/TemplateChecks/AbstractDynamicContentCheckTestClass.php
@@ -12,7 +12,7 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateChecks\AbstractDynamicContentCheck
*/
-class AbstractDynamicContentCheckTest extends AbstractTemplateCheckTest
+class AbstractDynamicContentCheckTestClass extends AbstractTemplateCheckTestClass
{
/**
* @testdox Stylesheet parameters are considered safe
diff --git a/tests/Configurator/TemplateChecks/AbstractTemplateCheckTest.php b/tests/Configurator/TemplateChecks/AbstractTemplateCheckTestClass.php
similarity index 86%
rename from tests/Configurator/TemplateChecks/AbstractTemplateCheckTest.php
rename to tests/Configurator/TemplateChecks/AbstractTemplateCheckTestClass.php
index 205fde111c..44bc28d057 100644
--- a/tests/Configurator/TemplateChecks/AbstractTemplateCheckTest.php
+++ b/tests/Configurator/TemplateChecks/AbstractTemplateCheckTestClass.php
@@ -5,7 +5,7 @@
use DOMDocument;
use s9e\TextFormatter\Tests\Test;
-abstract class AbstractTemplateCheckTest extends Test
+abstract class AbstractTemplateCheckTestClass extends Test
{
protected function loadTemplate($template)
{
diff --git a/tests/Configurator/TemplateChecks/DisallowAttributeSetsTest.php b/tests/Configurator/TemplateChecks/DisallowAttributeSetsTest.php
index 38e8ca9795..c4d68c8b73 100644
--- a/tests/Configurator/TemplateChecks/DisallowAttributeSetsTest.php
+++ b/tests/Configurator/TemplateChecks/DisallowAttributeSetsTest.php
@@ -9,7 +9,7 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateChecks\DisallowAttributeSets
*/
-class DisallowAttributeSetsTest extends AbstractTemplateCheckTest
+class DisallowAttributeSetsTest extends AbstractTemplateCheckTestClass
{
/**
* @testdox Disallowed:
diff --git a/tests/Configurator/TemplateChecks/DisallowCopyTest.php b/tests/Configurator/TemplateChecks/DisallowCopyTest.php
index 1933c6d7fd..76456e715e 100644
--- a/tests/Configurator/TemplateChecks/DisallowCopyTest.php
+++ b/tests/Configurator/TemplateChecks/DisallowCopyTest.php
@@ -9,7 +9,7 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateChecks\DisallowCopy
*/
-class DisallowCopyTest extends AbstractTemplateCheckTest
+class DisallowCopyTest extends AbstractTemplateCheckTestClass
{
/**
* @testdox Disallowed:
diff --git a/tests/Configurator/TemplateChecks/DisallowDisableOutputEscapingTest.php b/tests/Configurator/TemplateChecks/DisallowDisableOutputEscapingTest.php
index 8a0f393379..60c616a42f 100644
--- a/tests/Configurator/TemplateChecks/DisallowDisableOutputEscapingTest.php
+++ b/tests/Configurator/TemplateChecks/DisallowDisableOutputEscapingTest.php
@@ -9,7 +9,7 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateChecks\DisallowDisableOutputEscaping
*/
-class DisallowDisableOutputEscapingTest extends AbstractTemplateCheckTest
+class DisallowDisableOutputEscapingTest extends AbstractTemplateCheckTestClass
{
/**
* @testdox Disallowed:
diff --git a/tests/Configurator/TemplateChecks/DisallowDynamicAttributeNamesTest.php b/tests/Configurator/TemplateChecks/DisallowDynamicAttributeNamesTest.php
index b5c896f57d..fa2a98d801 100644
--- a/tests/Configurator/TemplateChecks/DisallowDynamicAttributeNamesTest.php
+++ b/tests/Configurator/TemplateChecks/DisallowDynamicAttributeNamesTest.php
@@ -9,7 +9,7 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateChecks\DisallowDynamicAttributeNames
*/
-class DisallowDynamicAttributeNamesTest extends AbstractTemplateCheckTest
+class DisallowDynamicAttributeNamesTest extends AbstractTemplateCheckTestClass
{
/**
* @testdox Disallowed:
diff --git a/tests/Configurator/TemplateChecks/DisallowDynamicElementNamesTest.php b/tests/Configurator/TemplateChecks/DisallowDynamicElementNamesTest.php
index 82f9fa4e99..6b93803f34 100644
--- a/tests/Configurator/TemplateChecks/DisallowDynamicElementNamesTest.php
+++ b/tests/Configurator/TemplateChecks/DisallowDynamicElementNamesTest.php
@@ -9,7 +9,7 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateChecks\DisallowDynamicElementNames
*/
-class DisallowDynamicElementNamesTest extends AbstractTemplateCheckTest
+class DisallowDynamicElementNamesTest extends AbstractTemplateCheckTestClass
{
/**
* @testdox Disallowed:
diff --git a/tests/Configurator/TemplateChecks/DisallowElementNSTest.php b/tests/Configurator/TemplateChecks/DisallowElementNSTest.php
index 5191b0dfe4..cc6ae5cb66 100644
--- a/tests/Configurator/TemplateChecks/DisallowElementNSTest.php
+++ b/tests/Configurator/TemplateChecks/DisallowElementNSTest.php
@@ -9,7 +9,7 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateChecks\DisallowElementNS
*/
-class DisallowElementNSTest extends AbstractTemplateCheckTest
+class DisallowElementNSTest extends AbstractTemplateCheckTestClass
{
/**
* @testdox DisallowElementNS('http://www.w3.org/2000/svg', 'svg') disallows
diff --git a/tests/Configurator/TemplateChecks/DisallowElementTest.php b/tests/Configurator/TemplateChecks/DisallowElementTest.php
index 9ef36499e6..3e928a1b03 100644
--- a/tests/Configurator/TemplateChecks/DisallowElementTest.php
+++ b/tests/Configurator/TemplateChecks/DisallowElementTest.php
@@ -10,7 +10,7 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateChecks\DisallowElement
*/
-class DisallowElementTest extends AbstractTemplateCheckTest
+class DisallowElementTest extends AbstractTemplateCheckTestClass
{
/**
* @testdox DisallowElement('script') disallows
diff --git a/tests/Configurator/TemplateChecks/DisallowFlashFullScreenTest.php b/tests/Configurator/TemplateChecks/DisallowFlashFullScreenTest.php
index c23e136e30..dc50aacff9 100644
--- a/tests/Configurator/TemplateChecks/DisallowFlashFullScreenTest.php
+++ b/tests/Configurator/TemplateChecks/DisallowFlashFullScreenTest.php
@@ -10,7 +10,7 @@
* @covers s9e\TextFormatter\Configurator\TemplateChecks\AbstractFlashRestriction
* @covers s9e\TextFormatter\Configurator\TemplateChecks\DisallowFlashFullScreen
*/
-class DisallowFlashFullScreenTest extends AbstractTemplateCheckTest
+class DisallowFlashFullScreenTest extends AbstractTemplateCheckTestClass
{
/**
* @testdox Disallows
diff --git a/tests/Configurator/TemplateChecks/DisallowNodeByXPathTest.php b/tests/Configurator/TemplateChecks/DisallowNodeByXPathTest.php
index 254d6b9838..887995bff0 100644
--- a/tests/Configurator/TemplateChecks/DisallowNodeByXPathTest.php
+++ b/tests/Configurator/TemplateChecks/DisallowNodeByXPathTest.php
@@ -9,7 +9,7 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateChecks\DisallowNodeByXPath
*/
-class DisallowNodeByXPathTest extends AbstractTemplateCheckTest
+class DisallowNodeByXPathTest extends AbstractTemplateCheckTestClass
{
/**
* @testdox '//script[@src]' disallows
diff --git a/tests/Configurator/TemplateChecks/DisallowObjectParamsWithGeneratedNameTest.php b/tests/Configurator/TemplateChecks/DisallowObjectParamsWithGeneratedNameTest.php
index 231051f90d..00a5eca012 100644
--- a/tests/Configurator/TemplateChecks/DisallowObjectParamsWithGeneratedNameTest.php
+++ b/tests/Configurator/TemplateChecks/DisallowObjectParamsWithGeneratedNameTest.php
@@ -9,7 +9,7 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateChecks\DisallowObjectParamsWithGeneratedName
*/
-class DisallowObjectParamsWithGeneratedNameTest extends AbstractTemplateCheckTest
+class DisallowObjectParamsWithGeneratedNameTest extends AbstractTemplateCheckTestClass
{
/**
* @testdox Allowed:
diff --git a/tests/Configurator/TemplateChecks/DisallowPHPTagsTest.php b/tests/Configurator/TemplateChecks/DisallowPHPTagsTest.php
index 39ec6f0809..8605c6ad9b 100644
--- a/tests/Configurator/TemplateChecks/DisallowPHPTagsTest.php
+++ b/tests/Configurator/TemplateChecks/DisallowPHPTagsTest.php
@@ -9,7 +9,7 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateChecks\DisallowPHPTags
*/
-class DisallowPHPTagsTest extends AbstractTemplateCheckTest
+class DisallowPHPTagsTest extends AbstractTemplateCheckTestClass
{
/**
* @testdox Disallowed:
diff --git a/tests/Configurator/TemplateChecks/DisallowUncompilableXSLTest.php b/tests/Configurator/TemplateChecks/DisallowUncompilableXSLTest.php
index 8699edd35e..b009edfd2f 100644
--- a/tests/Configurator/TemplateChecks/DisallowUncompilableXSLTest.php
+++ b/tests/Configurator/TemplateChecks/DisallowUncompilableXSLTest.php
@@ -10,7 +10,7 @@
* @covers s9e\TextFormatter\Configurator\TemplateChecks\AbstractXSLSupportCheck
* @covers s9e\TextFormatter\Configurator\TemplateChecks\DisallowUncompilableXSL
*/
-class DisallowUncompilableXSLTest extends AbstractTemplateCheckTest
+class DisallowUncompilableXSLTest extends AbstractTemplateCheckTestClass
{
/**
* @testdox Allowed: ...
diff --git a/tests/Configurator/TemplateChecks/DisallowUnsafeCopyOfTest.php b/tests/Configurator/TemplateChecks/DisallowUnsafeCopyOfTest.php
index a19c69ca4d..8b118884f0 100644
--- a/tests/Configurator/TemplateChecks/DisallowUnsafeCopyOfTest.php
+++ b/tests/Configurator/TemplateChecks/DisallowUnsafeCopyOfTest.php
@@ -9,7 +9,7 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateChecks\DisallowUnsafeCopyOf
*/
-class DisallowUnsafeCopyOfTest extends AbstractTemplateCheckTest
+class DisallowUnsafeCopyOfTest extends AbstractTemplateCheckTestClass
{
/**
* @testdox Allowed:
diff --git a/tests/Configurator/TemplateChecks/DisallowUnsafeDynamicCSSTest.php b/tests/Configurator/TemplateChecks/DisallowUnsafeDynamicCSSTest.php
index e869a86af4..8121a9ae1c 100644
--- a/tests/Configurator/TemplateChecks/DisallowUnsafeDynamicCSSTest.php
+++ b/tests/Configurator/TemplateChecks/DisallowUnsafeDynamicCSSTest.php
@@ -11,7 +11,7 @@
* @covers s9e\TextFormatter\Configurator\TemplateChecks\AbstractDynamicContentCheck
* @covers s9e\TextFormatter\Configurator\TemplateChecks\DisallowUnsafeDynamicCSS
*/
-class DisallowUnsafeDynamicCSSTest extends AbstractTemplateCheckTest
+class DisallowUnsafeDynamicCSSTest extends AbstractTemplateCheckTestClass
{
/**
* @testdox Allowed:
diff --git a/tests/Configurator/TemplateChecks/DisallowUnsafeDynamicJSTest.php b/tests/Configurator/TemplateChecks/DisallowUnsafeDynamicJSTest.php
index 65e6811960..a90ad4de3f 100644
--- a/tests/Configurator/TemplateChecks/DisallowUnsafeDynamicJSTest.php
+++ b/tests/Configurator/TemplateChecks/DisallowUnsafeDynamicJSTest.php
@@ -11,7 +11,7 @@
* @covers s9e\TextFormatter\Configurator\TemplateChecks\AbstractDynamicContentCheck
* @covers s9e\TextFormatter\Configurator\TemplateChecks\DisallowUnsafeDynamicJS
*/
-class DisallowUnsafeDynamicJSTest extends AbstractTemplateCheckTest
+class DisallowUnsafeDynamicJSTest extends AbstractTemplateCheckTestClass
{
/**
* @testdox Allowed:
diff --git a/tests/Configurator/TemplateChecks/DisallowUnsafeDynamicURLTest.php b/tests/Configurator/TemplateChecks/DisallowUnsafeDynamicURLTest.php
index ed5ca4938e..b70fd07da7 100644
--- a/tests/Configurator/TemplateChecks/DisallowUnsafeDynamicURLTest.php
+++ b/tests/Configurator/TemplateChecks/DisallowUnsafeDynamicURLTest.php
@@ -11,7 +11,7 @@
* @covers s9e\TextFormatter\Configurator\TemplateChecks\AbstractDynamicContentCheck
* @covers s9e\TextFormatter\Configurator\TemplateChecks\DisallowUnsafeDynamicURL
*/
-class DisallowUnsafeDynamicURLTest extends AbstractTemplateCheckTest
+class DisallowUnsafeDynamicURLTest extends AbstractTemplateCheckTestClass
{
/**
* @testdox Allowed: ...
diff --git a/tests/Configurator/TemplateChecks/DisallowUnsupportedXSLTest.php b/tests/Configurator/TemplateChecks/DisallowUnsupportedXSLTest.php
index 7663ade99f..cc21020ef8 100644
--- a/tests/Configurator/TemplateChecks/DisallowUnsupportedXSLTest.php
+++ b/tests/Configurator/TemplateChecks/DisallowUnsupportedXSLTest.php
@@ -10,7 +10,7 @@
* @covers s9e\TextFormatter\Configurator\TemplateChecks\AbstractXSLSupportCheck
* @covers s9e\TextFormatter\Configurator\TemplateChecks\DisallowUnsupportedXSL
*/
-class DisallowUnsupportedXSLTest extends AbstractTemplateCheckTest
+class DisallowUnsupportedXSLTest extends AbstractTemplateCheckTestClass
{
/**
* @testdox Allowed: ...
diff --git a/tests/Configurator/TemplateChecks/DisallowXPathFunctionTest.php b/tests/Configurator/TemplateChecks/DisallowXPathFunctionTest.php
index 56df25c127..e232d0b09d 100644
--- a/tests/Configurator/TemplateChecks/DisallowXPathFunctionTest.php
+++ b/tests/Configurator/TemplateChecks/DisallowXPathFunctionTest.php
@@ -9,7 +9,7 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateChecks\DisallowXPathFunction
*/
-class DisallowXPathFunctionTest extends AbstractTemplateCheckTest
+class DisallowXPathFunctionTest extends AbstractTemplateCheckTestClass
{
/**
* @testdox Disallowed:
diff --git a/tests/Configurator/TemplateChecks/RestrictFlashNetworkingTest.php b/tests/Configurator/TemplateChecks/RestrictFlashNetworkingTest.php
index 00e3247cdb..0d4740eae5 100644
--- a/tests/Configurator/TemplateChecks/RestrictFlashNetworkingTest.php
+++ b/tests/Configurator/TemplateChecks/RestrictFlashNetworkingTest.php
@@ -10,7 +10,7 @@
* @covers s9e\TextFormatter\Configurator\TemplateChecks\AbstractFlashRestriction
* @covers s9e\TextFormatter\Configurator\TemplateChecks\RestrictFlashNetworking
*/
-class RestrictFlashNetworkingTest extends AbstractTemplateCheckTest
+class RestrictFlashNetworkingTest extends AbstractTemplateCheckTestClass
{
/**
* @testdox 'internal' disallows
diff --git a/tests/Configurator/TemplateChecks/RestrictFlashScriptAccessTest.php b/tests/Configurator/TemplateChecks/RestrictFlashScriptAccessTest.php
index 1ab4780403..4810ba83be 100644
--- a/tests/Configurator/TemplateChecks/RestrictFlashScriptAccessTest.php
+++ b/tests/Configurator/TemplateChecks/RestrictFlashScriptAccessTest.php
@@ -10,7 +10,7 @@
* @covers s9e\TextFormatter\Configurator\TemplateChecks\AbstractFlashRestriction
* @covers s9e\TextFormatter\Configurator\TemplateChecks\RestrictFlashScriptAccess
*/
-class RestrictFlashScriptAccessTest extends AbstractTemplateCheckTest
+class RestrictFlashScriptAccessTest extends AbstractTemplateCheckTestClass
{
/**
* @testdox 'sameDomain' disallows
diff --git a/tests/Configurator/TemplateNormalizations/AbstractNormalizationTest.php b/tests/Configurator/TemplateNormalizations/AbstractNormalizationTestClass.php
similarity index 97%
rename from tests/Configurator/TemplateNormalizations/AbstractNormalizationTest.php
rename to tests/Configurator/TemplateNormalizations/AbstractNormalizationTestClass.php
index a3088ee5ba..757179f64d 100644
--- a/tests/Configurator/TemplateNormalizations/AbstractNormalizationTest.php
+++ b/tests/Configurator/TemplateNormalizations/AbstractNormalizationTestClass.php
@@ -10,7 +10,7 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\AbstractNormalization
*/
-class AbstractNormalizationTest extends Test
+class AbstractNormalizationTestClass extends Test
{
protected function getNormalization($query = null)
{
@@ -21,7 +21,7 @@ protected function getMockNormalization($query)
{
return $this->getMockBuilder(__NAMESPACE__ . '\\TestNormalization')
->setConstructorArgs([$this, $query])
- ->setMethods(['normalizeAttribute', 'normalizeElement'])
+ ->onlyMethods(['normalizeAttribute', 'normalizeElement'])
->getMock();
}
diff --git a/tests/Configurator/TemplateNormalizations/AbstractTest.php b/tests/Configurator/TemplateNormalizations/AbstractTestClass.php
similarity index 92%
rename from tests/Configurator/TemplateNormalizations/AbstractTest.php
rename to tests/Configurator/TemplateNormalizations/AbstractTestClass.php
index 5384b95876..482d43546c 100644
--- a/tests/Configurator/TemplateNormalizations/AbstractTest.php
+++ b/tests/Configurator/TemplateNormalizations/AbstractTestClass.php
@@ -8,7 +8,7 @@
use s9e\TextFormatter\Configurator\Helpers\TemplateLoader;
use s9e\TextFormatter\Tests\Test;
-abstract class AbstractTest extends Test
+abstract class AbstractTestClass extends Test
{
protected function getNormalizer(array $args = [])
{
@@ -52,5 +52,5 @@ public function test($template, $expected, array $args = [])
);
}
- abstract public function getData();
+ abstract public static function getData();
}
\ No newline at end of file
diff --git a/tests/Configurator/TemplateNormalizations/AddAttributeValueToElementsTest.php b/tests/Configurator/TemplateNormalizations/AddAttributeValueToElementsTest.php
index 22ef5a4697..ac0f7e78f2 100644
--- a/tests/Configurator/TemplateNormalizations/AddAttributeValueToElementsTest.php
+++ b/tests/Configurator/TemplateNormalizations/AddAttributeValueToElementsTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\AddAttributeValueToElements
*/
-class AddAttributeValueToElementsTest extends AbstractTest
+class AddAttributeValueToElementsTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/ConvertCurlyExpressionsInTextTest.php b/tests/Configurator/TemplateNormalizations/ConvertCurlyExpressionsInTextTest.php
index d274c33fad..c411181584 100644
--- a/tests/Configurator/TemplateNormalizations/ConvertCurlyExpressionsInTextTest.php
+++ b/tests/Configurator/TemplateNormalizations/ConvertCurlyExpressionsInTextTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\ConvertCurlyExpressionsInText
*/
-class ConvertCurlyExpressionsInTextTest extends AbstractTest
+class ConvertCurlyExpressionsInTextTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/CustomTest.php b/tests/Configurator/TemplateNormalizations/CustomTest.php
index 8066528de6..636b357cfa 100644
--- a/tests/Configurator/TemplateNormalizations/CustomTest.php
+++ b/tests/Configurator/TemplateNormalizations/CustomTest.php
@@ -20,7 +20,7 @@ public function testNormalize()
$dom->loadXML('');
$mock = $this->getMockBuilder('stdClass')
- ->setMethods(['foo'])
+ ->addMethods(['foo'])
->getMock();
$mock->expects($this->once())
->method('foo')
diff --git a/tests/Configurator/TemplateNormalizations/DeoptimizeIfTest.php b/tests/Configurator/TemplateNormalizations/DeoptimizeIfTest.php
index f0af6fac67..1591fdbd47 100644
--- a/tests/Configurator/TemplateNormalizations/DeoptimizeIfTest.php
+++ b/tests/Configurator/TemplateNormalizations/DeoptimizeIfTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\DeoptimizeIf
*/
-class DeoptimizeIfTest extends AbstractTest
+class DeoptimizeIfTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/EnforceHTMLOmittedEndTagsTest.php b/tests/Configurator/TemplateNormalizations/EnforceHTMLOmittedEndTagsTest.php
index 8a8934d548..b02cf6f06f 100644
--- a/tests/Configurator/TemplateNormalizations/EnforceHTMLOmittedEndTagsTest.php
+++ b/tests/Configurator/TemplateNormalizations/EnforceHTMLOmittedEndTagsTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\EnforceHTMLOmittedEndTags
*/
-class EnforceHTMLOmittedEndTagsTest extends AbstractTest
+class EnforceHTMLOmittedEndTagsTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/FixUnescapedCurlyBracesInHtmlAttributesTest.php b/tests/Configurator/TemplateNormalizations/FixUnescapedCurlyBracesInHtmlAttributesTest.php
index 73bb4e8391..b2e72d524b 100644
--- a/tests/Configurator/TemplateNormalizations/FixUnescapedCurlyBracesInHtmlAttributesTest.php
+++ b/tests/Configurator/TemplateNormalizations/FixUnescapedCurlyBracesInHtmlAttributesTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\FixUnescapedCurlyBracesInHtmlAttributes
*/
-class FixUnescapedCurlyBracesInHtmlAttributesTest extends AbstractTest
+class FixUnescapedCurlyBracesInHtmlAttributesTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/FoldArithmeticConstantsTest.php b/tests/Configurator/TemplateNormalizations/FoldArithmeticConstantsTest.php
index 7ceb48030a..089295f942 100644
--- a/tests/Configurator/TemplateNormalizations/FoldArithmeticConstantsTest.php
+++ b/tests/Configurator/TemplateNormalizations/FoldArithmeticConstantsTest.php
@@ -6,7 +6,7 @@
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\FoldArithmeticConstants
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\AbstractConstantFolding
*/
-class FoldArithmeticConstantsTest extends AbstractTest
+class FoldArithmeticConstantsTest extends AbstractTestClass
{
public function tearDown(): void
{
@@ -29,7 +29,7 @@ public function testLocale()
);
}
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/FoldConstantXPathExpressionsTest.php b/tests/Configurator/TemplateNormalizations/FoldConstantXPathExpressionsTest.php
index 4618aaf8a4..df65fc86ec 100644
--- a/tests/Configurator/TemplateNormalizations/FoldConstantXPathExpressionsTest.php
+++ b/tests/Configurator/TemplateNormalizations/FoldConstantXPathExpressionsTest.php
@@ -6,7 +6,7 @@
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\FoldConstantXPathExpressions
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\AbstractConstantFolding
*/
-class FoldConstantXPathExpressionsTest extends AbstractTest
+class FoldConstantXPathExpressionsTest extends AbstractTestClass
{
public function tearDown(): void
{
@@ -29,7 +29,7 @@ public function testLocale()
);
}
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/InlineAttributesTest.php b/tests/Configurator/TemplateNormalizations/InlineAttributesTest.php
index 6529da8068..d8d9f67f75 100644
--- a/tests/Configurator/TemplateNormalizations/InlineAttributesTest.php
+++ b/tests/Configurator/TemplateNormalizations/InlineAttributesTest.php
@@ -7,9 +7,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\InlineAttributes
*/
-class InlineAttributesTest extends AbstractTest
+class InlineAttributesTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/InlineCDATATest.php b/tests/Configurator/TemplateNormalizations/InlineCDATATest.php
index 26c0163e0f..79c0e71391 100644
--- a/tests/Configurator/TemplateNormalizations/InlineCDATATest.php
+++ b/tests/Configurator/TemplateNormalizations/InlineCDATATest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\InlineCDATA
*/
-class InlineCDATATest extends AbstractTest
+class InlineCDATATest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/InlineElementsTest.php b/tests/Configurator/TemplateNormalizations/InlineElementsTest.php
index 674cdcb1f2..fbeda7ef3e 100644
--- a/tests/Configurator/TemplateNormalizations/InlineElementsTest.php
+++ b/tests/Configurator/TemplateNormalizations/InlineElementsTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\InlineElements
*/
-class InlineElementsTest extends AbstractTest
+class InlineElementsTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/InlineInferredValuesTest.php b/tests/Configurator/TemplateNormalizations/InlineInferredValuesTest.php
index 3ca26f31c8..2027d8ea37 100644
--- a/tests/Configurator/TemplateNormalizations/InlineInferredValuesTest.php
+++ b/tests/Configurator/TemplateNormalizations/InlineInferredValuesTest.php
@@ -8,9 +8,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\InlineInferredValues
*/
-class InlineInferredValuesTest extends AbstractTest
+class InlineInferredValuesTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/InlineTextElementsTest.php b/tests/Configurator/TemplateNormalizations/InlineTextElementsTest.php
index 41a31014be..b45534641f 100644
--- a/tests/Configurator/TemplateNormalizations/InlineTextElementsTest.php
+++ b/tests/Configurator/TemplateNormalizations/InlineTextElementsTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\InlineTextElements
*/
-class InlineTextElementsTest extends AbstractTest
+class InlineTextElementsTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/InlineXPathLiteralsTest.php b/tests/Configurator/TemplateNormalizations/InlineXPathLiteralsTest.php
index fb216a8686..60829695ea 100644
--- a/tests/Configurator/TemplateNormalizations/InlineXPathLiteralsTest.php
+++ b/tests/Configurator/TemplateNormalizations/InlineXPathLiteralsTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\InlineXPathLiterals
*/
-class InlineXPathLiteralsTest extends AbstractTest
+class InlineXPathLiteralsTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/MergeConsecutiveCopyOfTest.php b/tests/Configurator/TemplateNormalizations/MergeConsecutiveCopyOfTest.php
index 4ad761a452..845371ae0f 100644
--- a/tests/Configurator/TemplateNormalizations/MergeConsecutiveCopyOfTest.php
+++ b/tests/Configurator/TemplateNormalizations/MergeConsecutiveCopyOfTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\MergeConsecutiveCopyOf
*/
-class MergeConsecutiveCopyOfTest extends AbstractTest
+class MergeConsecutiveCopyOfTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/MergeIdenticalConditionalBranchesTest.php b/tests/Configurator/TemplateNormalizations/MergeIdenticalConditionalBranchesTest.php
index 05b1061629..5a24d17b76 100644
--- a/tests/Configurator/TemplateNormalizations/MergeIdenticalConditionalBranchesTest.php
+++ b/tests/Configurator/TemplateNormalizations/MergeIdenticalConditionalBranchesTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\MergeIdenticalConditionalBranches
*/
-class MergeIdenticalConditionalBranchesTest extends AbstractTest
+class MergeIdenticalConditionalBranchesTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/MinifyInlineCSSTest.php b/tests/Configurator/TemplateNormalizations/MinifyInlineCSSTest.php
index 0397689b5e..3fbb80925a 100644
--- a/tests/Configurator/TemplateNormalizations/MinifyInlineCSSTest.php
+++ b/tests/Configurator/TemplateNormalizations/MinifyInlineCSSTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\MinifyInlineCSS
*/
-class MinifyInlineCSSTest extends AbstractTest
+class MinifyInlineCSSTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/MinifyXPathExpressionsTest.php b/tests/Configurator/TemplateNormalizations/MinifyXPathExpressionsTest.php
index 8b24058adf..406a7b57f2 100644
--- a/tests/Configurator/TemplateNormalizations/MinifyXPathExpressionsTest.php
+++ b/tests/Configurator/TemplateNormalizations/MinifyXPathExpressionsTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\MinifyXPathExpressions
*/
-class MinifyXPathExpressionsTest extends AbstractTest
+class MinifyXPathExpressionsTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/NormalizeAttributeNamesTest.php b/tests/Configurator/TemplateNormalizations/NormalizeAttributeNamesTest.php
index 93ee3537fe..1dd53a2ed7 100644
--- a/tests/Configurator/TemplateNormalizations/NormalizeAttributeNamesTest.php
+++ b/tests/Configurator/TemplateNormalizations/NormalizeAttributeNamesTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\NormalizeAttributeNames
*/
-class NormalizeAttributeNamesTest extends AbstractTest
+class NormalizeAttributeNamesTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/NormalizeElementNamesTest.php b/tests/Configurator/TemplateNormalizations/NormalizeElementNamesTest.php
index 329ed674bb..fb46ae9834 100644
--- a/tests/Configurator/TemplateNormalizations/NormalizeElementNamesTest.php
+++ b/tests/Configurator/TemplateNormalizations/NormalizeElementNamesTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\NormalizeElementNames
*/
-class NormalizeElementNamesTest extends AbstractTest
+class NormalizeElementNamesTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/NormalizeUrlsTest.php b/tests/Configurator/TemplateNormalizations/NormalizeUrlsTest.php
index 03eca38dea..0fa2f5788a 100644
--- a/tests/Configurator/TemplateNormalizations/NormalizeUrlsTest.php
+++ b/tests/Configurator/TemplateNormalizations/NormalizeUrlsTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\NormalizeUrls
*/
-class NormalizeUrlsTest extends AbstractTest
+class NormalizeUrlsTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/OptimizeChooseDeadBranchesTest.php b/tests/Configurator/TemplateNormalizations/OptimizeChooseDeadBranchesTest.php
index 376df579a3..52d30e0eeb 100644
--- a/tests/Configurator/TemplateNormalizations/OptimizeChooseDeadBranchesTest.php
+++ b/tests/Configurator/TemplateNormalizations/OptimizeChooseDeadBranchesTest.php
@@ -6,9 +6,9 @@
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\AbstractChooseOptimization
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\OptimizeChooseDeadBranches
*/
-class OptimizeChooseDeadBranchesTest extends AbstractTest
+class OptimizeChooseDeadBranchesTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/OptimizeChooseTest.php b/tests/Configurator/TemplateNormalizations/OptimizeChooseTest.php
index fa28ad4673..fa742c91fc 100644
--- a/tests/Configurator/TemplateNormalizations/OptimizeChooseTest.php
+++ b/tests/Configurator/TemplateNormalizations/OptimizeChooseTest.php
@@ -6,9 +6,9 @@
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\AbstractChooseOptimization
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\OptimizeChoose
*/
-class OptimizeChooseTest extends AbstractTest
+class OptimizeChooseTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/OptimizeChooseTextTest.php b/tests/Configurator/TemplateNormalizations/OptimizeChooseTextTest.php
index 85e91cf408..af3e22f142 100644
--- a/tests/Configurator/TemplateNormalizations/OptimizeChooseTextTest.php
+++ b/tests/Configurator/TemplateNormalizations/OptimizeChooseTextTest.php
@@ -6,9 +6,9 @@
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\AbstractChooseOptimization
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\OptimizeChooseText
*/
-class OptimizeChooseTextTest extends AbstractTest
+class OptimizeChooseTextTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/OptimizeConditionalAttributesTest.php b/tests/Configurator/TemplateNormalizations/OptimizeConditionalAttributesTest.php
index ecab1eee66..6972838615 100644
--- a/tests/Configurator/TemplateNormalizations/OptimizeConditionalAttributesTest.php
+++ b/tests/Configurator/TemplateNormalizations/OptimizeConditionalAttributesTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\OptimizeConditionalAttributes
*/
-class OptimizeConditionalAttributesTest extends AbstractTest
+class OptimizeConditionalAttributesTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/OptimizeConditionalValueOfTest.php b/tests/Configurator/TemplateNormalizations/OptimizeConditionalValueOfTest.php
index 64bd1d637c..6d70795ace 100644
--- a/tests/Configurator/TemplateNormalizations/OptimizeConditionalValueOfTest.php
+++ b/tests/Configurator/TemplateNormalizations/OptimizeConditionalValueOfTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\OptimizeConditionalValueOf
*/
-class OptimizeConditionalValueOfTest extends AbstractTest
+class OptimizeConditionalValueOfTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/OptimizeNestedConditionalsTest.php b/tests/Configurator/TemplateNormalizations/OptimizeNestedConditionalsTest.php
index 0dbe799800..971c96fd15 100644
--- a/tests/Configurator/TemplateNormalizations/OptimizeNestedConditionalsTest.php
+++ b/tests/Configurator/TemplateNormalizations/OptimizeNestedConditionalsTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\OptimizeNestedConditionals
*/
-class OptimizeNestedConditionalsTest extends AbstractTest
+class OptimizeNestedConditionalsTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/PreserveSingleSpacesTest.php b/tests/Configurator/TemplateNormalizations/PreserveSingleSpacesTest.php
index 3bbd46c184..2c4eb09e70 100644
--- a/tests/Configurator/TemplateNormalizations/PreserveSingleSpacesTest.php
+++ b/tests/Configurator/TemplateNormalizations/PreserveSingleSpacesTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\PreserveSingleSpaces
*/
-class PreserveSingleSpacesTest extends AbstractTest
+class PreserveSingleSpacesTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/RemoveCommentsTest.php b/tests/Configurator/TemplateNormalizations/RemoveCommentsTest.php
index 794245b27b..c0f1b5395b 100644
--- a/tests/Configurator/TemplateNormalizations/RemoveCommentsTest.php
+++ b/tests/Configurator/TemplateNormalizations/RemoveCommentsTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\RemoveComments
*/
-class RemoveCommentsTest extends AbstractTest
+class RemoveCommentsTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/RemoveInterElementWhitespaceTest.php b/tests/Configurator/TemplateNormalizations/RemoveInterElementWhitespaceTest.php
index fca0aa3b41..1689c5e7fc 100644
--- a/tests/Configurator/TemplateNormalizations/RemoveInterElementWhitespaceTest.php
+++ b/tests/Configurator/TemplateNormalizations/RemoveInterElementWhitespaceTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\RemoveInterElementWhitespace
*/
-class RemoveInterElementWhitespaceTest extends AbstractTest
+class RemoveInterElementWhitespaceTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/RemoveLivePreviewAttributesTest.php b/tests/Configurator/TemplateNormalizations/RemoveLivePreviewAttributesTest.php
index d90ee52ea3..84e1a6ddbe 100644
--- a/tests/Configurator/TemplateNormalizations/RemoveLivePreviewAttributesTest.php
+++ b/tests/Configurator/TemplateNormalizations/RemoveLivePreviewAttributesTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\RemoveLivePreviewAttributes
*/
-class RemoveLivePreviewAttributesTest extends AbstractTest
+class RemoveLivePreviewAttributesTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/RenameLivePreviewEventTest.php b/tests/Configurator/TemplateNormalizations/RenameLivePreviewEventTest.php
index 3dc6f107e7..45badd673d 100644
--- a/tests/Configurator/TemplateNormalizations/RenameLivePreviewEventTest.php
+++ b/tests/Configurator/TemplateNormalizations/RenameLivePreviewEventTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\RenameLivePreviewEvent
*/
-class RenameLivePreviewEventTest extends AbstractTest
+class RenameLivePreviewEventTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/SetAttributeOnElementsTest.php b/tests/Configurator/TemplateNormalizations/SetAttributeOnElementsTest.php
index 396107a85b..b5357a259f 100644
--- a/tests/Configurator/TemplateNormalizations/SetAttributeOnElementsTest.php
+++ b/tests/Configurator/TemplateNormalizations/SetAttributeOnElementsTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\SetAttributeOnElements
*/
-class SetAttributeOnElementsTest extends AbstractTest
+class SetAttributeOnElementsTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/SetRelNoreferrerOnTargetedLinksTest.php b/tests/Configurator/TemplateNormalizations/SetRelNoreferrerOnTargetedLinksTest.php
index 366bc653e1..fc3d40c07c 100644
--- a/tests/Configurator/TemplateNormalizations/SetRelNoreferrerOnTargetedLinksTest.php
+++ b/tests/Configurator/TemplateNormalizations/SetRelNoreferrerOnTargetedLinksTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\SetRelNoreferrerOnTargetedLinks
*/
-class SetRelNoreferrerOnTargetedLinksTest extends AbstractTest
+class SetRelNoreferrerOnTargetedLinksTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/SortAttributesByNameTest.php b/tests/Configurator/TemplateNormalizations/SortAttributesByNameTest.php
index 58a5a62f12..e525c828a1 100644
--- a/tests/Configurator/TemplateNormalizations/SortAttributesByNameTest.php
+++ b/tests/Configurator/TemplateNormalizations/SortAttributesByNameTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\SortAttributesByName
*/
-class SortAttributesByNameTest extends AbstractTest
+class SortAttributesByNameTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/TransposeCommentsTest.php b/tests/Configurator/TemplateNormalizations/TransposeCommentsTest.php
index 4e76175713..a7cfaf48c5 100644
--- a/tests/Configurator/TemplateNormalizations/TransposeCommentsTest.php
+++ b/tests/Configurator/TemplateNormalizations/TransposeCommentsTest.php
@@ -5,9 +5,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\TransposeComments
*/
-class TransposeCommentsTest extends AbstractTest
+class TransposeCommentsTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizations/UninlineAttributesTest.php b/tests/Configurator/TemplateNormalizations/UninlineAttributesTest.php
index 9451f40097..9d3863b20b 100644
--- a/tests/Configurator/TemplateNormalizations/UninlineAttributesTest.php
+++ b/tests/Configurator/TemplateNormalizations/UninlineAttributesTest.php
@@ -7,9 +7,9 @@
/**
* @covers s9e\TextFormatter\Configurator\TemplateNormalizations\UninlineAttributes
*/
-class UninlineAttributesTest extends AbstractTest
+class UninlineAttributesTest extends AbstractTestClass
{
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Configurator/TemplateNormalizerTest.php b/tests/Configurator/TemplateNormalizerTest.php
index 69823012d0..04ac23c218 100644
--- a/tests/Configurator/TemplateNormalizerTest.php
+++ b/tests/Configurator/TemplateNormalizerTest.php
@@ -58,7 +58,7 @@ public function testNormalizeTag()
$mock = $this->getMockBuilder('s9e\\TextFormatter\\Configurator\\Items\\Template')
->disableOriginalConstructor()
- ->setMethods(['__toString', 'isNormalized', 'normalize'])
+ ->onlyMethods(['__toString', 'isNormalized', 'normalize'])
->getMock();
$mock->expects($this->any())
@@ -118,7 +118,7 @@ public function testDefault($template, $expected)
$this->assertSame($expected, $templateNormalizer->normalizeTemplate($template));
}
- public function getDefault()
+ public static function getDefault()
{
return [
[
diff --git a/tests/Parser/AttributeFilters/AbstractFilterTest.php b/tests/Parser/AttributeFilters/AbstractFilterTestClass.php
similarity index 94%
rename from tests/Parser/AttributeFilters/AbstractFilterTest.php
rename to tests/Parser/AttributeFilters/AbstractFilterTestClass.php
index a3f50a08cc..2ee94a2783 100644
--- a/tests/Parser/AttributeFilters/AbstractFilterTest.php
+++ b/tests/Parser/AttributeFilters/AbstractFilterTestClass.php
@@ -4,9 +4,9 @@
use s9e\TextFormatter\Tests\Test;
-abstract class AbstractFilterTest extends Test
+abstract class AbstractFilterTestClass extends Test
{
- abstract public function getFilterTests();
+ abstract public static function getFilterTests();
/**
* @dataProvider getFilterTests
diff --git a/tests/Parser/AttributeFilters/AlnumFilterTest.php b/tests/Parser/AttributeFilters/AlnumFilterTest.php
index 420e68bb0a..911df894a7 100644
--- a/tests/Parser/AttributeFilters/AlnumFilterTest.php
+++ b/tests/Parser/AttributeFilters/AlnumFilterTest.php
@@ -7,9 +7,9 @@
/**
* @covers s9e\TextFormatter\Parser\AttributeFilters\RegexpFilter
*/
-class AlnumFilterTest extends AbstractFilterTest
+class AlnumFilterTest extends AbstractFilterTestClass
{
- public function getFilterTests()
+ public static function getFilterTests()
{
return [
[new AlnumFilter, '', false],
diff --git a/tests/Parser/AttributeFilters/ColorFilterTest.php b/tests/Parser/AttributeFilters/ColorFilterTest.php
index 2fb5e80170..2a4555a4b9 100644
--- a/tests/Parser/AttributeFilters/ColorFilterTest.php
+++ b/tests/Parser/AttributeFilters/ColorFilterTest.php
@@ -7,9 +7,9 @@
/**
* @covers s9e\TextFormatter\Parser\AttributeFilters\RegexpFilter
*/
-class ColorFilterTest extends AbstractFilterTest
+class ColorFilterTest extends AbstractFilterTestClass
{
- public function getFilterTests()
+ public static function getFilterTests()
{
return [
[new ColorFilter, '#123abc', '#123abc'],
diff --git a/tests/Parser/AttributeFilters/EmailFilterTest.php b/tests/Parser/AttributeFilters/EmailFilterTest.php
index 4480ef16f9..0c79ca7aea 100644
--- a/tests/Parser/AttributeFilters/EmailFilterTest.php
+++ b/tests/Parser/AttributeFilters/EmailFilterTest.php
@@ -7,9 +7,9 @@
/**
* @covers s9e\TextFormatter\Parser\AttributeFilters\EmailFilter
*/
-class EmailFilterTest extends AbstractFilterTest
+class EmailFilterTest extends AbstractFilterTestClass
{
- public function getFilterTests()
+ public static function getFilterTests()
{
return [
[new EmailFilter, 'example@example.com', 'example@example.com'],
diff --git a/tests/Parser/AttributeFilters/FalseFilterTest.php b/tests/Parser/AttributeFilters/FalseFilterTest.php
index fff057dfa2..9cf58f5088 100644
--- a/tests/Parser/AttributeFilters/FalseFilterTest.php
+++ b/tests/Parser/AttributeFilters/FalseFilterTest.php
@@ -7,9 +7,9 @@
/**
* @covers s9e\TextFormatter\Parser\AttributeFilters\FalseFilter
*/
-class FalseFilterTest extends AbstractFilterTest
+class FalseFilterTest extends AbstractFilterTestClass
{
- public function getFilterTests()
+ public static function getFilterTests()
{
return [
[new FalseFilter, 'bar', false],
diff --git a/tests/Parser/AttributeFilters/FontfamilyFilterTest.php b/tests/Parser/AttributeFilters/FontfamilyFilterTest.php
index 3e648b0026..8ded03974a 100644
--- a/tests/Parser/AttributeFilters/FontfamilyFilterTest.php
+++ b/tests/Parser/AttributeFilters/FontfamilyFilterTest.php
@@ -7,9 +7,9 @@
/**
* @covers s9e\TextFormatter\Parser\AttributeFilters\RegexpFilter
*/
-class FontfamilyFilterTest extends AbstractFilterTest
+class FontfamilyFilterTest extends AbstractFilterTestClass
{
- public function getFilterTests()
+ public static function getFilterTests()
{
return [
[new FontfamilyFilter, 'Arial', 'Arial'],
diff --git a/tests/Parser/AttributeFilters/HashmapFilterTest.php b/tests/Parser/AttributeFilters/HashmapFilterTest.php
index 9d1f520d5c..7045606634 100644
--- a/tests/Parser/AttributeFilters/HashmapFilterTest.php
+++ b/tests/Parser/AttributeFilters/HashmapFilterTest.php
@@ -7,9 +7,9 @@
/**
* @covers s9e\TextFormatter\Parser\AttributeFilters\HashmapFilter
*/
-class HashmapFilterTest extends AbstractFilterTest
+class HashmapFilterTest extends AbstractFilterTestClass
{
- public function getFilterTests()
+ public static function getFilterTests()
{
return [
[new HashmapFilter(['foo' => 'bar']), 'foo', 'bar'],
diff --git a/tests/Parser/AttributeFilters/IdentifierFilterTest.php b/tests/Parser/AttributeFilters/IdentifierFilterTest.php
index 3c6cb25ccc..527cb0ecf5 100644
--- a/tests/Parser/AttributeFilters/IdentifierFilterTest.php
+++ b/tests/Parser/AttributeFilters/IdentifierFilterTest.php
@@ -7,9 +7,9 @@
/**
* @covers s9e\TextFormatter\Parser\AttributeFilters\RegexpFilter
*/
-class IdentifierFilterTest extends AbstractFilterTest
+class IdentifierFilterTest extends AbstractFilterTestClass
{
- public function getFilterTests()
+ public static function getFilterTests()
{
return [
[new IdentifierFilter, '123abcABC', '123abcABC'],
diff --git a/tests/Parser/AttributeFilters/MapFilterTest.php b/tests/Parser/AttributeFilters/MapFilterTest.php
index cc076cad9a..c64a02e24a 100644
--- a/tests/Parser/AttributeFilters/MapFilterTest.php
+++ b/tests/Parser/AttributeFilters/MapFilterTest.php
@@ -7,9 +7,9 @@
/**
* @covers s9e\TextFormatter\Parser\AttributeFilters\MapFilter
*/
-class MapFilterTest extends AbstractFilterTest
+class MapFilterTest extends AbstractFilterTestClass
{
- public function getFilterTests()
+ public static function getFilterTests()
{
return [
[new MapFilter(['uno' => 'one', 'dos' => 'two']), 'dos', 'two'],
diff --git a/tests/Parser/AttributeFilters/NetworkFilterTest.php b/tests/Parser/AttributeFilters/NetworkFilterTest.php
index 3fcba2709d..ba7e78a1dd 100644
--- a/tests/Parser/AttributeFilters/NetworkFilterTest.php
+++ b/tests/Parser/AttributeFilters/NetworkFilterTest.php
@@ -10,9 +10,9 @@
/**
* @covers s9e\TextFormatter\Parser\AttributeFilters\NetworkFilter
*/
-class NetworkFilterTest extends AbstractFilterTest
+class NetworkFilterTest extends AbstractFilterTestClass
{
- public function getFilterTests()
+ public static function getFilterTests()
{
return [
[new IpFilter, '8.8.8.8', '8.8.8.8'],
diff --git a/tests/Parser/AttributeFilters/NumericFilterTest.php b/tests/Parser/AttributeFilters/NumericFilterTest.php
index 1b6f3faecf..67c8a1d269 100644
--- a/tests/Parser/AttributeFilters/NumericFilterTest.php
+++ b/tests/Parser/AttributeFilters/NumericFilterTest.php
@@ -11,7 +11,7 @@
/**
* @covers s9e\TextFormatter\Parser\AttributeFilters\NumericFilter
*/
-class NumericFilterTest extends AbstractFilterTest
+class NumericFilterTest extends AbstractFilterTestClass
{
/**
* @dataProvider getRegressionsData
@@ -30,7 +30,7 @@ public function testRegressions($original, array $results)
* NOTE: this test is not normative. Some cases exist solely to track regressions or changes in
* behaviour in ext/filter
*/
- public function getRegressionsData()
+ public static function getRegressionsData()
{
return [
['123', ['int' => 123, 'uint' => 123, 'float' => 123.0]],
@@ -47,7 +47,7 @@ public function getRegressionsData()
];
}
- public function getFilterTests()
+ public static function getFilterTests()
{
return [
[new FloatFilter, '123', 123 ],
diff --git a/tests/Parser/AttributeFilters/RangeFilterTest.php b/tests/Parser/AttributeFilters/RangeFilterTest.php
index ebda0d8aed..d09c5672e7 100644
--- a/tests/Parser/AttributeFilters/RangeFilterTest.php
+++ b/tests/Parser/AttributeFilters/RangeFilterTest.php
@@ -7,9 +7,9 @@
/**
* @covers s9e\TextFormatter\Parser\AttributeFilters\NumericFilter
*/
-class RangeFilterTest extends AbstractFilterTest
+class RangeFilterTest extends AbstractFilterTestClass
{
- public function getFilterTests()
+ public static function getFilterTests()
{
return [
[new RangeFilter(2, 5), '2', 2],
diff --git a/tests/Parser/AttributeFilters/RegexpFilterTest.php b/tests/Parser/AttributeFilters/RegexpFilterTest.php
index da1b18bf91..4966934a2d 100644
--- a/tests/Parser/AttributeFilters/RegexpFilterTest.php
+++ b/tests/Parser/AttributeFilters/RegexpFilterTest.php
@@ -7,9 +7,9 @@
/**
* @covers s9e\TextFormatter\Parser\AttributeFilters\RegexpFilter
*/
-class RegexpFilterTest extends AbstractFilterTest
+class RegexpFilterTest extends AbstractFilterTestClass
{
- public function getFilterTests()
+ public static function getFilterTests()
{
return [
[new RegexpFilter('/^[A-Z]+$/D'), 'ABC', 'ABC'],
diff --git a/tests/Parser/AttributeFilters/SimpletextFilterTest.php b/tests/Parser/AttributeFilters/SimpletextFilterTest.php
index 5bf606c6c2..d65f3df76f 100644
--- a/tests/Parser/AttributeFilters/SimpletextFilterTest.php
+++ b/tests/Parser/AttributeFilters/SimpletextFilterTest.php
@@ -7,9 +7,9 @@
/**
* @covers s9e\TextFormatter\Parser\AttributeFilters\RegexpFilter
*/
-class SimpletextFilterTest extends AbstractFilterTest
+class SimpletextFilterTest extends AbstractFilterTestClass
{
- public function getFilterTests()
+ public static function getFilterTests()
{
return [
[
diff --git a/tests/Parser/AttributeFilters/TimestampFilterTest.php b/tests/Parser/AttributeFilters/TimestampFilterTest.php
index 0219e843be..e663415ffe 100644
--- a/tests/Parser/AttributeFilters/TimestampFilterTest.php
+++ b/tests/Parser/AttributeFilters/TimestampFilterTest.php
@@ -7,9 +7,9 @@
/**
* @covers s9e\TextFormatter\Parser\AttributeFilters\TimestampFilter
*/
-class TimestampFilterTest extends AbstractFilterTest
+class TimestampFilterTest extends AbstractFilterTestClass
{
- public function getFilterTests()
+ public static function getFilterTests()
{
return [
[new TimestampFilter, '123', 123],
diff --git a/tests/Parser/AttributeFilters/UrlFilterTest.php b/tests/Parser/AttributeFilters/UrlFilterTest.php
index e532be7bd3..94fcd84341 100644
--- a/tests/Parser/AttributeFilters/UrlFilterTest.php
+++ b/tests/Parser/AttributeFilters/UrlFilterTest.php
@@ -8,7 +8,7 @@
/**
* @covers s9e\TextFormatter\Parser\AttributeFilters\UrlFilter
*/
-class UrlFilterTest extends AbstractFilterTest
+class UrlFilterTest extends AbstractFilterTestClass
{
/**
* @testdox filterUrl() can be called without a logger
@@ -41,7 +41,7 @@ public function testSanitizeUrl($url, $expected)
$this->assertSame($expected, FilterClass::sanitizeUrl($url));
}
- public function getSanitizeUrlTests()
+ public static function getSanitizeUrlTests()
{
return [
[
@@ -115,7 +115,7 @@ public function getSanitizeUrlTests()
];
}
- public function getFilterTests()
+ public static function getFilterTests()
{
return [
[
diff --git a/tests/Parser/FilterProcessingTest.php b/tests/Parser/FilterProcessingTest.php
index 02f14c019e..c220fa4192 100644
--- a/tests/Parser/FilterProcessingTest.php
+++ b/tests/Parser/FilterProcessingTest.php
@@ -122,7 +122,7 @@ public function testExecuteAttributePreprocessorsEmpty()
{
$tag = $this->getMockBuilder('s9e\\TextFormatter\\Parser\\Tag')
->disableOriginalConstructor()
- ->setMethods(['hasAttribute'])
+ ->onlyMethods(['hasAttribute'])
->getMock();
$tag->expects($this->never())->method('hasAttribute');
@@ -225,7 +225,7 @@ function()
public function testFilterTag()
{
$mock = $this->getMockBuilder('stdClass')
- ->setMethods(['foo', 'bar'])
+ ->addMethods(['foo', 'bar'])
->getMock();
$mock->expects($this->once())->method('foo');
$mock->expects($this->once())->method('bar');
@@ -250,7 +250,7 @@ public function testFilterTagStopsExecution()
{
$tag = $this->configurator->tags->add('X');
$mock = $this->getMockBuilder('stdClass')
- ->setMethods(['bar'])
+ ->addMethods(['bar'])
->getMock();
$mock->expects($this->never())->method('bar');
@@ -272,7 +272,7 @@ public function testFilterTagStopsExecution()
public function testFilterTagCallsLoggerSetTag()
{
$mock = $this->getMockBuilder('stdClass')
- ->setMethods(['foo'])
+ ->addMethods(['foo'])
->getMock();
$mock->expects($this->once())->method('foo');
@@ -284,7 +284,7 @@ public function testFilterTagCallsLoggerSetTag()
$tag = new Tag(Tag::SELF_CLOSING_TAG, 'X', 0, 0);
$logger = $this->getMockBuilder('s9e\\TextFormatter\\Parser\\Logger')
- ->setMethods(['setTag', 'unsetTag'])
+ ->onlyMethods(['setTag', 'unsetTag'])
->getMock();
$logger->expects($this->once())
->method('setTag')
@@ -294,7 +294,7 @@ public function testFilterTagCallsLoggerSetTag()
$parser = $this->getMockBuilder('s9e\\TextFormatter\\Parser')
->disableOriginalConstructor()
- ->setMethods(['getLogger', 'getText'])
+ ->onlyMethods(['getLogger', 'getText'])
->getMock();
$parser->expects($this->once())->method('getLogger')->will($this->returnValue($logger));
$parser->expects($this->any())->method('getText')->will($this->returnValue(''));
@@ -308,7 +308,7 @@ public function testFilterTagCallsLoggerSetTag()
public function testFilterTagPassesParser()
{
$mock = $this->getMockBuilder('stdClass')
- ->setMethods(['foo'])
+ ->addMethods(['foo'])
->getMock();
$tag = $this->configurator->tags->add('X');
@@ -336,11 +336,10 @@ public function testFilterTagPassesParser()
public function testFilterTagPassesOpenTags()
{
$mock = $this->getMockBuilder('stdClass')
- ->setMethods(['foo'])
+ ->addMethods(['foo'])
->getMock();
$mock->expects($this->exactly(2))
->method('foo')
- ->withConsecutive([[]], [[new Tag(Tag::START_TAG, 'X', 0, 0)]])
->willReturn(true);
$this->configurator->rulesGenerator->clear();
@@ -371,7 +370,7 @@ function () use ($parser)
public function testFilterTagPassesText()
{
$mock = $this->getMockBuilder('stdClass')
- ->setMethods(['foo'])
+ ->addMethods(['foo'])
->getMock();
$mock->expects($this->once())
->method('foo')
@@ -400,7 +399,7 @@ function () use ($parser)
public function testFilterTagPassesComputedValues()
{
$mock = $this->getMockBuilder('stdClass')
- ->setMethods(['foo'])
+ ->addMethods(['foo'])
->getMock();
$mock->expects($this->once())
->method('foo')
@@ -467,7 +466,7 @@ public function testFilterAttributesRemovesUndefinedAttributes()
public function testFilterAttributesExecutesFilterChain()
{
$mock = $this->getMockBuilder('stdClass')
- ->setMethods(['foo', 'bar'])
+ ->addMethods(['foo', 'bar'])
->getMock();
$mock->expects($this->once())
->method('foo')
@@ -500,7 +499,7 @@ public function testFilterAttributesExecutesFilterChain()
public function testFilterAttributesReturnsFalse()
{
$mock = $this->getMockBuilder('stdClass')
- ->setMethods(['foo', 'bar'])
+ ->addMethods(['foo', 'bar'])
->getMock();
$mock->expects($this->once())
->method('foo')
@@ -527,7 +526,7 @@ public function testFilterAttributesReturnsFalse()
public function testFilterAttributesRemovesInvalid()
{
$mock = $this->getMockBuilder('stdClass')
- ->setMethods(['foo'])
+ ->addMethods(['foo'])
->getMock();
$mock->expects($this->once())
->method('foo')
@@ -555,7 +554,7 @@ public function testFilterAttributesRemovesInvalid()
public function testFilterAttributesReplacesInvalid()
{
$mock = $this->getMockBuilder('stdClass')
- ->setMethods(['foo'])
+ ->addMethods(['foo'])
->getMock();
$mock->expects($this->once())
->method('foo')
@@ -603,11 +602,10 @@ public function testFilterAttributesReplacesMissing()
public function testFilterAttributesCallsLoggerSetAttribute()
{
$logger = $this->getMockBuilder('s9e\\TextFormatter\\Parser\\Logger')
- ->setMethods(['setAttribute', 'unsetAttribute'])
+ ->onlyMethods(['setAttribute', 'unsetAttribute'])
->getMock();
$logger->expects($this->exactly(2))
- ->method('setAttribute')
- ->withConsecutive(['bar'], ['foo']);
+ ->method('setAttribute');
$logger->expects($this->exactly(2))
->method('unsetAttribute');
diff --git a/tests/Parser/FunctionalTest.php b/tests/Parser/FunctionalTest.php
index 4eb51bf0c2..52f1f95490 100644
--- a/tests/Parser/FunctionalTest.php
+++ b/tests/Parser/FunctionalTest.php
@@ -37,7 +37,7 @@ public function testFunctionalJavaScript($original, $expected, $setup)
$this->runFunctionalTest('assertJSParsing', $original, $expected, $setup);
}
- public function getFunctionalTests()
+ public static function getFunctionalTests()
{
return [
[
diff --git a/tests/Parser/OutputHandlingTest.php b/tests/Parser/OutputHandlingTest.php
index 8722dedc4e..9cb3e47054 100644
--- a/tests/Parser/OutputHandlingTest.php
+++ b/tests/Parser/OutputHandlingTest.php
@@ -21,7 +21,7 @@ public function test($original, $expected, $setup = null, $callback = null)
$this->assertParsing($original, $expected, $setup, $callback);
}
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Parser/PluginsHandlingTest.php b/tests/Parser/PluginsHandlingTest.php
index 88d6beb855..d9158d821e 100644
--- a/tests/Parser/PluginsHandlingTest.php
+++ b/tests/Parser/PluginsHandlingTest.php
@@ -80,7 +80,7 @@ public function testEnableInexistentPlugin()
protected function getMockPlugin(Parser $parser)
{
return $this->getMockBuilder('s9e\\TextFormatter\\Plugins\\ParserBase')
- ->setMethods(['parse'])
+ ->onlyMethods(['parse'])
->setConstructorArgs([$parser, []])
->getMock();
}
@@ -255,7 +255,7 @@ public function testRegisterParserExisting()
{
$dummy = new PluginsHandlingDummy;
$parser = $this->getMockBuilder('stdClass')
- ->setMethods(['foo'])
+ ->addMethods(['foo'])
->getMock();
$parser->expects($this->once())
->method('foo');
@@ -274,7 +274,7 @@ public function testRegisterParserNew()
$dummy->pluginsConfig = [];
$parser = $this->getMockBuilder('stdClass')
- ->setMethods(['foo'])
+ ->addMethods(['foo'])
->getMock();
$parser->expects($this->once())
->method('foo');
diff --git a/tests/Parser/RulesHandlingTest.php b/tests/Parser/RulesHandlingTest.php
index dcdfc72fe0..172ae4457d 100644
--- a/tests/Parser/RulesHandlingTest.php
+++ b/tests/Parser/RulesHandlingTest.php
@@ -21,7 +21,7 @@ public function test($original, $expected, $setup = null, $callback = null)
$this->assertParsing($original, $expected, $setup, $callback);
}
- public function getData()
+ public static function getData()
{
return [
[
diff --git a/tests/Parser/TagProcessingTest.php b/tests/Parser/TagProcessingTest.php
index 0ccc50842b..b244df977d 100644
--- a/tests/Parser/TagProcessingTest.php
+++ b/tests/Parser/TagProcessingTest.php
@@ -26,7 +26,7 @@ public function test($original, $expected, $setup = null, $callback = null, arra
$this->assertParsing($original, $expected, $setup, $callback, $expectedLogs);
}
- public function getData()
+ public static function getData()
{
return [
[
@@ -335,7 +335,7 @@ function ($parser)
'err',
'Nesting limit exceeded',
[
- 'tag' => $this->runClosure(
+ 'tag' => (
function ()
{
$tag = new Tag(Tag::SELF_CLOSING_TAG, 'X', 2, 1);
@@ -343,7 +343,7 @@ function ()
return $tag;
}
- ),
+ )(),
'tagName' => 'X',
'nestingLimit' => 2
]
@@ -368,7 +368,7 @@ function ($parser)
'err',
'Tag limit exceeded',
[
- 'tag' => $this->runClosure(
+ 'tag' => (
function ()
{
$tag = new Tag(Tag::SELF_CLOSING_TAG, 'X', 2, 1);
@@ -376,7 +376,7 @@ function ()
return $tag;
}
- ),
+ )(),
'tagName' => 'X',
'tagLimit' => 2
]
@@ -990,7 +990,7 @@ function ($parser)
'Tag is not allowed in this context',
[
'tagName' => 'Y',
- 'tag' => $this->runClosure(
+ 'tag' => (
function ()
{
$tag = new Tag(Tag::SELF_CLOSING_TAG, 'Y', 1, 1);
@@ -998,7 +998,7 @@ function ()
return $tag;
}
- ),
+ )(),
]
]
]
@@ -1023,7 +1023,7 @@ function ($parser)
'Tag is not allowed in this context',
[
'tagName' => 'Y',
- 'tag' => $this->runClosure(
+ 'tag' => (
function ()
{
$tag = new Tag(Tag::SELF_CLOSING_TAG, 'Y', 1, 0);
@@ -1031,7 +1031,7 @@ function ()
return $tag;
}
- ),
+ )(),
]
]
]
@@ -1454,7 +1454,7 @@ public function testJS($original, $expected, $setup)
$this->assertJSParsing($original, $expected);
}
- public function getJSData()
+ public static function getJSData()
{
return [
[
diff --git a/tests/Parser/TagTest.php b/tests/Parser/TagTest.php
index 5770c12f42..e63e1c9d46 100644
--- a/tests/Parser/TagTest.php
+++ b/tests/Parser/TagTest.php
@@ -298,7 +298,7 @@ public function testInvalidateCascade()
{
$tag1 = new Tag(Tag::START_TAG, 'X', 0, 0);
$tag2 = $this->getMockBuilder('s9e\\TextFormatter\\Parser\\Tag')
- ->setMethods(['invalidate'])
+ ->onlyMethods(['invalidate'])
->setConstructorArgs([Tag::START_TAG, 'X', 0, 0])
->getMock();
$tag2->expects($this->once())
@@ -314,7 +314,7 @@ public function testInvalidateCascade()
public function testInvalidateCascadeNotReciprocal()
{
$tag1 = $this->getMockBuilder('s9e\\TextFormatter\\Parser\\Tag')
- ->setMethods(['invalidate'])
+ ->onlyMethods(['invalidate'])
->setConstructorArgs([Tag::START_TAG, 'X', 0, 0])
->getMock();
$tag1->expects($this->never())
@@ -332,7 +332,7 @@ public function testInvalidateCascadeImmediate()
{
$tag1 = new Tag(Tag::START_TAG, 'X', 0, 0);
$tag2 = $this->getMockBuilder('s9e\\TextFormatter\\Parser\\Tag')
- ->setMethods(['invalidate'])
+ ->onlyMethods(['invalidate'])
->setConstructorArgs([Tag::START_TAG, 'X', 0, 0])
->getMock();
$tag2->expects($this->once())
diff --git a/tests/Plugins/Autoemail/ParserTest.php b/tests/Plugins/Autoemail/ParserTest.php
index 3171d1cc3c..51273f4273 100644
--- a/tests/Plugins/Autoemail/ParserTest.php
+++ b/tests/Plugins/Autoemail/ParserTest.php
@@ -18,7 +18,7 @@ class ParserTest extends Test
use ParsingTestsJavaScriptRunner;
use RenderingTestsRunner;
- public function getParsingTests()
+ public static function getParsingTests()
{
return [
[
@@ -46,7 +46,7 @@ public function getParsingTests()
];
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return [
[
diff --git a/tests/Plugins/Autoimage/ParserTest.php b/tests/Plugins/Autoimage/ParserTest.php
index 2a40c2331c..d9ef4015ff 100644
--- a/tests/Plugins/Autoimage/ParserTest.php
+++ b/tests/Plugins/Autoimage/ParserTest.php
@@ -19,7 +19,7 @@ class ParserTest extends Test
use ParsingTestsJavaScriptRunner;
use RenderingTestsRunner;
- public function getParsingTests()
+ public static function getParsingTests()
{
return [
[
@@ -68,7 +68,7 @@ function ($configurator)
];
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return [
[
diff --git a/tests/Plugins/Autolink/ParserTest.php b/tests/Plugins/Autolink/ParserTest.php
index 7b80e184d8..64d210a7b2 100644
--- a/tests/Plugins/Autolink/ParserTest.php
+++ b/tests/Plugins/Autolink/ParserTest.php
@@ -18,7 +18,7 @@ class ParserTest extends Test
use ParsingTestsJavaScriptRunner;
use RenderingTestsRunner;
- public function getParsingTests()
+ public static function getParsingTests()
{
return [
[
@@ -242,7 +242,7 @@ public static function addContentTag($tag, $parser)
$parser->addSelfClosingTag('X', $tagPos, $tagLen, $tag->getSortPriority());
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return [
[
diff --git a/tests/Plugins/Autovideo/ParserTest.php b/tests/Plugins/Autovideo/ParserTest.php
index c68e2c4640..a10b469d11 100644
--- a/tests/Plugins/Autovideo/ParserTest.php
+++ b/tests/Plugins/Autovideo/ParserTest.php
@@ -19,7 +19,7 @@ class ParserTest extends Test
use ParsingTestsJavaScriptRunner;
use RenderingTestsRunner;
- public function getParsingTests()
+ public static function getParsingTests()
{
return [
[
@@ -68,7 +68,7 @@ function ($configurator)
];
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return [
[
diff --git a/tests/Plugins/BBCodes/BBCodesTest.php b/tests/Plugins/BBCodes/BBCodesTest.php
index 9a19a846e7..f137af6567 100644
--- a/tests/Plugins/BBCodes/BBCodesTest.php
+++ b/tests/Plugins/BBCodes/BBCodesTest.php
@@ -27,7 +27,7 @@ function ($configurator) use ($usage)
);
}
- public function getExamplesTests()
+ public static function getExamplesTests()
{
return [
[
@@ -117,7 +117,7 @@ public function testJS($original, $expected, $setup = null)
$this->assertJSParsing($original, $this->getParser()->parse($original));
}
- public function getPredefinedBBCodesTests()
+ public static function getPredefinedBBCodesTests()
{
return [
[
diff --git a/tests/Plugins/BBCodes/Configurator/BBCodeMonkeyTest.php b/tests/Plugins/BBCodes/Configurator/BBCodeMonkeyTest.php
index bbefc964f7..1c2725e6fb 100644
--- a/tests/Plugins/BBCodes/Configurator/BBCodeMonkeyTest.php
+++ b/tests/Plugins/BBCodes/Configurator/BBCodeMonkeyTest.php
@@ -100,7 +100,7 @@ public function testCreate($usage, $template, $expected)
}
}
- public function getCreateTests()
+ public static function getCreateTests()
{
return [
[
diff --git a/tests/Plugins/BBCodes/ParserTest.php b/tests/Plugins/BBCodes/ParserTest.php
index dde50517c0..f8c477975c 100644
--- a/tests/Plugins/BBCodes/ParserTest.php
+++ b/tests/Plugins/BBCodes/ParserTest.php
@@ -16,7 +16,7 @@ class ParserTest extends Test
use ParsingTestsRunner;
use ParsingTestsJavaScriptRunner;
- public function getParsingTests()
+ public static function getParsingTests()
{
return [
[
diff --git a/tests/Plugins/Censor/ParserTest.php b/tests/Plugins/Censor/ParserTest.php
index fac260eb9e..9847a7a008 100644
--- a/tests/Plugins/Censor/ParserTest.php
+++ b/tests/Plugins/Censor/ParserTest.php
@@ -18,7 +18,7 @@ class ParserTest extends Test
use ParsingTestsJavaScriptRunner;
use RenderingTestsRunner;
- public function getParsingTests()
+ public static function getParsingTests()
{
return [
[
@@ -196,7 +196,7 @@ function ($configurator)
];
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return [
[
diff --git a/tests/Plugins/Emoji/ParserTest.php b/tests/Plugins/Emoji/ParserTest.php
index 424bd29d45..9a8bbdfa22 100644
--- a/tests/Plugins/Emoji/ParserTest.php
+++ b/tests/Plugins/Emoji/ParserTest.php
@@ -18,7 +18,7 @@ class ParserTest extends Test
use ParsingTestsJavaScriptRunner;
use RenderingTestsRunner;
- public function getParsingTests()
+ public static function getParsingTests()
{
return [
[
@@ -174,7 +174,7 @@ function ($configurator, $plugin)
];
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return [
[
diff --git a/tests/Plugins/Emoticons/ParserTest.php b/tests/Plugins/Emoticons/ParserTest.php
index cd2bc02e5a..d463198d1b 100644
--- a/tests/Plugins/Emoticons/ParserTest.php
+++ b/tests/Plugins/Emoticons/ParserTest.php
@@ -18,7 +18,7 @@ class ParserTest extends Test
use ParsingTestsJavaScriptRunner;
use RenderingTestsRunner;
- public function getParsingTests()
+ public static function getParsingTests()
{
return [
[
@@ -72,7 +72,7 @@ function ($configurator)
];
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return [
[
diff --git a/tests/Plugins/Escaper/ParserTest.php b/tests/Plugins/Escaper/ParserTest.php
index a6a18c6630..51c1228606 100644
--- a/tests/Plugins/Escaper/ParserTest.php
+++ b/tests/Plugins/Escaper/ParserTest.php
@@ -18,7 +18,7 @@ class ParserTest extends Test
use ParsingTestsJavaScriptRunner;
use RenderingTestsRunner;
- public function getParsingTests()
+ public static function getParsingTests()
{
return [
[
@@ -60,7 +60,7 @@ function ($configurator)
];
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return [
[
diff --git a/tests/Plugins/FancyPants/ParserTest.php b/tests/Plugins/FancyPants/ParserTest.php
index 266012000e..64f8b6a308 100644
--- a/tests/Plugins/FancyPants/ParserTest.php
+++ b/tests/Plugins/FancyPants/ParserTest.php
@@ -18,7 +18,7 @@ class ParserTest extends Test
use ParsingTestsJavaScriptRunner;
use RenderingTestsRunner;
- public function getParsingTests()
+ public static function getParsingTests()
{
return [
[
@@ -240,7 +240,7 @@ function ($configurator)
];
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return [
[
diff --git a/tests/Plugins/HTMLComments/ParserTest.php b/tests/Plugins/HTMLComments/ParserTest.php
index 1a2e417223..6c49b4dd86 100644
--- a/tests/Plugins/HTMLComments/ParserTest.php
+++ b/tests/Plugins/HTMLComments/ParserTest.php
@@ -18,7 +18,7 @@ class ParserTest extends Test
use ParsingTestsJavaScriptRunner;
use RenderingTestsRunner;
- public function getParsingTests()
+ public static function getParsingTests()
{
return [
[
@@ -66,7 +66,7 @@ public function getParsingTests()
];
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return [
[
diff --git a/tests/Plugins/HTMLElements/ParserTest.php b/tests/Plugins/HTMLElements/ParserTest.php
index e198a2fb2f..43ee18150b 100644
--- a/tests/Plugins/HTMLElements/ParserTest.php
+++ b/tests/Plugins/HTMLElements/ParserTest.php
@@ -18,7 +18,7 @@ class ParserTest extends Test
use ParsingTestsJavaScriptRunner;
use RenderingTestsRunner;
- public function getParsingTests()
+ public static function getParsingTests()
{
return [
[
@@ -189,7 +189,7 @@ function ($configurator)
];
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return [
[
diff --git a/tests/Plugins/HTMLEntities/ParserTest.php b/tests/Plugins/HTMLEntities/ParserTest.php
index 4da1a138b7..75d7941554 100644
--- a/tests/Plugins/HTMLEntities/ParserTest.php
+++ b/tests/Plugins/HTMLEntities/ParserTest.php
@@ -18,7 +18,7 @@ class ParserTest extends Test
use ParsingTestsJavaScriptRunner;
use RenderingTestsRunner;
- public function getParsingTests()
+ public static function getParsingTests()
{
return [
[
@@ -66,7 +66,7 @@ public function getParsingTests()
];
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return [
[
diff --git a/tests/Plugins/Keywords/ParserTest.php b/tests/Plugins/Keywords/ParserTest.php
index 383d046715..4750643f20 100644
--- a/tests/Plugins/Keywords/ParserTest.php
+++ b/tests/Plugins/Keywords/ParserTest.php
@@ -18,7 +18,7 @@ class ParserTest extends Test
use ParsingTestsJavaScriptRunner;
// use RenderingTestsRunner;
- public function getParsingTests()
+ public static function getParsingTests()
{
return [
[
diff --git a/tests/Plugins/Litedown/Parser/Passes/AbstractTest.php b/tests/Plugins/Litedown/Parser/Passes/AbstractTestClass.php
similarity index 85%
rename from tests/Plugins/Litedown/Parser/Passes/AbstractTest.php
rename to tests/Plugins/Litedown/Parser/Passes/AbstractTestClass.php
index 667979334b..0905b1268b 100644
--- a/tests/Plugins/Litedown/Parser/Passes/AbstractTest.php
+++ b/tests/Plugins/Litedown/Parser/Passes/AbstractTestClass.php
@@ -8,14 +8,14 @@
use s9e\TextFormatter\Tests\Plugins\RenderingTestsRunner;
use s9e\TextFormatter\Tests\Test;
-abstract class AbstractTest extends Test
+abstract class AbstractTestClass extends Test
{
use ParsingTestsRunner;
use ParsingTestsJavaScriptRunner;
use RenderingTestsRunner;
- abstract public function getParsingTests();
- abstract public function getRenderingTests();
+ abstract public static function getParsingTests();
+ abstract public static function getRenderingTests();
protected static function fixTests($tests)
{
diff --git a/tests/Plugins/Litedown/Parser/Passes/BlocksTest.php b/tests/Plugins/Litedown/Parser/Passes/BlocksTest.php
index 5ee0b831e9..6462f3e55d 100644
--- a/tests/Plugins/Litedown/Parser/Passes/BlocksTest.php
+++ b/tests/Plugins/Litedown/Parser/Passes/BlocksTest.php
@@ -9,9 +9,9 @@
* @covers s9e\TextFormatter\Plugins\Litedown\Parser\Passes\Blocks
* @covers s9e\TextFormatter\Plugins\Litedown\Parser\Slugger
*/
-class BlocksTest extends AbstractTest
+class BlocksTest extends AbstractTestClass
{
- public function getParsingTests()
+ public static function getParsingTests()
{
return self::fixTests([
[
@@ -1469,7 +1469,7 @@ function ($configurator)
]);
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return self::fixTests([
[
diff --git a/tests/Plugins/Litedown/Parser/Passes/EmphasisTest.php b/tests/Plugins/Litedown/Parser/Passes/EmphasisTest.php
index 3c09e9fc88..a542ece24d 100644
--- a/tests/Plugins/Litedown/Parser/Passes/EmphasisTest.php
+++ b/tests/Plugins/Litedown/Parser/Passes/EmphasisTest.php
@@ -8,9 +8,9 @@
* @covers s9e\TextFormatter\Plugins\Litedown\Parser\Passes\AbstractPass
* @covers s9e\TextFormatter\Plugins\Litedown\Parser\Passes\Emphasis
*/
-class EmphasisTest extends AbstractTest
+class EmphasisTest extends AbstractTestClass
{
- public function getParsingTests()
+ public static function getParsingTests()
{
return self::fixTests([
[
@@ -188,7 +188,7 @@ public function getParsingTests()
]);
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return self::fixTests([
[
diff --git a/tests/Plugins/Litedown/Parser/Passes/ForcedLineBreaksTest.php b/tests/Plugins/Litedown/Parser/Passes/ForcedLineBreaksTest.php
index de8f9725a2..e7223e6694 100644
--- a/tests/Plugins/Litedown/Parser/Passes/ForcedLineBreaksTest.php
+++ b/tests/Plugins/Litedown/Parser/Passes/ForcedLineBreaksTest.php
@@ -8,9 +8,9 @@
* @covers s9e\TextFormatter\Plugins\Litedown\Parser\Passes\AbstractPass
* @covers s9e\TextFormatter\Plugins\Litedown\Parser\Passes\ForcedLineBreaks
*/
-class ForcedLineBreaksTest extends AbstractTest
+class ForcedLineBreaksTest extends AbstractTestClass
{
- public function getParsingTests()
+ public static function getParsingTests()
{
return self::fixTests([
[
@@ -142,7 +142,7 @@ function ($configurator)
]);
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return self::fixTests([
[
diff --git a/tests/Plugins/Litedown/Parser/Passes/ImagesTest.php b/tests/Plugins/Litedown/Parser/Passes/ImagesTest.php
index 70af10d9e7..479f06928e 100644
--- a/tests/Plugins/Litedown/Parser/Passes/ImagesTest.php
+++ b/tests/Plugins/Litedown/Parser/Passes/ImagesTest.php
@@ -9,9 +9,9 @@
* @covers s9e\TextFormatter\Plugins\Litedown\Parser\Passes\AbstractPass
* @covers s9e\TextFormatter\Plugins\Litedown\Parser\Passes\Images
*/
-class ImagesTest extends AbstractTest
+class ImagesTest extends AbstractTestClass
{
- public function getParsingTests()
+ public static function getParsingTests()
{
return self::fixTests([
[
@@ -217,7 +217,7 @@ public function getParsingTests()
]);
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return self::fixTests([
[
diff --git a/tests/Plugins/Litedown/Parser/Passes/InlineCodeTest.php b/tests/Plugins/Litedown/Parser/Passes/InlineCodeTest.php
index 5c2deb7fd7..5c458f1ea4 100644
--- a/tests/Plugins/Litedown/Parser/Passes/InlineCodeTest.php
+++ b/tests/Plugins/Litedown/Parser/Passes/InlineCodeTest.php
@@ -8,9 +8,9 @@
* @covers s9e\TextFormatter\Plugins\Litedown\Parser\Passes\AbstractPass
* @covers s9e\TextFormatter\Plugins\Litedown\Parser\Passes\InlineCode
*/
-class InlineCodeTest extends AbstractTest
+class InlineCodeTest extends AbstractTestClass
{
- public function getParsingTests()
+ public static function getParsingTests()
{
return self::fixTests([
[
@@ -116,7 +116,7 @@ public function getParsingTests()
]);
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return self::fixTests([
[
diff --git a/tests/Plugins/Litedown/Parser/Passes/InlineSpoilerTest.php b/tests/Plugins/Litedown/Parser/Passes/InlineSpoilerTest.php
index 98e60cdcae..6ebba31b12 100644
--- a/tests/Plugins/Litedown/Parser/Passes/InlineSpoilerTest.php
+++ b/tests/Plugins/Litedown/Parser/Passes/InlineSpoilerTest.php
@@ -9,9 +9,9 @@
* @covers s9e\TextFormatter\Plugins\Litedown\Parser\Passes\AbstractPass
* @covers s9e\TextFormatter\Plugins\Litedown\Parser\Passes\InlineSpoiler
*/
-class InlineSpoilerTest extends AbstractTest
+class InlineSpoilerTest extends AbstractTestClass
{
- public function getParsingTests()
+ public static function getParsingTests()
{
return self::fixTests([
[
@@ -61,7 +61,7 @@ public function getParsingTests()
]);
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return self::fixTests([
[
diff --git a/tests/Plugins/Litedown/Parser/Passes/LinksTest.php b/tests/Plugins/Litedown/Parser/Passes/LinksTest.php
index c1f6b95a73..be08d04b89 100644
--- a/tests/Plugins/Litedown/Parser/Passes/LinksTest.php
+++ b/tests/Plugins/Litedown/Parser/Passes/LinksTest.php
@@ -9,9 +9,9 @@
* @covers s9e\TextFormatter\Plugins\Litedown\Parser\Passes\Links
* @covers s9e\TextFormatter\Plugins\Litedown\Parser\Passes\LinkReferences
*/
-class LinksTest extends AbstractTest
+class LinksTest extends AbstractTestClass
{
- public function getParsingTests()
+ public static function getParsingTests()
{
return self::fixTests([
[
@@ -457,7 +457,7 @@ function ($configurator)
]);
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return [
[
diff --git a/tests/Plugins/Litedown/Parser/Passes/StrikethroughTest.php b/tests/Plugins/Litedown/Parser/Passes/StrikethroughTest.php
index d094d476dd..daef20a81e 100644
--- a/tests/Plugins/Litedown/Parser/Passes/StrikethroughTest.php
+++ b/tests/Plugins/Litedown/Parser/Passes/StrikethroughTest.php
@@ -9,9 +9,9 @@
* @covers s9e\TextFormatter\Plugins\Litedown\Parser\Passes\AbstractPass
* @covers s9e\TextFormatter\Plugins\Litedown\Parser\Passes\Strikethrough
*/
-class StrikethroughTest extends AbstractTest
+class StrikethroughTest extends AbstractTestClass
{
- public function getParsingTests()
+ public static function getParsingTests()
{
return self::fixTests([
[
@@ -45,7 +45,7 @@ public function getParsingTests()
]);
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return self::fixTests([
[
diff --git a/tests/Plugins/Litedown/Parser/Passes/SubscriptTest.php b/tests/Plugins/Litedown/Parser/Passes/SubscriptTest.php
index 6f28bcf374..ec6f1dc660 100644
--- a/tests/Plugins/Litedown/Parser/Passes/SubscriptTest.php
+++ b/tests/Plugins/Litedown/Parser/Passes/SubscriptTest.php
@@ -9,9 +9,9 @@
* @covers s9e\TextFormatter\Plugins\Litedown\Parser\Passes\AbstractScript
* @covers s9e\TextFormatter\Plugins\Litedown\Parser\Passes\Subscript
*/
-class SubscriptTest extends AbstractTest
+class SubscriptTest extends AbstractTestClass
{
- public function getParsingTests()
+ public static function getParsingTests()
{
return self::fixTests([
[
@@ -85,7 +85,7 @@ public function getParsingTests()
]);
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return self::fixTests([
[
diff --git a/tests/Plugins/Litedown/Parser/Passes/SuperscriptTest.php b/tests/Plugins/Litedown/Parser/Passes/SuperscriptTest.php
index 2188bdc372..121464906e 100644
--- a/tests/Plugins/Litedown/Parser/Passes/SuperscriptTest.php
+++ b/tests/Plugins/Litedown/Parser/Passes/SuperscriptTest.php
@@ -9,9 +9,9 @@
* @covers s9e\TextFormatter\Plugins\Litedown\Parser\Passes\AbstractScript
* @covers s9e\TextFormatter\Plugins\Litedown\Parser\Passes\Superscript
*/
-class SuperscriptTest extends AbstractTest
+class SuperscriptTest extends AbstractTestClass
{
- public function getParsingTests()
+ public static function getParsingTests()
{
return self::fixTests([
[
@@ -81,7 +81,7 @@ public function getParsingTests()
]);
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return self::fixTests([
[
diff --git a/tests/Plugins/Litedown/ParserTest.php b/tests/Plugins/Litedown/ParserTest.php
index 4a59bffa19..2b2802627c 100644
--- a/tests/Plugins/Litedown/ParserTest.php
+++ b/tests/Plugins/Litedown/ParserTest.php
@@ -16,7 +16,7 @@ class ParserTest extends Test
use ParsingTestsRunner;
use ParsingTestsJavaScriptRunner;
- public function getParsingTests()
+ public static function getParsingTests()
{
return [
[
diff --git a/tests/Plugins/MediaEmbed/Configurator/TemplateGenerators/AbstractTest.php b/tests/Plugins/MediaEmbed/Configurator/TemplateGenerators/AbstractTestClass.php
similarity index 85%
rename from tests/Plugins/MediaEmbed/Configurator/TemplateGenerators/AbstractTest.php
rename to tests/Plugins/MediaEmbed/Configurator/TemplateGenerators/AbstractTestClass.php
index 33cd1d2cff..7ca2d216ae 100644
--- a/tests/Plugins/MediaEmbed/Configurator/TemplateGenerators/AbstractTest.php
+++ b/tests/Plugins/MediaEmbed/Configurator/TemplateGenerators/AbstractTestClass.php
@@ -4,9 +4,9 @@
use s9e\TextFormatter\Tests\Test;
-abstract class AbstractTest extends Test
+abstract class AbstractTestClass extends Test
{
- abstract public function getGetTemplateTests();
+ abstract public static function getGetTemplateTests();
abstract protected function getTemplateGenerator();
/**
diff --git a/tests/Plugins/MediaEmbed/Configurator/TemplateGenerators/ChooseTest.php b/tests/Plugins/MediaEmbed/Configurator/TemplateGenerators/ChooseTest.php
index d23c8442b7..a89b352616 100644
--- a/tests/Plugins/MediaEmbed/Configurator/TemplateGenerators/ChooseTest.php
+++ b/tests/Plugins/MediaEmbed/Configurator/TemplateGenerators/ChooseTest.php
@@ -18,7 +18,7 @@ class ChooseTest extends Test
public function testGetTemplateOneWhen()
{
$mock = $this->getMockBuilder('s9e\\TextFormatter\\Plugins\\MediaEmbed\\Configurator\\TemplateBuilder')
- ->setMethods(['getTemplate'])
+ ->onlyMethods(['getTemplate'])
->getMock();
$mock->expects($this->exactly(2))
->method('getTemplate')
@@ -48,7 +48,7 @@ public function testGetTemplateOneWhen()
public function testGetTemplateTwoWhen()
{
$mock = $this->getMockBuilder('s9e\\TextFormatter\\Plugins\\MediaEmbed\\Configurator\\TemplateBuilder')
- ->setMethods(['getTemplate'])
+ ->onlyMethods(['getTemplate'])
->getMock();
$mock->expects($this->exactly(3))
->method('getTemplate')
diff --git a/tests/Plugins/MediaEmbed/Configurator/TemplateGenerators/FlashTest.php b/tests/Plugins/MediaEmbed/Configurator/TemplateGenerators/FlashTest.php
index 6e99f6fb83..d41f834182 100644
--- a/tests/Plugins/MediaEmbed/Configurator/TemplateGenerators/FlashTest.php
+++ b/tests/Plugins/MediaEmbed/Configurator/TemplateGenerators/FlashTest.php
@@ -8,14 +8,14 @@
* @covers s9e\TextFormatter\Plugins\MediaEmbed\Configurator\TemplateGenerator
* @covers s9e\TextFormatter\Plugins\MediaEmbed\Configurator\TemplateGenerators\Flash
*/
-class FlashTest extends AbstractTest
+class FlashTest extends AbstractTestClass
{
protected function getTemplateGenerator()
{
return new Flash;
}
- public function getGetTemplateTests()
+ public static function getGetTemplateTests()
{
return [
[
diff --git a/tests/Plugins/MediaEmbed/Configurator/TemplateGenerators/IframeTest.php b/tests/Plugins/MediaEmbed/Configurator/TemplateGenerators/IframeTest.php
index d8676a520f..875dc8fb50 100644
--- a/tests/Plugins/MediaEmbed/Configurator/TemplateGenerators/IframeTest.php
+++ b/tests/Plugins/MediaEmbed/Configurator/TemplateGenerators/IframeTest.php
@@ -8,14 +8,14 @@
* @covers s9e\TextFormatter\Plugins\MediaEmbed\Configurator\TemplateGenerator
* @covers s9e\TextFormatter\Plugins\MediaEmbed\Configurator\TemplateGenerators\Iframe
*/
-class IframeTest extends AbstractTest
+class IframeTest extends AbstractTestClass
{
protected function getTemplateGenerator()
{
return new Iframe;
}
- public function getGetTemplateTests()
+ public static function getGetTemplateTests()
{
return [
[
diff --git a/tests/Plugins/MediaEmbed/ParserTest.php b/tests/Plugins/MediaEmbed/ParserTest.php
index 10bfb3c82b..1cd7c425de 100644
--- a/tests/Plugins/MediaEmbed/ParserTest.php
+++ b/tests/Plugins/MediaEmbed/ParserTest.php
@@ -105,7 +105,7 @@ public function testAbstract()
call_user_func_array([$this, 'testParsing'], func_get_args());
}
- public function getAbstractTests()
+ public static function getAbstractTests()
{
return [
[
@@ -490,7 +490,7 @@ public function testScraping()
$this->runScrapingTest('testParsing', func_get_args());
}
- public function getScrapingTests()
+ public static function getScrapingTests()
{
return [
[
@@ -1378,7 +1378,7 @@ public function testScrapingRendering()
$this->runScrapingTest('testRendering', func_get_args());
}
- public function getScrapingRenderingTests()
+ public static function getScrapingRenderingTests()
{
return [
// [
@@ -1533,7 +1533,7 @@ function ($configurator)
];
}
- public function getParsingTests()
+ public static function getParsingTests()
{
return [
[
@@ -4505,7 +4505,7 @@ function ($configurator)
];
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return [
[
@@ -5428,7 +5428,7 @@ public function testLegacyRendering($xml, $html, $setup = null)
$this->assertSame($html, $this->configurator->rendering->getRenderer()->render($xml));
}
- public function getLegacyRenderingTests()
+ public static function getLegacyRenderingTests()
{
return [
[
@@ -5590,7 +5590,7 @@ public function testAmpRendering(string $siteId, string $text, string $html, $se
$this->assertSame($html, $renderer->render($parser->parse($text)));
}
- public function getAmpRenderingTests()
+ public static function getAmpRenderingTests()
{
return [
[
diff --git a/tests/Plugins/PipeTables/ParserTest.php b/tests/Plugins/PipeTables/ParserTest.php
index 3261a9d8bf..e13ab6f7f9 100644
--- a/tests/Plugins/PipeTables/ParserTest.php
+++ b/tests/Plugins/PipeTables/ParserTest.php
@@ -29,7 +29,7 @@ protected static function fixTests($tests)
return $tests;
}
- public function getParsingTests()
+ public static function getParsingTests()
{
return self::fixTests([
[
@@ -387,7 +387,7 @@ function ($configurator)
]);
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return self::fixTests([
[
diff --git a/tests/Plugins/Preg/ParserTest.php b/tests/Plugins/Preg/ParserTest.php
index 2b018f9b3d..06f00d7895 100644
--- a/tests/Plugins/Preg/ParserTest.php
+++ b/tests/Plugins/Preg/ParserTest.php
@@ -18,7 +18,7 @@ class ParserTest extends Test
use ParsingTestsJavaScriptRunner;
use RenderingTestsRunner;
- public function getParsingTests()
+ public static function getParsingTests()
{
return [
[
@@ -141,7 +141,7 @@ function ($configurator)
];
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return [
[
diff --git a/tests/Plugins/TaskLists/HelperTest.php b/tests/Plugins/TaskLists/HelperTest.php
index 6a60180f0b..4197637a8b 100644
--- a/tests/Plugins/TaskLists/HelperTest.php
+++ b/tests/Plugins/TaskLists/HelperTest.php
@@ -27,7 +27,7 @@ public function testGetStats($text, $expected)
$this->assertEquals($expected, Helper::getStats($xml));
}
- public function getGetStatsTests()
+ public static function getGetStatsTests()
{
return [
[
@@ -75,7 +75,7 @@ public function testMarkTaskState($methodName, $xml, $id, $expected)
$this->assertEquals($expected, Helper::$methodName($xml, $id));
}
- public function getMarkTaskStateTests()
+ public static function getMarkTaskStateTests()
{
return [
[
diff --git a/tests/Plugins/TaskLists/ParserTest.php b/tests/Plugins/TaskLists/ParserTest.php
index a68b157075..7dc7d50160 100644
--- a/tests/Plugins/TaskLists/ParserTest.php
+++ b/tests/Plugins/TaskLists/ParserTest.php
@@ -24,7 +24,7 @@ public function setUp(): void
$this->configurator->Litedown;
}
- public function getParsingTests()
+ public static function getParsingTests()
{
return self::fixTests([
[
@@ -85,7 +85,7 @@ function ($configurator)
]);
}
- public function getRenderingTests()
+ public static function getRenderingTests()
{
return self::fixTests([
[
diff --git a/tests/Test.php b/tests/Test.php
index fdae1f9a61..c7183b0cbf 100644
--- a/tests/Test.php
+++ b/tests/Test.php
@@ -17,22 +17,6 @@ protected function setUp(): void
$this->configurator = new Configurator;
}
- public function __call($methodName, $args)
- {
- // Compatibility map for PHPUnit <9
- $map = [
- 'assertDoesNotMatchRegularExpression' => 'assertNotRegExp',
- 'assertFileDoesNotExist' => 'assertFileNotExists',
- 'assertMatchesRegularExpression' => 'assertRegExp'
- ];
- if (!isset($map[$methodName]))
- {
- throw new RuntimeException("Unknown method '$methodName'");
- }
-
- return call_user_func_array([$this, $map[$methodName]], $args);
- }
-
public static function tearDownAfterClass(): void
{
foreach (self::$tmpFiles as $filepath)
@@ -199,11 +183,6 @@ public function tempnam()
return $filepath;
}
- protected function runClosure($closure)
- {
- return $closure();
- }
-
protected static function ws($template)
{
return preg_replace('(>\\n\\s*<)', '><', trim($template));
diff --git a/tests/Utils/Http/Clients/AbstractTest.php b/tests/Utils/Http/Clients/AbstractTestClass.php
similarity index 98%
rename from tests/Utils/Http/Clients/AbstractTest.php
rename to tests/Utils/Http/Clients/AbstractTestClass.php
index 51d6839572..9a5b679bdc 100644
--- a/tests/Utils/Http/Clients/AbstractTest.php
+++ b/tests/Utils/Http/Clients/AbstractTestClass.php
@@ -4,7 +4,7 @@
use s9e\TextFormatter\Tests\Test;
-abstract class AbstractTest extends Test
+abstract class AbstractTestClass extends Test
{
abstract protected function getInstance();
diff --git a/tests/Utils/Http/Clients/CachedTest.php b/tests/Utils/Http/Clients/CachedTest.php
index 97d852cabc..aa20c233c3 100644
--- a/tests/Utils/Http/Clients/CachedTest.php
+++ b/tests/Utils/Http/Clients/CachedTest.php
@@ -8,7 +8,7 @@
/**
* @covers s9e\TextFormatter\Utils\Http\Clients\Cached
*/
-class CachedTest extends AbstractTest
+class CachedTest extends AbstractTestClass
{
public static function tearDownAfterClass(): void
{
diff --git a/tests/Utils/Http/Clients/CurlTest.php b/tests/Utils/Http/Clients/CurlTest.php
index 0b3eb1a2ac..f326a8ef5b 100644
--- a/tests/Utils/Http/Clients/CurlTest.php
+++ b/tests/Utils/Http/Clients/CurlTest.php
@@ -4,7 +4,7 @@
use s9e\TextFormatter\Utils\Http\Clients\Curl;
-class CurlTest extends AbstractTest
+class CurlTest extends AbstractTestClass
{
/**
* @beforeClass
diff --git a/tests/Utils/Http/Clients/NativeTest.php b/tests/Utils/Http/Clients/NativeTest.php
index 9c11256cd9..f7b06b8d1d 100644
--- a/tests/Utils/Http/Clients/NativeTest.php
+++ b/tests/Utils/Http/Clients/NativeTest.php
@@ -4,7 +4,7 @@
use s9e\TextFormatter\Utils\Http\Clients\Native;
-class NativeTest extends AbstractTest
+class NativeTest extends AbstractTestClass
{
protected function getInstance()
{
diff --git a/tests/UtilsTest.php b/tests/UtilsTest.php
index 7e7a0f643e..20fcc1f16e 100644
--- a/tests/UtilsTest.php
+++ b/tests/UtilsTest.php
@@ -19,7 +19,7 @@ public function testEncodeUnicodeSupplementaryCharacters($original, $expected)
$this->assertSame($expected, Utils::encodeUnicodeSupplementaryCharacters($original));
}
- public function getEncodeUnicodeSupplementaryCharactersTests()
+ public static function getEncodeUnicodeSupplementaryCharactersTests()
{
return [
[
@@ -39,7 +39,7 @@ public function testGetAttributeValues($xml, $tagName, $attrName, $expected)
$this->assertSame($expected, Utils::getAttributeValues($xml, $tagName, $attrName));
}
- public function getGetAttributeValuesTests()
+ public static function getGetAttributeValuesTests()
{
return [
[
@@ -102,7 +102,7 @@ public function testRemoveFormatting($original, $expected)
$this->assertSame($expected, Utils::removeFormatting($original));
}
- public function getRemoveFormattingTests()
+ public static function getRemoveFormattingTests()
{
return [
[
@@ -145,7 +145,7 @@ public function testRemoveTag($original, $args, $expected)
);
}
- public function getRemoveTagTests()
+ public static function getRemoveTagTests()
{
return [
[
@@ -210,7 +210,7 @@ public function testReplaceAttributes($original, $expected, $tagName, $callback)
$this->assertSame($expected, Utils::replaceAttributes($original, $tagName, $callback));
}
- public function getReplaceAttributesTests()
+ public static function getReplaceAttributesTests()
{
return [
[