I have a plugin in Symfony 1.4 and I have created for him some tests put them in ROOT/myPlugin/test/unit/MyTest.php
The plugin was generated with sfTaskExtraPlugin
.
The content of MyTest.php
is:
<?php
require_once dirname(__FILE__).'/../bootstrap/unit.php';
$t = new lime_test(1);
$r = new My();
$v = $r->getSomething(2);
$t->is($v, true);
?>
When I run ./symfony test:unit Rights
the response is >> test no tests found
However if I copy MyTest.php
file in ROOT/test/unit
the command ./symfony test:unit Rights
is working.
The plugin is enabled in ProjectConfiguration.class.php
Why the test are not working if I write them in plugin?