I'm new to unit testing and especially cakephp unit testing, so I've
come across a few confusing things. Please excuse me if I'm
overlooking something obvious. To simplify things, I dropped fresh
installs of cake on two different php servers at the office. One runs
PHP 5.2.1 and the other 5.0.4. Both point to the same mysql db.

On the PHP 5.0.4 install, I get this error when trying to run all
tests:
--------------------------------------------------------------------------------------------
"Fatal error: Call to undefined method ReflectionClass::hasMethod()
in /Library/WebServer/Documents/cake1.2.tests/vendors/simpletest/
reflection_php5.php on line 223"

On the PHP 5.2.1 install, This is the result:
--------------------------------------------------------------------------------------------
All Core Tests

    * Failed
      Expected false, got [Boolean: true] at [/var/www/html/
cake1.2.tests/cake/tests/cases/basics.test.php line 70]
      /var/www/html/cake1.2.tests/cake/tests/cases/basics.test.php ->
BasicsTest -> testUses
    * Failed
      Expected false, got [Boolean: true] at [/var/www/html/
cake1.2.tests/cake/tests/cases/basics.test.php line 71]
      /var/www/html/cake1.2.tests/cake/tests/cases/basics.test.php ->
BasicsTest -> testUses
    * Skipped Memcache is not installed or configured properly at [/
var/www/html/cake1.2.tests/cake/tests/cases/libs/cache/
memcache.test.php line 55]
    * Skipped Xcache is not installed or configured properly at [/var/
www/html/cake1.2.tests/cake/tests/cases/libs/cache/xcache.test.php
line 50]
    * Skipped Apc is not installed or configured properly at [/var/www/
html/cake1.2.tests/cake/tests/cases/libs/cache/apc.test.php line 50]
    * Skipped OverloadableTest not implemented at [/var/www/html/
cake1.2.tests/cake/tests/cases/libs/overloadable.test.php line 44]
    * Failed
      Equal expectation fails with member [singularized] as key list
[] does not match key list [SomePages, Pages, Timesheets,
TestDispatchPages, OtherPages, MyPlugin, ArticlesTest, Tests,
SomePosts, TestCachedPages] at [/var/www/html/cake1.2.tests/cake/tests/
cases/libs/inflector.test.php line 61]
      /var/www/html/cake1.2.tests/cake/tests/cases/libs/
inflector.test.php -> InflectorTest -> testInstantiation

      Fatal error: Nesting level too deep - recursive dependency? in /
var/www/html/cake1.2.tests/vendors/simpletest/expectation.php on line
246


I assume first that a release isn't supposed to fail test suites
included with the source on two different php installs. Is there
something I should be checking for?

Additionally, I've noticed some failures leave test_suite tables. Even
worse, when re-running the test, it assumes takes aren't there that
are and vice versa. Again, is this something errant on my end?

Thanks in advance for pointing me in the right direction.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to