Welcome Guest, Not a member yet? Register   Sign In
Running core tests

Hi everyone !

I have install CodeIgniter 3, phpunit & ci-phpunit, all is good in the shell ( babun for Windows ) !
But when i launch a test like "Benchmark_test.php", it fails...

I simply go to the tests/codeigniter/core diretory, and launch this command :
phpunit Benchmark_test.php

I have a "Class CI_TestCase not found" error

What's wrong ??
Thanks !

The Bootstrap.php in the tests folder contains the includes of the mock objects, so you have to use that too.

$ phpunit -c ../../phpunit.xml Benchmark_test.php
You have to specify phpunit.xml.

Theme © iAndrew 2016 - Forum software by © MyBB