Created
August 25, 2012 03:48
-
-
Save augustohp/3460353 to your computer and use it in GitHub Desktop.
Storing tests in DI container [Work in Progress]
This file contains hidden or 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
<?php | |
use Respect\Config\Container; | |
$config = new Container('config/tests.ini'); | |
$tests = $config->tests; //Respect\Test\Suite | |
print $tests->description; // INI property | |
foreach ($tests->find() as $result) { //Respect\Test\Unit | |
print $result; //Respect\Test\Result | |
} | |
foreach ($tests->find('payment paypal -creditcard') as $result) { // Respect\Test\Suite | |
print $result; | |
} | |
print $tests->results; //Respect\Test\Summary |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
agree, will email you now :D