Hi all,
I just uploaded release 0.2.0 which features annotation support for
lime test scripts. Test scripts can now be written in the following
way:
<?php
include dirname(__FILE__).'/../bootstrap/unit.php';
$t = new lime_test_simple(2, new lime_output_color());
// @Before
$r = new Record();
// @Test
$r->setValue('Bumblebee');
$t->is($r->getValue(), 'Bumblebee', 'The setter works');
// @Test: The default value is "Foobar"
$t->is($r->getValue(), 'Foobar', 'The value is "Foobar" by default');
// @Test
$t->throws('RuntimeException');
$r->doSomething();
The readme is not yet up to date, but you can look at the tests and
inline documentation of lime_test_simple if you want to see more
examples. There are some more annotations that you will find there.
Have fun!
Bernhard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---