The official name is "atoum".
Just send an email to [email protected] to say that you want to contribute to atoum.
Moreover, you should read the CONTRIBUTING.md
file about coding convention.
The word class
is reserved by PHP, so it's not possible to use this name for a class.
In this case, the atoum convention is to prefix name with word php
.
There is an english and a french documentation available.
As a documentation is a continual work in progress, you're welcome to help us to improve it.
Moreover, atoum's unit test is the documentation.
You find them in the tests/
directory.
Here are some known issues :
- Try a
php -n atoum.phar
in a terminal.- If it works, the problem is in your PHP configuration.
- Try to remove
ioncube
extension, which seems not compatible with atoum. - If you use suhosin, you can also add
suhosin.executor.include.whitelist="phar"
to yourphp.ini
. - Try to add
detect_unicode=0
in your php.ini.
Use only require_once to include atoum.phar
in your scripts.
APC is "a free, open, and robust framework for caching and optimizing PHP intermediate code" distributed under the form of a PHP extension. When testing classes that use APC, you may get some failure messages showing that apc_fetch is unable to retrieve a value. As all PHP extension, APC has some configuration options to enable it:
apc.enabled
, whether to enable or disable APC,apc.enable_cli
, whether to enable or disable APC for PHP CLI.
Setting apc.enabled
to 1 in your CLI configuration does not do the trick: to avoid these failure messages, you have to set the apc.enable_cli
option to 1, otherwise, the extension won't be enabled for the PHP CLI version, which is used by atoum.
This file is used by PHAR to display useful information to the user in CLI, so using markdown in it is a bad idea.