Skip to content

Instantly share code, notes, and snippets.

@augustohp
Created August 25, 2012 03:48
Show Gist options
  • Save augustohp/3460353 to your computer and use it in GitHub Desktop.
Save augustohp/3460353 to your computer and use it in GitHub Desktop.
Storing tests in DI container [Work in Progress]
<?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
@cordoval
Copy link

agree, will email you now :D

@cordoval
Copy link

@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