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

will keep this in mind :D
nice usage man
hey do you guys pair program? i would like to perhaps make a video of intro on respect :D

@augustohp
Copy link
Author

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 :)

@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