Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve default config file templates.
- Loading branch information
Showing
2 changed files
with
45 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,37 @@ | ||
<?php | ||
|
||
// THIS FILE WAS AUTO GENERATED BY ATOUM. | ||
// | ||
// Config | ||
// This file will automatically be included before EACH run. | ||
// | ||
// Use this file to: | ||
// - configure atoum | ||
// - or anything that needs to be done before EACH run. | ||
// | ||
// More information on documentation: | ||
// [en] http://docs.atoum.org/en/chapter3.html#Configuration-files | ||
// [fr] http://docs.atoum.org/fr/chapter3.html#Fichier-de-configuration | ||
/* | ||
This file will automatically be included before EACH run. | ||
|
||
Use it to configure atoum or anything that needs to be done before EACH run. | ||
|
||
More information on documentation: | ||
[en] http://docs.atoum.org/en/chapter3.html#Configuration-files | ||
[fr] http://docs.atoum.org/fr/chapter3.html#Fichier-de-configuration | ||
*/ | ||
|
||
use \mageekguy\atoum; | ||
|
||
$report = $script->addDefaultReport(); | ||
|
||
/////////// | ||
// LOGOS // | ||
/////////// | ||
// | ||
// /* | ||
// This will add the atoum logo before each run | ||
// */ | ||
// $cliReport->addField(new atoum\report\fields\runner\atoum\logo()); | ||
// | ||
// /* | ||
// This will add a green or red logo after each run depending on its status | ||
// */ | ||
// $cliReport->addField(new atoum\report\fields\runner\result\logo()); | ||
|
||
////////////// | ||
// COVERAGE // | ||
////////////// | ||
// | ||
// /* | ||
// Please replace in next line: | ||
// - "Project Name" by your project name | ||
// - /path/to/destination/directory by your destination directory path for html files. | ||
// */ | ||
// $coverageField = new atoum\report\fields\runner\coverage\html('Project Name', '/path/to/destination/directory'); | ||
// | ||
// /* | ||
// Please replace in next line http://url/of/web/site by the root url of your code coverage web site. | ||
// */ | ||
// $coverageField->setRootUrl('http://url/of/web/site'); | ||
// | ||
// $report->addField($coverageField); | ||
/* | ||
LOGO | ||
|
||
// This will add the atoum logo before each run. | ||
$report->addField(new atoum\report\fields\runner\atoum\logo()); | ||
|
||
// This will add a green or red logo after each run depending on its status. | ||
$report->addField(new atoum\report\fields\runner\result\logo()); | ||
*/ | ||
|
||
/* | ||
CODE COVERAGE SETUP | ||
|
||
// Please replace in next line "Project Name" by your project name and "/path/to/destination/directory" by your destination directory path for html files. | ||
$coverageField = new atoum\report\fields\runner\coverage\html('Project Name', '/path/to/destination/directory'); | ||
|
||
// Please replace in next line http://url/of/web/site by the root url of your code coverage web site. | ||
$coverageField->setRootUrl('http://url/of/web/site'); | ||
|
||
$report->addField($coverageField); | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,18 @@ | ||
<?php | ||
|
||
// THIS FILE WAS AUTO GENERATED BY ATOUM. | ||
// | ||
// Bootstrap | ||
// This file will automatically be included before EACH test. | ||
// | ||
// Use this file to: | ||
// - initialize the tested code, | ||
// - add autoloader, | ||
// - require mandatory file, | ||
// - or anything that needs to be done before EACH test. | ||
// | ||
// More information on documentation: | ||
// [en] http://docs.atoum.org/en/chapter3.html#Bootstrap-file | ||
// [fr] http://docs.atoum.org/fr/chapter3.html#Fichier-de-bootstrap | ||
/* | ||
This file will automatically be included before EACH test if -bf/--bootstrap-file argument is not used. | ||
|
||
//////////////// | ||
// AUTOLOADER // | ||
//////////////// | ||
// | ||
// /* | ||
// Composer | ||
// */ | ||
// require __DIR__ . '/vendor/autoload.php'; | ||
Use it to initialize the tested code, add autoloader, require mandatory file, or anything that needs to be done before EACH test. | ||
|
||
More information on documentation: | ||
[en] http://docs.atoum.org/en/chapter3.html#Bootstrap-file | ||
[fr] http://docs.atoum.org/fr/chapter3.html#Fichier-de-bootstrap | ||
*/ | ||
|
||
/* | ||
AUTOLOADER | ||
|
||
// composer | ||
require __DIR__ . '/vendor/autoload.php'; | ||
*/ |