diff --git a/src/Tests/AbstractTest.php b/Tests/AbstractTest.php similarity index 100% rename from src/Tests/AbstractTest.php rename to Tests/AbstractTest.php diff --git a/src/Tests/CrossVersionCompatibility/AbstractTestCase.php b/Tests/CrossVersionCompatibility/AbstractTestCase.php similarity index 100% rename from src/Tests/CrossVersionCompatibility/AbstractTestCase.php rename to Tests/CrossVersionCompatibility/AbstractTestCase.php diff --git a/src/Tests/CrossVersionCompatibility/CssConverterTestCase.php b/Tests/CrossVersionCompatibility/CssConverterTestCase.php similarity index 100% rename from src/Tests/CrossVersionCompatibility/CssConverterTestCase.php rename to Tests/CrossVersionCompatibility/CssConverterTestCase.php diff --git a/src/Tests/CrossVersionCompatibility/ExceptionFormatterTestCase.php b/Tests/CrossVersionCompatibility/ExceptionFormatterTestCase.php similarity index 100% rename from src/Tests/CrossVersionCompatibility/ExceptionFormatterTestCase.php rename to Tests/CrossVersionCompatibility/ExceptionFormatterTestCase.php diff --git a/src/Tests/CrossVersionCompatibility/HtmlTestCase.php b/Tests/CrossVersionCompatibility/HtmlTestCase.php similarity index 100% rename from src/Tests/CrossVersionCompatibility/HtmlTestCase.php rename to Tests/CrossVersionCompatibility/HtmlTestCase.php diff --git a/src/Tests/CrossVersionCompatibility/PhpUnit5/AbstractTestCase.php b/Tests/CrossVersionCompatibility/PhpUnit5/AbstractTestCase.php similarity index 100% rename from src/Tests/CrossVersionCompatibility/PhpUnit5/AbstractTestCase.php rename to Tests/CrossVersionCompatibility/PhpUnit5/AbstractTestCase.php diff --git a/src/Tests/CrossVersionCompatibility/PhpUnit5/CssConverterTestCase.php b/Tests/CrossVersionCompatibility/PhpUnit5/CssConverterTestCase.php similarity index 100% rename from src/Tests/CrossVersionCompatibility/PhpUnit5/CssConverterTestCase.php rename to Tests/CrossVersionCompatibility/PhpUnit5/CssConverterTestCase.php diff --git a/src/Tests/CrossVersionCompatibility/PhpUnit5/ExceptionFormatterTestCase.php b/Tests/CrossVersionCompatibility/PhpUnit5/ExceptionFormatterTestCase.php similarity index 100% rename from src/Tests/CrossVersionCompatibility/PhpUnit5/ExceptionFormatterTestCase.php rename to Tests/CrossVersionCompatibility/PhpUnit5/ExceptionFormatterTestCase.php diff --git a/src/Tests/CrossVersionCompatibility/PhpUnit5/HtmlTestCase.php b/Tests/CrossVersionCompatibility/PhpUnit5/HtmlTestCase.php similarity index 100% rename from src/Tests/CrossVersionCompatibility/PhpUnit5/HtmlTestCase.php rename to Tests/CrossVersionCompatibility/PhpUnit5/HtmlTestCase.php diff --git a/src/Tests/CrossVersionCompatibility/PhpUnit5/SvgDrawerTestCase.php b/Tests/CrossVersionCompatibility/PhpUnit5/SvgDrawerTestCase.php similarity index 100% rename from src/Tests/CrossVersionCompatibility/PhpUnit5/SvgDrawerTestCase.php rename to Tests/CrossVersionCompatibility/PhpUnit5/SvgDrawerTestCase.php diff --git a/src/Tests/CrossVersionCompatibility/PhpUnit5/TagParserTestCase.php b/Tests/CrossVersionCompatibility/PhpUnit5/TagParserTestCase.php similarity index 100% rename from src/Tests/CrossVersionCompatibility/PhpUnit5/TagParserTestCase.php rename to Tests/CrossVersionCompatibility/PhpUnit5/TagParserTestCase.php diff --git a/src/Tests/CrossVersionCompatibility/PhpUnit5/TextParserTestCase.php b/Tests/CrossVersionCompatibility/PhpUnit5/TextParserTestCase.php similarity index 100% rename from src/Tests/CrossVersionCompatibility/PhpUnit5/TextParserTestCase.php rename to Tests/CrossVersionCompatibility/PhpUnit5/TextParserTestCase.php diff --git a/src/Tests/CrossVersionCompatibility/PhpUnit9/AbstractTestCase.php b/Tests/CrossVersionCompatibility/PhpUnit9/AbstractTestCase.php similarity index 100% rename from src/Tests/CrossVersionCompatibility/PhpUnit9/AbstractTestCase.php rename to Tests/CrossVersionCompatibility/PhpUnit9/AbstractTestCase.php diff --git a/src/Tests/CrossVersionCompatibility/PhpUnit9/AssertContains.php b/Tests/CrossVersionCompatibility/PhpUnit9/AssertContains.php similarity index 100% rename from src/Tests/CrossVersionCompatibility/PhpUnit9/AssertContains.php rename to Tests/CrossVersionCompatibility/PhpUnit9/AssertContains.php diff --git a/src/Tests/CrossVersionCompatibility/PhpUnit9/CssConverterTestCase.php b/Tests/CrossVersionCompatibility/PhpUnit9/CssConverterTestCase.php similarity index 100% rename from src/Tests/CrossVersionCompatibility/PhpUnit9/CssConverterTestCase.php rename to Tests/CrossVersionCompatibility/PhpUnit9/CssConverterTestCase.php diff --git a/src/Tests/CrossVersionCompatibility/PhpUnit9/ExceptionFormatterTestCase.php b/Tests/CrossVersionCompatibility/PhpUnit9/ExceptionFormatterTestCase.php similarity index 100% rename from src/Tests/CrossVersionCompatibility/PhpUnit9/ExceptionFormatterTestCase.php rename to Tests/CrossVersionCompatibility/PhpUnit9/ExceptionFormatterTestCase.php diff --git a/src/Tests/CrossVersionCompatibility/PhpUnit9/HtmlTestCase.php b/Tests/CrossVersionCompatibility/PhpUnit9/HtmlTestCase.php similarity index 100% rename from src/Tests/CrossVersionCompatibility/PhpUnit9/HtmlTestCase.php rename to Tests/CrossVersionCompatibility/PhpUnit9/HtmlTestCase.php diff --git a/src/Tests/CrossVersionCompatibility/PhpUnit9/SvgDrawerTestCase.php b/Tests/CrossVersionCompatibility/PhpUnit9/SvgDrawerTestCase.php similarity index 100% rename from src/Tests/CrossVersionCompatibility/PhpUnit9/SvgDrawerTestCase.php rename to Tests/CrossVersionCompatibility/PhpUnit9/SvgDrawerTestCase.php diff --git a/src/Tests/CrossVersionCompatibility/PhpUnit9/TagParserTestCase.php b/Tests/CrossVersionCompatibility/PhpUnit9/TagParserTestCase.php similarity index 100% rename from src/Tests/CrossVersionCompatibility/PhpUnit9/TagParserTestCase.php rename to Tests/CrossVersionCompatibility/PhpUnit9/TagParserTestCase.php diff --git a/src/Tests/CrossVersionCompatibility/PhpUnit9/TextParserTestCase.php b/Tests/CrossVersionCompatibility/PhpUnit9/TextParserTestCase.php similarity index 100% rename from src/Tests/CrossVersionCompatibility/PhpUnit9/TextParserTestCase.php rename to Tests/CrossVersionCompatibility/PhpUnit9/TextParserTestCase.php diff --git a/src/Tests/CrossVersionCompatibility/SvgDrawerTestCase.php b/Tests/CrossVersionCompatibility/SvgDrawerTestCase.php similarity index 100% rename from src/Tests/CrossVersionCompatibility/SvgDrawerTestCase.php rename to Tests/CrossVersionCompatibility/SvgDrawerTestCase.php diff --git a/src/Tests/CrossVersionCompatibility/TagParserTestCase.php b/Tests/CrossVersionCompatibility/TagParserTestCase.php similarity index 100% rename from src/Tests/CrossVersionCompatibility/TagParserTestCase.php rename to Tests/CrossVersionCompatibility/TagParserTestCase.php diff --git a/src/Tests/CrossVersionCompatibility/TextParserTestCase.php b/Tests/CrossVersionCompatibility/TextParserTestCase.php similarity index 100% rename from src/Tests/CrossVersionCompatibility/TextParserTestCase.php rename to Tests/CrossVersionCompatibility/TextParserTestCase.php diff --git a/src/Tests/CrossVersionCompatibility/bootstrap.php b/Tests/CrossVersionCompatibility/bootstrap.php similarity index 83% rename from src/Tests/CrossVersionCompatibility/bootstrap.php rename to Tests/CrossVersionCompatibility/bootstrap.php index c11df733..441c96e8 100644 --- a/src/Tests/CrossVersionCompatibility/bootstrap.php +++ b/Tests/CrossVersionCompatibility/bootstrap.php @@ -1,6 +1,6 @@ = 0) { class PHPUnit_Framework_TestCase extends PHPUnit\Framework\TestCase diff --git a/src/Tests/CssConverterTest.php b/Tests/CssConverterTest.php similarity index 100% rename from src/Tests/CssConverterTest.php rename to Tests/CssConverterTest.php diff --git a/src/Tests/Debug/DebugTest.php b/Tests/Debug/DebugTest.php similarity index 100% rename from src/Tests/Debug/DebugTest.php rename to Tests/Debug/DebugTest.php diff --git a/src/Tests/ExamplesTest.php b/Tests/ExamplesTest.php similarity index 98% rename from src/Tests/ExamplesTest.php rename to Tests/ExamplesTest.php index a496bbf7..041cbdd2 100644 --- a/src/Tests/ExamplesTest.php +++ b/Tests/ExamplesTest.php @@ -29,7 +29,7 @@ class ExamplesTest extends PHPUnit_Framework_TestCase */ protected function launchExample($example) { - $filename = dirname(dirname(dirname(__FILE__))).'/examples/'.$example.'.php'; + $filename = dirname(dirname(__FILE__)).'/examples/'.$example.'.php'; if (!is_file($filename)) { throw new \Exception('The filename of the example ['.$example.'] does not exist!'); } diff --git a/src/Tests/Exception/ExceptionFormatterTest.php b/Tests/Exception/ExceptionFormatterTest.php similarity index 100% rename from src/Tests/Exception/ExceptionFormatterTest.php rename to Tests/Exception/ExceptionFormatterTest.php diff --git a/src/Tests/Exception/LongSentenceExceptionTest.php b/Tests/Exception/LongSentenceExceptionTest.php similarity index 100% rename from src/Tests/Exception/LongSentenceExceptionTest.php rename to Tests/Exception/LongSentenceExceptionTest.php diff --git a/src/Tests/Html2PdfTest.php b/Tests/Html2PdfTest.php similarity index 100% rename from src/Tests/Html2PdfTest.php rename to Tests/Html2PdfTest.php diff --git a/src/Tests/Image/BackgroundErrorTest.php b/Tests/Image/BackgroundErrorTest.php similarity index 100% rename from src/Tests/Image/BackgroundErrorTest.php rename to Tests/Image/BackgroundErrorTest.php diff --git a/src/Tests/Image/BackgroundOkTest.php b/Tests/Image/BackgroundOkTest.php similarity index 100% rename from src/Tests/Image/BackgroundOkTest.php rename to Tests/Image/BackgroundOkTest.php diff --git a/src/Tests/Image/SrcErrorTest.php b/Tests/Image/SrcErrorTest.php similarity index 100% rename from src/Tests/Image/SrcErrorTest.php rename to Tests/Image/SrcErrorTest.php diff --git a/src/Tests/Image/SrcOkTest.php b/Tests/Image/SrcOkTest.php similarity index 100% rename from src/Tests/Image/SrcOkTest.php rename to Tests/Image/SrcOkTest.php diff --git a/src/Tests/Image/res/logo.png b/Tests/Image/res/logo.png similarity index 100% rename from src/Tests/Image/res/logo.png rename to Tests/Image/res/logo.png diff --git a/src/Tests/LocaleTest.php b/Tests/LocaleTest.php similarity index 100% rename from src/Tests/LocaleTest.php rename to Tests/LocaleTest.php diff --git a/src/Tests/Output/FileNameOkTest.php b/Tests/Output/FileNameOkTest.php similarity index 100% rename from src/Tests/Output/FileNameOkTest.php rename to Tests/Output/FileNameOkTest.php diff --git a/src/Tests/Parsing/HtmlLexerTest.php b/Tests/Parsing/HtmlLexerTest.php similarity index 100% rename from src/Tests/Parsing/HtmlLexerTest.php rename to Tests/Parsing/HtmlLexerTest.php diff --git a/src/Tests/Parsing/HtmlTest.php b/Tests/Parsing/HtmlTest.php similarity index 100% rename from src/Tests/Parsing/HtmlTest.php rename to Tests/Parsing/HtmlTest.php diff --git a/src/Tests/Parsing/ParsingTest.php b/Tests/Parsing/ParsingTest.php similarity index 100% rename from src/Tests/Parsing/ParsingTest.php rename to Tests/Parsing/ParsingTest.php diff --git a/src/Tests/Parsing/TagParserTest.php b/Tests/Parsing/TagParserTest.php similarity index 100% rename from src/Tests/Parsing/TagParserTest.php rename to Tests/Parsing/TagParserTest.php diff --git a/src/Tests/Parsing/TextParserTest.php b/Tests/Parsing/TextParserTest.php similarity index 100% rename from src/Tests/Parsing/TextParserTest.php rename to Tests/Parsing/TextParserTest.php diff --git a/src/Tests/Parsing/TokenTest.php b/Tests/Parsing/TokenTest.php similarity index 100% rename from src/Tests/Parsing/TokenTest.php rename to Tests/Parsing/TokenTest.php diff --git a/src/Tests/SvgDrawerTest.php b/Tests/SvgDrawerTest.php similarity index 100% rename from src/Tests/SvgDrawerTest.php rename to Tests/SvgDrawerTest.php diff --git a/src/Tests/Tag/DivTest.php b/Tests/Tag/DivTest.php similarity index 100% rename from src/Tests/Tag/DivTest.php rename to Tests/Tag/DivTest.php diff --git a/src/Tests/Tag/MustHaveTagsTest.php b/Tests/Tag/MustHaveTagsTest.php similarity index 100% rename from src/Tests/Tag/MustHaveTagsTest.php rename to Tests/Tag/MustHaveTagsTest.php diff --git a/src/Tests/Tag/Svg/CircleErrorTest.php b/Tests/Tag/Svg/CircleErrorTest.php similarity index 100% rename from src/Tests/Tag/Svg/CircleErrorTest.php rename to Tests/Tag/Svg/CircleErrorTest.php diff --git a/src/Tests/Tag/Svg/EllipseErrorTest.php b/Tests/Tag/Svg/EllipseErrorTest.php similarity index 100% rename from src/Tests/Tag/Svg/EllipseErrorTest.php rename to Tests/Tag/Svg/EllipseErrorTest.php diff --git a/src/Tests/Tag/Svg/GErrorTest.php b/Tests/Tag/Svg/GErrorTest.php similarity index 100% rename from src/Tests/Tag/Svg/GErrorTest.php rename to Tests/Tag/Svg/GErrorTest.php diff --git a/src/Tests/Tag/Svg/LineErrorTest.php b/Tests/Tag/Svg/LineErrorTest.php similarity index 100% rename from src/Tests/Tag/Svg/LineErrorTest.php rename to Tests/Tag/Svg/LineErrorTest.php diff --git a/src/Tests/Tag/Svg/PathErrorTest.php b/Tests/Tag/Svg/PathErrorTest.php similarity index 100% rename from src/Tests/Tag/Svg/PathErrorTest.php rename to Tests/Tag/Svg/PathErrorTest.php diff --git a/src/Tests/Tag/Svg/PathInvalidTest.php b/Tests/Tag/Svg/PathInvalidTest.php similarity index 100% rename from src/Tests/Tag/Svg/PathInvalidTest.php rename to Tests/Tag/Svg/PathInvalidTest.php diff --git a/src/Tests/Tag/Svg/PolygonErrorTest.php b/Tests/Tag/Svg/PolygonErrorTest.php similarity index 100% rename from src/Tests/Tag/Svg/PolygonErrorTest.php rename to Tests/Tag/Svg/PolygonErrorTest.php diff --git a/src/Tests/Tag/Svg/PolylineErrorTest.php b/Tests/Tag/Svg/PolylineErrorTest.php similarity index 100% rename from src/Tests/Tag/Svg/PolylineErrorTest.php rename to Tests/Tag/Svg/PolylineErrorTest.php diff --git a/src/Tests/Tag/Svg/RectErrorTest.php b/Tests/Tag/Svg/RectErrorTest.php similarity index 100% rename from src/Tests/Tag/Svg/RectErrorTest.php rename to Tests/Tag/Svg/RectErrorTest.php diff --git a/src/Tests/Tag/TdTooLongTest.php b/Tests/Tag/TdTooLongTest.php similarity index 100% rename from src/Tests/Tag/TdTooLongTest.php rename to Tests/Tag/TdTooLongTest.php diff --git a/composer.json b/composer.json index 208d9e1c..c0522717 100644 --- a/composer.json +++ b/composer.json @@ -29,5 +29,10 @@ "psr-4": { "Spipu\\Html2Pdf\\": "src/" } + }, + "autoload-dev": { + "psr-4": { + "Spipu\\Html2Pdf\\Tests\\": "Tests/" + } } } diff --git a/phpunit.xml b/phpunit.xml index a6603358..cd3519ed 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,7 +1,7 @@ - src/Tests + Tests