[horde] horde-git test_framework PHP Fatal error

Gerard Breiner gerard.breiner at ias.u-psud.fr
Wed Sep 8 13:08:24 UTC 2010


Hello,

My plateform is Horde-git (horde4) Debian Lenny.

http://horde_server/test.php works very fine. All is ok.
After that I want to run test_framework .
php framework/bin/test_framework return :

PHP Fatal error:  Class Horde_View_Helper_UrlTest_MockController 
contains 1 abstract method and must therefore be declared abstract or 
implement the remaining methods (Horde_Controller::processRequest) in 
/www/horde-git/framework/View/test/Horde/View/Helper/UrlTest.php on line 
131

I added "abstract" at the begining of the line 131
abstract class Horde_View_Helper_UrlTest_MockController extends 
Horde_Controller_Base

I run again php test_framework and get:

PHP Strict Standards:  Declaration of Horde_Db_AllTests::main() should 
be compatible with that of Horde_Test_AllTests::main() in 
/www/horde-git/framework/Db/test/Horde/Db/AllTests.php on line 86
object(Exception)#1531 (6) {
  ["message:protected"]=>
  string(31) "No configuration for mysql test"
  ["string:private"]=>
  string(0) ""
  ["code:protected"]=>
  int(0)
  ["file:protected"]=>
  string(64) 
"/www/horde-git/framework/Db/test/Horde/Db/Adapter/MysqlSuite.php"
  ["line:protected"]=>
  int(73)
  ["trace:private"]=>
  array(11) {
    [0]=>
    array(6) {
      ["file"]=>
      string(64) 
"/www/horde-git/framework/Db/test/Horde/Db/Adapter/MysqlSuite.php"
      ["line"]=>
      int(34)
      ["function"]=>
      string(13) "getConnection"
      ["class"]=>
      string(27) "Horde_Db_Adapter_MysqlSuite"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(0) {
      }
    }
    [1]=>
    array(4) {
      ["function"]=>
      string(5) "suite"
      ["class"]=>
      string(27) "Horde_Db_Adapter_MysqlSuite"
      ["type"]=>
      string(2) "::"
      ["args"]=>
      array(1) {
        [0]=>
        &string(27) "Horde_Db_Adapter_MysqlSuite"
      }
    }
    [2]=>
    array(6) {
      ["file"]=>
      string(46) "/usr/share/php/PHPUnit/Framework/TestSuite.php"
      ["line"]=>
      int(328)
      ["function"]=>
      string(6) "invoke"
      ["class"]=>
      string(16) "ReflectionMethod"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(2) {
        [0]=>
        &NULL
        [1]=>
        &string(27) "Horde_Db_Adapter_MysqlSuite"
      }
    }
    [3]=>
    array(6) {
      ["file"]=>
      string(54) "/www/horde-git/framework/Db/test/Horde/Db/AllTests.php"
      ["line"]=>
      int(77)
      ["function"]=>
      string(12) "addTestSuite"
      ["class"]=>
      string(27) "PHPUnit_Framework_TestSuite"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(1) {
        [0]=>
        &string(27) "Horde_Db_Adapter_MysqlSuite"
      }
    }
    [4]=>
    array(4) {
      ["function"]=>
      string(5) "suite"
      ["class"]=>
      string(17) "Horde_Db_AllTests"
      ["type"]=>
      string(2) "::"
      ["args"]=>
      array(0) {
      }
    }
    [5]=>
    array(4) {
      ["file"]=>
      string(43) "/www/horde-git/framework/bin/test_framework"
      ["line"]=>
      int(77)
      ["function"]=>
      string(14) "call_user_func"
      ["args"]=>
      array(1) {
        [0]=>
        &array(2) {
          [0]=>
          &string(17) "Horde_Db_AllTests"
          [1]=>
          string(5) "suite"
        }
      }
    }
    [6]=>
    array(4) {
      ["function"]=>
      string(5) "suite"
      ["class"]=>
      string(17) "horde_test_runner"
      ["type"]=>
      string(2) "::"
      ["args"]=>
      array(1) {
        [0]=>
        &string(17) "horde_test_runner"
      }
    }
    [7]=>
    array(6) {
      ["file"]=>
      string(48) "/usr/share/php/PHPUnit/Runner/BaseTestRunner.php"
      ["line"]=>
      int(130)
      ["function"]=>
      string(6) "invoke"
      ["class"]=>
      string(16) "ReflectionMethod"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(2) {
        [0]=>
        &NULL
        [1]=>
        &string(17) "horde_test_runner"
      }
    }
    [8]=>
    array(6) {
      ["file"]=>
      string(41) "/usr/share/php/PHPUnit/TextUI/Command.php"
      ["line"]=>
      int(167)
      ["function"]=>
      string(7) "getTest"
      ["class"]=>
      string(29) "PHPUnit_Runner_BaseTestRunner"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(3) {
        [0]=>
        &string(17) "horde_test_runner"
        [1]=>
        &string(43) "/www/horde-git/framework/bin/test_framework"
        [2]=>
        &bool(false)
      }
    }
    [9]=>
    array(6) {
      ["file"]=>
      string(41) "/usr/share/php/PHPUnit/TextUI/Command.php"
      ["line"]=>
      int(146)
      ["function"]=>
      string(3) "run"
      ["class"]=>
      string(22) "PHPUnit_TextUI_Command"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(2) {
        [0]=>
        &array(3) {
          [0]=>
          string(14) "test_framework"
          [1]=>
          string(17) "horde_test_runner"
          [2]=>
          string(43) "/www/horde-git/framework/bin/test_framework"
        }
        [1]=>
        &bool(true)
      }
    }
    [10]=>
    array(6) {
      ["file"]=>
      string(43) "/www/horde-git/framework/bin/test_framework"
      ["line"]=>
      int(23)
      ["function"]=>
      string(4) "main"
      ["class"]=>
      string(22) "PHPUnit_TextUI_Command"
      ["type"]=>
      string(2) "::"
      ["args"]=>
      array(0) {
      }
    }
  }
}

An idea please ?

thanks in advance

Gerard Breiner



More information about the horde mailing list