Skip to content

Commit

Permalink
Add mageekguy\atoum\scripts\runner constant management to closes #71.
Browse files Browse the repository at this point in the history
  • Loading branch information
mageekguy committed May 23, 2012
1 parent 77c9327 commit 5d21dbe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bin/atoum
@@ -1,6 +1,8 @@
#!/usr/bin/env php
<?php

define('mageekguy\atoum\scripts\runner', __FILE__);

require_once __DIR__ . '/../scripts/runner.php';

?>
7 changes: 6 additions & 1 deletion scripts/runner.php
Expand Up @@ -9,11 +9,16 @@

require_once __DIR__ . '/../classes/autoloader.php';

if (defined(__NAMESPACE__ . '\scripts\runner') === false)
{
define(__NAMESPACE__ . '\scripts\runner', __FILE__);
}

if (defined(__NAMESPACE__ . '\autorun') === false)
{
define(__NAMESPACE__ . '\autorun', true);

scripts\runner::autorun(__FILE__);
scripts\runner::autorun(constant(__NAMESPACE__ . '\scripts\runner'));
}

?>

0 comments on commit 5d21dbe

Please sign in to comment.