Bug Report #3711
Unittest module breaks the userguide api browser
| Status: | Assigned | Start date: | 02/08/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | - | |||
| Target version: | Kohana v3.x - v3.1.5 | |||
| Points: |
Description
If you have the unittest module enabled the api browser in the userguide doesn't work.
ErrorException [ Fatal Error ]: Kohana_Unittest_Runner cannot implement PHPUnit_Framework_TestListener - it is not an interface
Related issues
History
Updated by Matt Button over 1 year ago
- Assignee set to Kiall Mac Innes
PHPUnit needs to be installed on the server
Updated by Isaiah DeRose-Wilson over 1 year ago
- Project changed from UnitTest to Kohana v3.x
Updated by Isaiah DeRose-Wilson over 1 year ago
- Category set to Web Site
Updated by Isaiah DeRose-Wilson over 1 year ago
This is actually two problems. phpunit isn't installed on the server and the userguide doesn't handle missing interfaces (it handles missing classes just fine).
Updated by Kiall Mac Innes over 1 year ago
- Status changed from New to Assigned
PHPUnit is installed and include paths are correct - yet this still gives the same error.
Updated by Kiall Mac Innes over 1 year ago
The issue is that the API browser isn't getting a pear autoloader bootstrapped .. therefore the class never gets included..
Updated by Kiall Mac Innes over 1 year ago
- Project changed from Kohana v3.x to Userguide
- Category deleted (
Web Site)
Updated by Jeremy Bush about 1 year ago
- Target version changed from v3.1.1 to v3.1.2
Updated by Jeremy Bush about 1 year ago
- Target version changed from v3.1.2 to v3.1.3
Updated by Jeremy Bush about 1 year ago
- Target version changed from v3.1.3 to v3.1.4
Updated by Matt Button 10 months ago
- Target version changed from v3.1.4 to v3.1.5
Updated by Chris Bandy 4 months ago
Adding require_once 'PHPUnit/Autoload.php' to unittest/init.php fixes this. Why doesn't the UnitTest module load its dependency, PHPUnit?
1 diff --git a/init.php b/init.php
2 index c40ba42..c770325 100644
3 --- a/init.php
4 +++ b/init.php
5 @@ -9,6 +9,8 @@ if (class_exists('PHPUnit_Util_Filter', FALSE) OR function_exists('phpunit_autol
6 define('SUPPRESS_REQUEST', TRUE);
7 }
8
9 +require_once 'PHPUnit/Autoload.php';
10 +
11 Route::set('unittest', 'unittest(/<action>)')
12 ->defaults(array(
13 'controller' => 'unittest',
Updated by Chris Bandy 3 months ago
- Project changed from Userguide to UnitTest