From 296d10694ffa23005ea0c9afd64fe1d671f00f3b Mon Sep 17 00:00:00 2001 From: Trevor Suarez Date: Wed, 29 May 2013 14:09:29 -0400 Subject: [PATCH] Adding basic tests framework and composer file ... for PHPUnit dependency --- .gitignore | 5 +++++ composer.json | 24 ++++++++++++++++++++++++ phpunit.xml.dist | 23 +++++++++++++++++++++++ tests/bootstrap.php | 4 ++++ 4 files changed, 56 insertions(+) create mode 100644 .gitignore create mode 100644 composer.json create mode 100644 phpunit.xml.dist create mode 100644 tests/bootstrap.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d0574c4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +# Composer +composer.lock + +# Auto-generated documentation directory (phpDocumentor) +docs/ diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..6eadbdb --- /dev/null +++ b/composer.json @@ -0,0 +1,24 @@ +{ + "name": "onemightyroar/php-filemanager", + "description": "Object Oriented File Management", + "type": "library", + "keywords": ["PhpFileManger", "PhpFileObject", "SplFileObject", "files", "images", "oop"], + "homepage": "http://onemightyroar.com/", + "license": "MIT", + "authors": [ + { + "name": "Trevor N. Suarez", + "email": "trevor@onemightyroar.com", + "homepage": "http://about.me/tnsuarez" + } + ], + "require": { + "php": ">=5.4.0" + }, + "require-dev": { + "phpunit/phpunit": "3.7.x" + }, + "autoload": { + "psr-0": { "OneMightyRoar\\PhpFileManager\\": "src/" } + } +} diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..3b3ecc6 --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,23 @@ + + + + + + ./tests/ + + + + + ./src/ + + + diff --git a/tests/bootstrap.php b/tests/bootstrap.php new file mode 100644 index 0000000..df5cd30 --- /dev/null +++ b/tests/bootstrap.php @@ -0,0 +1,4 @@ +add('OneMightyRoar\PhpFileManager\Tests', __DIR__);