An open API service indexing awesome lists of open source software.

https://github.com/ailixter/aiixtest

php test snippets runner.
https://github.com/ailixter/aiixtest

testing

Last synced: over 1 year ago
JSON representation

php test snippets runner.

Awesome Lists containing this project

README

          

# aiixtest #

## PHP test snippets runner

Yes, "snippets" means snippets. *Any valid php file* could be run, its $vars
are printed and its return remembered and analysed.

## Installation ##

```
$ git clone https://github.com/ailixter/aiixtest.git
cd aiixtest
$ php aiixtest.php
```
or
```
$ php composer require-dev ailixter/aiixtest
$ ./vendor/bin/aiixtest.php
```

[archive could just be downloaded](https://github.com/ailixter/aiixtest/archive/master.zip) and unarchived.

## Example:
```
o==============================================================================o
| test/argv.php |
o==============================================================================o
1| 'php',
);

$argv: array (
0 => 'C:\\Work\\php\\aiixtest\\aiixtest.php',
1 => 'php',
);

$arg: false;
```

All what it needs is a test directory, which structure follows:
```
my-tests
|
\-init
| |
| \-(initialization files)*
|
\-test
|
\-(test files)+
```
Then a testing could be started with:
```
$ cd my-project
$ php aiixtest.php my-tests
```
See even more [at the wiki](https://github.com/ailixter/aiixtest/wiki)