Jeurgen, Testing shell classes is a bit tricky right now
App::import() currently does not let you target shells so you have to
include them regular php style. We are working on ways of improving
this though, as testing shells is a big pain right now.
-Mark
On Sep 16, 9:45 am, JuergenRiemer <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I do the following to unit test a shell script
> [ learn.test.php ] put in a folder "tests/cases/shells" (that I
> created)
> <?php
> App::import( 'Shell', 'Learn' );
>
> class LearnShellTest extends CakeTestCase {
>
> function setUp(){
> $this->LearnShell = new LearnShell();
> }
>
> function testOne(){
>
> $this->LearnShell->testFunc();
> }}
>
> ?>
>
> how ever it does not find the Class LearnShell.
> Now before I get deeper into it... can anyone point me to the proper
> solution?
> thx
> Jeurgen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---