Skip to content

Commit

Permalink
restructure testing and update support files
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul M. Jones committed Mar 26, 2015
1 parent 8e167c9 commit 7d74054
Show file tree
Hide file tree
Showing 35 changed files with 25 additions and 47 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
/composer.lock
/vendor
6 changes: 5 additions & 1 deletion .travis.yml
Expand Up @@ -5,8 +5,12 @@ php:
- 5.5
- 5.6
- hhvm
- 7
script:
- phpunit -c tests/unit/ --coverage-clover=coverage.clover
- phpunit --coverage-clover=coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
tools:
external_code_coverage:
runs: 6
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -26,7 +26,7 @@ Finally, please note that this package is intended for use as a **dependency inj

### Installation

This library requires PHP 5.3 or later, and has no userland dependencies.
This library requires PHP 5.3 or later; we recommend using the latest available version of PHP as a matter of principle. It has no userland dependencies.

It is installable and autoloadable via Composer as [aura/di](https://packagist.org/packages/aura/di).

Expand All @@ -38,9 +38,10 @@ Alternatively, [download a release](https://github.com/auraphp/Aura.Di/releases)
[![Code Coverage](https://scrutinizer-ci.com/g/auraphp/Aura.Di/badges/coverage.png?b=develop-2)](https://scrutinizer-ci.com/g/auraphp/Aura.Di/)
[![Build Status](https://travis-ci.org/auraphp/Aura.Di.png?branch=develop-2)](https://travis-ci.org/auraphp/Aura.Di)

To run the unit tests at the command line, issue `phpunit -c tests/unit/`. (This requires [PHPUnit][] to be available as `phpunit`.)
To run the unit tests at the command line, issue `phpunit` at the package root. (This requires [PHPUnit][] to be available as `phpunit` and [Composer][] to be available as `composer`.)

[PHPUnit]: http://phpunit.de/manual/
[Composer]: http://getcomposer.org/

This library attempts to comply with [PSR-1][], [PSR-2][], and [PSR-4][]. If
you notice compliance oversights, please send a patch via pull request.
Expand Down
5 changes: 5 additions & 0 deletions composer.json
Expand Up @@ -25,6 +25,11 @@
"Aura\\Di\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Aura\\Di\\": "tests/"
}
},
"extra": {
"aura": {
"type": "library"
Expand Down
7 changes: 7 additions & 0 deletions phpunit.php
@@ -0,0 +1,7 @@
<?php
error_reporting(E_ALL);
$autoloader = __DIR__ . '/vendor/autoload.php';
if (! file_exists($autoloader)) {
passthru('composer install');
}
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.
@@ -1,7 +1,7 @@
<?php
namespace Aura\Di\_Config;

class ContainerTest extends AbstractContainerTest
class ContainerConfigTest extends AbstractContainerTest
{
protected function getConfigClasses()
{
Expand Down
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/container/bootstrap.php

This file was deleted.

2 changes: 0 additions & 2 deletions tests/container/phpunit.sh

This file was deleted.

7 changes: 0 additions & 7 deletions tests/container/phpunit.xml

This file was deleted.

File renamed without changes.
16 changes: 0 additions & 16 deletions tests/unit/bootstrap.php

This file was deleted.

0 comments on commit 7d74054

Please sign in to comment.