Ticket Details

2 failures in lithium\tests\cases\core\LibrariesTest::testCaseSensitivePathLookups

BUG Ticket (closed)

2 assertions in the unit test lithium\tests\cases\core\LibrariesTest::testCaseSensitivePathLookups fail on an ext3 filesystem. Cited below with Xdebug traces of the relevant calls to Libraries::path().

Assertion 'assertEqual' failed in lithium\tests\cases\core\LibrariesTest::testCaseSensitivePathLookups() on line 362:
expected: '(string) /home/matt/Documents/projects/lithium/libraries/lithium/template/view.php'
result: '(boolean)'

Xdebug trace:
{{{
-> lithium\core\Libraries::path($class = '\\lithium\\template\\view', $options = ???) /home/matt/Documents/projects/lithium/libraries/lithium/tests/cases/core/LibrariesTest.php:362
  -> ltrim('\\lithium\\template\\view', '\\') /home/matt/Documents/projects/lithium/libraries/lithium/core/Libraries.php:399
   >=> 'lithium\\template\\view'
  -> strpos('lithium\\template\\view', 'lithium\\') /home/matt/Documents/projects/lithium/libraries/lithium/core/Libraries.php:408
   >=> 0
  -> strlen('lithium\\') /home/matt/Documents/projects/lithium/libraries/lithium/core/Libraries.php:417
   >=> 8
  -> substr('lithium\\template\\view', 8) /home/matt/Documents/projects/lithium/libraries/lithium/core/Libraries.php:417
   >=> 'template\\view'
  -> str_replace('\\', '/', 'template\\view') /home/matt/Documents/projects/lithium/libraries/lithium/core/Libraries.php:417
   >=> 'template/view'
  -> realpath('/home/matt/Documents/projects/lithium/libraries/lithium/template/view.php') /home/matt/Documents/projects/lithium/libraries/lithium/core/Libraries.php:421
   >=> FALSE
 >=> FALSE
}}}

Assertion 'assertEqual' failed in lithium\tests\cases\core\LibrariesTest::testCaseSensitivePathLookups() on line 364:
expected: '(string) /home/matt/Documents/projects/lithium/libraries/lithium/template/view.php'
result: '(boolean)'

Xdebug trace:
{{{
-> lithium\core\Libraries::path($class = 'lithium\\template\\view', $options = ???) /home/matt/Documents/projects/lithium/libraries/lithium/tests/cases/core/LibrariesTest.php:364
  -> ltrim('lithium\\template\\view', '\\') /home/matt/Documents/projects/lithium/libraries/lithium/core/Libraries.php:399
   >=> 'lithium\\template\\view'
 >=> FALSE
}}}
on 07.11.10 reported by: elazar owned by: nate

Updates

on 07.11.10 by elazar
  • type was changed to bug
on 07.11.10 by elazar
  • description was changed
on 08.24.10 by ddebernardy
  • id was changed to 160
  • number was changed to 117
  • priority was changed to normal
Possibly related:

http://rad-dev.org/lithium/tickets/view/133
(fixed) on 10.09.10 by nate
  • owner was changed to nate
  • status was changed to closed
  • resolution was changed to fixed
Fixed by jperras, who removed the tests, which weren't really valid or useful anyway.