Hi again,
I currently got around the bugs I described before (even I really would
like to have them fixed officially), but now got stuck with how to use
the test code I got from bake:
<?php
loadModelTest();
class UserTestCase extends UnitTestCase
{
var $object = null;
function setUp()
{
$this->object = new User();
}
function tearDown()
{
unset($this->object);
}
function testMyfunction()
{
$a = $this->object->test();
$this->assertEqual( "abcf", $a );
}
}
?>
"loadModelTest()" is not found (can't blame PHP, as even Google cannot
find it), but when I just leave it out, the class "User" is not found.
Telling the TestSuite how to use it via "var $uses = array(...)" is not
working.
So, what's the offical way? I currently find it very disturbing, that
the TestSuite is something external that is so badly integrated into
the current CakePHP release. Any plans on changing that?
Thanks,
Dirk
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---