cake test runs the core test shell
whereas you have a test task; as far as I know tasks are run by shells
and you should call a command of a shell which in turn calls a task
for more info read the example there is helloword
http://book.cakephp.org/2.0/en/console-and-shells.html#Shell::$tasks
- S
On 21 January 2012 10:25, Borja DomÃnguez <iam.n3uro@gmail.com> wrote:
<?phpclass TestTask extends Shell {function main() {$this->out('Hello world.');}function execute() {$this->out('Hello world 2.');}}
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment