From f17dfe3652377c7a4e3df8e20df1464bf25fc08a Mon Sep 17 00:00:00 2001 From: Julian Karhoff Date: Fri, 12 Jun 2015 16:14:27 +0200 Subject: [PATCH] Change PSR-0 to PSR-4 Add autoloading for testsuite from composer. --- .gitignore | 3 +++ composer.json | 5 ++++- phpunit.xml.dist | 11 ++++++++++- Parsedown.php => src/Parsedown.php | 0 test/bootstrap.php | 3 --- 5 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 .gitignore rename Parsedown.php => src/Parsedown.php (100%) delete mode 100644 test/bootstrap.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a305491 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/vendor +/.idea +composer.lock \ No newline at end of file diff --git a/composer.json b/composer.json index 1439b82..f0b428d 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,10 @@ "homepage": "http://erusev.com" } ], + "require-dev": { + "phpunit/phpunit": "~4.0" + }, "autoload": { - "psr-0": {"Parsedown": ""} + "psr-4": {"": "src/"} } } \ No newline at end of file diff --git a/phpunit.xml.dist b/phpunit.xml.dist index b2d5e9d..0dfa222 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,5 +1,14 @@ - + test/ParsedownTest.php diff --git a/Parsedown.php b/src/Parsedown.php similarity index 100% rename from Parsedown.php rename to src/Parsedown.php diff --git a/test/bootstrap.php b/test/bootstrap.php deleted file mode 100644 index 5f264d2..0000000 --- a/test/bootstrap.php +++ /dev/null @@ -1,3 +0,0 @@ -