Skip to content

Commit

Permalink
Adding basic tests framework and composer file
Browse files Browse the repository at this point in the history
... for PHPUnit dependency
  • Loading branch information
Rican7 committed May 29, 2013
1 parent dfac7ad commit 296d106
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Composer
composer.lock

# Auto-generated documentation directory (phpDocumentor)
docs/
24 changes: 24 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
"homepage": "http://about.me/tnsuarez"
}
],
"require": {
"php": ">=5.4.0"
},
"require-dev": {
"phpunit/phpunit": "3.7.x"
},
"autoload": {
"psr-0": { "OneMightyRoar\\PhpFileManager\\": "src/" }
}
}
23 changes: 23 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="tests/bootstrap.php"
>
<testsuites>
<testsuite name="PhpFileManager Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory>./src/</directory>
</whitelist>
</filter>
</phpunit>
4 changes: 4 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php
// Load our autoloader, and add our Test class namespace
$autoloader = require( __DIR__ . '/../vendor/autoload.php' );
$autoloader->add('OneMightyRoar\PhpFileManager\Tests', __DIR__);

0 comments on commit 296d106

Please sign in to comment.