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

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 !
Reply
#2

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

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




Theme © iAndrew 2016 - Forum software by © MyBB