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 |
agree, will email you now :D
@augustohp i sent some skype messages since i couldn't locate your email :'(
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a product of an hour of pai programmin between me and @alganet. =D
Hey, let's get in touch to do the into on Respect if you need any help! I would like to discuss also a LATAM PHP event from the comunity as we already talked before, this will take some more time so we better start planning something on that also :)