From b0f477711de3052041072897510e690975aa37ce Mon Sep 17 00:00:00 2001 From: Laurent Minguet Date: Thu, 2 Feb 2023 16:50:45 +0100 Subject: [PATCH] better unit tests --- {src/Tests => Tests}/AbstractTest.php | 0 .../CrossVersionCompatibility/AbstractTestCase.php | 0 .../CssConverterTestCase.php | 0 .../ExceptionFormatterTestCase.php | 0 .../CrossVersionCompatibility/HtmlTestCase.php | 0 .../PhpUnit5/AbstractTestCase.php | 0 .../PhpUnit5/CssConverterTestCase.php | 0 .../PhpUnit5/ExceptionFormatterTestCase.php | 0 .../PhpUnit5/HtmlTestCase.php | 0 .../PhpUnit5/SvgDrawerTestCase.php | 0 .../PhpUnit5/TagParserTestCase.php | 0 .../PhpUnit5/TextParserTestCase.php | 0 .../PhpUnit9/AbstractTestCase.php | 0 .../PhpUnit9/AssertContains.php | 0 .../PhpUnit9/CssConverterTestCase.php | 0 .../PhpUnit9/ExceptionFormatterTestCase.php | 0 .../PhpUnit9/HtmlTestCase.php | 0 .../PhpUnit9/SvgDrawerTestCase.php | 0 .../PhpUnit9/TagParserTestCase.php | 0 .../PhpUnit9/TextParserTestCase.php | 0 .../CrossVersionCompatibility/SvgDrawerTestCase.php | 0 .../CrossVersionCompatibility/TagParserTestCase.php | 0 .../TextParserTestCase.php | 0 .../CrossVersionCompatibility/bootstrap.php | 2 +- {src/Tests => Tests}/CssConverterTest.php | 0 {src/Tests => Tests}/Debug/DebugTest.php | 0 {src/Tests => Tests}/ExamplesTest.php | 2 +- .../Exception/ExceptionFormatterTest.php | 0 .../Exception/LongSentenceExceptionTest.php | 0 {src/Tests => Tests}/Html2PdfTest.php | 0 {src/Tests => Tests}/Image/BackgroundErrorTest.php | 0 {src/Tests => Tests}/Image/BackgroundOkTest.php | 0 {src/Tests => Tests}/Image/SrcErrorTest.php | 0 {src/Tests => Tests}/Image/SrcOkTest.php | 0 {src/Tests => Tests}/Image/res/logo.png | Bin {src/Tests => Tests}/LocaleTest.php | 0 {src/Tests => Tests}/Output/FileNameOkTest.php | 0 {src/Tests => Tests}/Parsing/HtmlLexerTest.php | 0 {src/Tests => Tests}/Parsing/HtmlTest.php | 0 {src/Tests => Tests}/Parsing/ParsingTest.php | 0 {src/Tests => Tests}/Parsing/TagParserTest.php | 0 {src/Tests => Tests}/Parsing/TextParserTest.php | 0 {src/Tests => Tests}/Parsing/TokenTest.php | 0 {src/Tests => Tests}/SvgDrawerTest.php | 0 {src/Tests => Tests}/Tag/DivTest.php | 0 {src/Tests => Tests}/Tag/MustHaveTagsTest.php | 0 {src/Tests => Tests}/Tag/Svg/CircleErrorTest.php | 0 {src/Tests => Tests}/Tag/Svg/EllipseErrorTest.php | 0 {src/Tests => Tests}/Tag/Svg/GErrorTest.php | 0 {src/Tests => Tests}/Tag/Svg/LineErrorTest.php | 0 {src/Tests => Tests}/Tag/Svg/PathErrorTest.php | 0 {src/Tests => Tests}/Tag/Svg/PathInvalidTest.php | 0 {src/Tests => Tests}/Tag/Svg/PolygonErrorTest.php | 0 {src/Tests => Tests}/Tag/Svg/PolylineErrorTest.php | 0 {src/Tests => Tests}/Tag/Svg/RectErrorTest.php | 0 {src/Tests => Tests}/Tag/TdTooLongTest.php | 0 composer.json | 5 +++++ phpunit.xml | 4 ++-- 58 files changed, 9 insertions(+), 4 deletions(-) rename {src/Tests => Tests}/AbstractTest.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/AbstractTestCase.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/CssConverterTestCase.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/ExceptionFormatterTestCase.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/HtmlTestCase.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/PhpUnit5/AbstractTestCase.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/PhpUnit5/CssConverterTestCase.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/PhpUnit5/ExceptionFormatterTestCase.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/PhpUnit5/HtmlTestCase.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/PhpUnit5/SvgDrawerTestCase.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/PhpUnit5/TagParserTestCase.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/PhpUnit5/TextParserTestCase.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/PhpUnit9/AbstractTestCase.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/PhpUnit9/AssertContains.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/PhpUnit9/CssConverterTestCase.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/PhpUnit9/ExceptionFormatterTestCase.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/PhpUnit9/HtmlTestCase.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/PhpUnit9/SvgDrawerTestCase.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/PhpUnit9/TagParserTestCase.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/PhpUnit9/TextParserTestCase.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/SvgDrawerTestCase.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/TagParserTestCase.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/TextParserTestCase.php (100%) rename {src/Tests => Tests}/CrossVersionCompatibility/bootstrap.php (83%) rename {src/Tests => Tests}/CssConverterTest.php (100%) rename {src/Tests => Tests}/Debug/DebugTest.php (100%) rename {src/Tests => Tests}/ExamplesTest.php (98%) rename {src/Tests => Tests}/Exception/ExceptionFormatterTest.php (100%) rename {src/Tests => Tests}/Exception/LongSentenceExceptionTest.php (100%) rename {src/Tests => Tests}/Html2PdfTest.php (100%) rename {src/Tests => Tests}/Image/BackgroundErrorTest.php (100%) rename {src/Tests => Tests}/Image/BackgroundOkTest.php (100%) rename {src/Tests => Tests}/Image/SrcErrorTest.php (100%) rename {src/Tests => Tests}/Image/SrcOkTest.php (100%) rename {src/Tests => Tests}/Image/res/logo.png (100%) rename {src/Tests => Tests}/LocaleTest.php (100%) rename {src/Tests => Tests}/Output/FileNameOkTest.php (100%) rename {src/Tests => Tests}/Parsing/HtmlLexerTest.php (100%) rename {src/Tests => Tests}/Parsing/HtmlTest.php (100%) rename {src/Tests => Tests}/Parsing/ParsingTest.php (100%) rename {src/Tests => Tests}/Parsing/TagParserTest.php (100%) rename {src/Tests => Tests}/Parsing/TextParserTest.php (100%) rename {src/Tests => Tests}/Parsing/TokenTest.php (100%) rename {src/Tests => Tests}/SvgDrawerTest.php (100%) rename {src/Tests => Tests}/Tag/DivTest.php (100%) rename {src/Tests => Tests}/Tag/MustHaveTagsTest.php (100%) rename {src/Tests => Tests}/Tag/Svg/CircleErrorTest.php (100%) rename {src/Tests => Tests}/Tag/Svg/EllipseErrorTest.php (100%) rename {src/Tests => Tests}/Tag/Svg/GErrorTest.php (100%) rename {src/Tests => Tests}/Tag/Svg/LineErrorTest.php (100%) rename {src/Tests => Tests}/Tag/Svg/PathErrorTest.php (100%) rename {src/Tests => Tests}/Tag/Svg/PathInvalidTest.php (100%) rename {src/Tests => Tests}/Tag/Svg/PolygonErrorTest.php (100%) rename {src/Tests => Tests}/Tag/Svg/PolylineErrorTest.php (100%) rename {src/Tests => Tests}/Tag/Svg/RectErrorTest.php (100%) rename {src/Tests => Tests}/Tag/TdTooLongTest.php (100%) 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