Skip to content

Commit 3c6caef

Browse files
authored
Merge pull request #4 from agallou/self_register
the extension now registers itselfs on atoum during autoload
2 parents d248896 + f9a6f03 commit 3c6caef

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

autoloader.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,8 @@
3535
;
3636
}
3737

38+
if (defined('mageekguy\atoum\scripts\runner') === true) {
39+
\mageekguy\atoum\scripts\runner::addConfigurationCallable(function($script, $runner) {
40+
$runner->addExtension(new \mageekguy\atoum\config\extension($script));
41+
});
42+
}

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
}
1313
],
1414
"require": {
15-
"atoum/atoum": ">=1.0.0 <7.0",
15+
"atoum/atoum": "^2.9",
1616
"symfony/yaml": "~2.6",
1717
"symfony/config": "~2.6",
1818
"symfony/dependency-injection": "~2.6"
1919
},
20+
"minimum-stability": "beta",
2021
"autoload": {
2122
"psr-4": {
2223
"mageekguy\\atoum\\config\\": "classes"

0 commit comments

Comments
 (0)