Skip to content

Commit

Permalink
update testing and autoloading
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul M. Jones committed Oct 11, 2015
1 parent 14e9d35 commit 17aeedb
Show file tree
Hide file tree
Showing 34 changed files with 19 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .gitignore
@@ -1,2 +1,2 @@
/tests/container/vendor
/tests/container/composer.*
/vendor
/composer.lock
2 changes: 1 addition & 1 deletion autoload.php
Expand Up @@ -12,7 +12,7 @@
),
"{$ns}\\" => array(
__DIR__ . '/src',
__DIR__ . '/tests/unit/src',
__DIR__ . '/tests',
),
);

Expand Down
5 changes: 5 additions & 0 deletions composer.json
Expand Up @@ -36,5 +36,10 @@
"ext/ldap": "For LDAP integration.",
"ext/imap": "For IMAP/POP/NNTP integration.",
"ircmaxell/password-compat": "Provides password_verify() for PHP versions earlier than 5.5"
},
"autoload-dev": {
"psr-4": {
"Aura\\Auth\\": "tests/"
}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions phpunit.php
@@ -0,0 +1,9 @@
<?php
error_reporting(E_ALL);
$autoloader = __DIR__ . '/vendor/autoload.php';
if (! file_exists($autoloader)) {
echo "Composer autoloader not found: $autoloader" . PHP_EOL;
echo "Please issue 'composer install' and try again." . PHP_EOL;
exit(1);
}
require $autoloader;
4 changes: 2 additions & 2 deletions tests/unit/phpunit.xml → phpunit.xml.dist
@@ -1,7 +1,7 @@
<phpunit bootstrap="./bootstrap.php">
<phpunit bootstrap="./phpunit.php">
<testsuites>
<testsuite>
<directory>./src</directory>
<directory>./tests</directory>
</testsuite>
</testsuites>
</phpunit>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 0 additions & 16 deletions tests/unit/bootstrap.php

This file was deleted.

0 comments on commit 17aeedb

Please sign in to comment.