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.
- Host: GitHub
- URL: https://github.com/ailixter/aiixtest
- Owner: ailixter
- License: gpl-3.0
- Created: 2015-08-06T20:10:28.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-03-26T13:51:28.000Z (over 4 years ago)
- Last Synced: 2025-01-18T00:30:47.766Z (over 1 year ago)
- Topics: testing
- Language: PHP
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)