joomla/joomla-platform — pull request #1748 by fanno (2012-12-10 13:15:36+00:00)
Title: fixing tested for windows system

This pull request is not done yet, i am still having some issues with the tester

21) JFormTest::testAddRulePath
Line:142 The libraries rule path should be included by default.
Failed asserting that false is true.

C:\Users\fanno\data\Projects\workspaces\phpstorm\joomla-platform\tests\suites\unit\joomla\form\JFormTest.php:143

now the issue is this ..

$valid = JPATH_PLATFORM . '/joomla/form/rules';

$valid is (C:\Users\fanno\data\Projects\workspaces\phpstorm\joomla-platform\libraries/joomla/form/rules)

and the path inside $paths is

C:\Users\fanno\data\Projects\workspaces\phpstorm\joomla-platform\libraries\joomla\form/rules

this comes from
https://github.com/fanno/joomla-platform/blob/staging/libraries/joomla/form/helper.php#L302

I am well aware that the user of DS is not needed anymore, however it complicates the testing

it could posible be solved by doing something like

$valid = realpath(JPATH_PLATFORM . '/joomla/form').'/rules';

however i think it is ugly but it it works it works ...

is this how the test should be made to look ? or how do you want to deal with it ?