Skip to content
Browse files

Add mageekguy\atoum\scripts\runner constant management to closes #71.

  • Loading branch information...
1 parent 77c9327 commit 5d21dbe413d66cada2fc66df7e246969dcc3ec42 @mageekguy mageekguy committed May 23, 2012
Showing with 8 additions and 1 deletion.
  1. +2 −0 bin/atoum
  2. +6 −1 scripts/runner.php
View
2 bin/atoum
@@ -1,6 +1,8 @@
#!/usr/bin/env php
<?php
+define('mageekguy\atoum\scripts\runner', __FILE__);
+
require_once __DIR__ . '/../scripts/runner.php';
?>
View
7 scripts/runner.php
@@ -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.
Something went wrong with that request. Please try again.