I'm not sure I understand. It should be a matter of getting PHPUnit
3.6, grabbing any dependencies (DBUnit primarily springs to mind
though I'm not sure if it's included) and just running "phpunit" in
the root directory of the platform instance. The dependencies can be a
bit of a trick however it'll give you error messages indicating
something you've missed that you can google.
On Wed, Jul 18, 2012 at 8:14 PM, marius <
mari...@gmail.com> wrote:
> JPATH_PLATFORM is defined as the directory inside the test directory, but that library directory is empty. Do we need to manualy copy the platform in this directory?
I'm not sure I understand the statement here. JPATH_PLATFORM is
defined as being in the libraries folder (/libraries) of the parent
directory of the tests folder (dirname(JPATH_TESTS)). I put some
var_dump's after each of the define lines and I got the following:
silversaviour:joomla-platform pasamio$ php tests/bootstrap.php
string(55) "/Users/pasamio/Sites/research/git/joomla-platform/tests"
string(59) "/Users/pasamio/Sites/research/git/joomla-platform/libraries"
So the tests directory is the tests directory and the libraries
directory is the libraries directory. The Joomla Platform should be
inside the libraries directory as indicated here and maps to the
following location (at least in my GIT checkout):
https://github.com/joomla/joomla-platform/tree/master/libraries/
There is no library/libraries directory inside the tests directory. My
copy of the "tests" directory reflects this version as shown on the
web:
https://github.com/joomla/joomla-platform/tree/master/tests
What happens when you run phpunit in the root directory of the
platform? Does your repository structure on disk reflect the structure
on the GitHub website?
Cheers,
Sam Moffatt
http://pasamio.id.au