1

I have de follow code:

include 'simpletest/autorun.php';
include 'config_test.case.php'; // <-- problem

But it not works. I get:

Bad TestSuite [index.php] with error [No runnable test cases in [index.php]]

But if I put the Config class code directly (no "include"), it works. What can I do? Thx =)

Lucas
  • 11
  • 1

1 Answers1

2

Ensure you have the correct path to your test cases.

I also use the PHP autoLoader() function to auto-magically resolve my own class paths so they don't need to be inclcuded in the paths.

niggles
  • 1,010
  • 1
  • 9
  • 21
  • That is only a temporary solution, until I have the classes I need to create the MVC e organize everything in your place. Until then, what can I do to the tests work that way (or similar)? – Lucas Nov 26 '10 at 16:51