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 27, 2015
1 parent 500e9d9 commit fec7ddb
Show file tree
Hide file tree
Showing 30 changed files with 10 additions and 26 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ 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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ although [PDO](http://php.net/PDO) in general is recommended.

### 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/sqlquery](https://packagist.org/packages/aura/sqlquery).

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

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`.)

[PHPUnit]: http://phpunit.de/manual/

Expand Down
6 changes: 1 addition & 5 deletions autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@

// what prefixes should be recognized?
$prefixes = array(
"{$ns}\_Config\\" => array(
__DIR__ . '/config',
__DIR__ . '/tests/container/src',
),
"{$ns}\\" => array(
__DIR__ . '/src',
__DIR__ . '/tests/unit/src',
__DIR__ . '/tests',
),
);

Expand Down
3 changes: 3 additions & 0 deletions phpunit.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php
error_reporting(E_ALL);
require __DIR__ . '/autoload.php';
4 changes: 2 additions & 2 deletions tests/unit/phpunit.xml → phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -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.
File renamed without changes.
16 changes: 0 additions & 16 deletions tests/unit/bootstrap.php

This file was deleted.

0 comments on commit fec7ddb

Please sign in to comment.