Fails on Tests

Help
2010-12-27
2013-04-29
  • Kaan karabulut
    Kaan karabulut
    2010-12-27

    Hi !

    I'm french so sorry for my bad explanations.

    I'm on a linux server and I use php version 5.1.6.

    These followings errors appear and I don't know where they provide.

    All tests
    Exception: TestOfMisc -> testGetValueOrDefault -> Unexpected PHP error  severity  in
    Exception: TestOfMisc -> testGetValueOrDefault -> Unexpected PHP error  severity  in
    Exception: TestOfMisc -> testGetValueOrDefault -> Unexpected PHP error  severity  in
    Fail: TestOfRequest -> testFileGetContents -> Equal expectation fails at character 0 with  and  at
    Fail: TestOfRequest -> testFileGetContents -> Equal expectation fails at character 0 with  and  at
    Exception: TestOfRequest -> testFileGetContents -> Unexpected PHP error [file_get_contents(http://10.1.0.102:80/vl/tests/request1.txt) : failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found ] severity  in
    Exception: TestOfRequest -> testFileGetContents -> Unexpected PHP error  severity  in
    Exception: TestOfPing -> testPackUnpack -> Unexpected PHP error  severity  in
    Exception: TestOfPing -> testEmptyBlock -> Unexpected PHP error  severity  in
    Exception: TestOfPing -> testCreateFromScratch -> Unexpected PHP error  severity  in
    Exception: TestOfPing -> testEnhancedMessage -> Unexpected PHP error  severity  in
    Exception: TestOfPing -> testEnhancedMessage -> Unexpected PHP error  severity  in
    Exception: TestOfPing -> testPackEmptyBlock -> Unexpected PHP error  severity  in
    Exception: TestOfPing -> testReboot -> Unexpected PHP error  severity  in
    Fail: TestOfBurrow -> testSave -> at
    Exception: TestOfBurrow -> testSave -> Unexpected PHP error [fopen(/var/www/html/Opennab/vl/burrows/test_to_delete) : failed to open stream: Permission denied] severity  in
    Exception: TestOfBurrow -> testSave -> Unexpected PHP error  severity  in
    Exception: TestOfBurrow -> testSave -> Unexpected PHP error  severity  in
    Exception: TestOfBurrow -> testSave -> Unexpected PHP error [fopen(/var/www/html/Opennab/vl/burrows/test_to_delete) : failed to open stream: Permission denied] severity  in
    Exception: TestOfBurrow -> testSave -> Unexpected PHP error  severity  in
    Exception: TestOfBurrow -> testSave -> Unexpected PHP error  severity  in
    Exception: TestOfBurrow -> testSave -> Unexpected PHP error [fopen(/var/www/html/Opennab/vl/burrows/test_to_delete) : failed to open stream: Permission denied] severity  in
    Exception: TestOfBurrow -> testSave -> Unexpected PHP error  severity  in
    Exception: TestOfBurrow -> testSave -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAmbient -> testAmbient -> Unexpected PHP error  severity  in
    Exception: TestOfPluginMyWeather -> testWeather -> Unexpected PHP error  severity  in
    Exception: TestOfPluginMyRadio -> testRadio -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPlsM3u -> testChangeContents -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPingInterval -> testPingInterval -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPingInterval -> testPingInterval -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPingInterval -> testPingInterval -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPingInterval -> testPingInterval -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPingInterval -> testPingInterval -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPingInterval -> testPingInterval -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPingInterval -> testPingInterval -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginDowntime -> testDowntime -> Unexpected PHP error  severity  in

    17/17 test cases complete: 454 passes, 3 fails and 44 exceptions.

    If somebody has an idea … I would be very thankful.

     
  • Kaan karabulut
    Kaan karabulut
    2010-12-27

    I've found how to correct an exception …

    Still stays

    All tests
    Exception: TestOfMisc -> testGetValueOrDefault -> Unexpected PHP error  severity  in
    Exception: TestOfMisc -> testGetValueOrDefault -> Unexpected PHP error  severity  in
    Exception: TestOfMisc -> testGetValueOrDefault -> Unexpected PHP error  severity  in
    Exception: TestOfRequest -> testFileGetContents -> Unexpected PHP error  severity  in
    Exception: TestOfPing -> testPackUnpack -> Unexpected PHP error  severity  in
    Exception: TestOfPing -> testEmptyBlock -> Unexpected PHP error  severity  in
    Exception: TestOfPing -> testCreateFromScratch -> Unexpected PHP error  severity  in
    Exception: TestOfPing -> testEnhancedMessage -> Unexpected PHP error  severity  in
    Exception: TestOfPing -> testEnhancedMessage -> Unexpected PHP error  severity  in
    Exception: TestOfPing -> testPackEmptyBlock -> Unexpected PHP error  severity  in
    Exception: TestOfPing -> testReboot -> Unexpected PHP error  severity  in
    Fail: TestOfBurrow -> testSave -> at
    Exception: TestOfBurrow -> testSave -> Unexpected PHP error [fopen(/var/www/html/Opennab/vl/burrows/test_to_delete) : failed to open stream: Permission denied] severity  in
    Exception: TestOfBurrow -> testSave -> Unexpected PHP error  severity  in
    Exception: TestOfBurrow -> testSave -> Unexpected PHP error  severity  in
    Exception: TestOfBurrow -> testSave -> Unexpected PHP error [fopen(/var/www/html/Opennab/vl/burrows/test_to_delete) : failed to open stream: Permission denied] severity  in
    Exception: TestOfBurrow -> testSave -> Unexpected PHP error  severity  in
    Exception: TestOfBurrow -> testSave -> Unexpected PHP error  severity  in
    Exception: TestOfBurrow -> testSave -> Unexpected PHP error [fopen(/var/www/html/Opennab/vl/burrows/test_to_delete) : failed to open stream: Permission denied] severity  in
    Exception: TestOfBurrow -> testSave -> Unexpected PHP error  severity  in
    Exception: TestOfBurrow -> testSave -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAmbient -> testAmbient -> Unexpected PHP error  severity  in
    Exception: TestOfPluginMyWeather -> testWeather -> Unexpected PHP error  severity  in
    Exception: TestOfPluginMyRadio -> testRadio -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPlsM3u -> testChangeContents -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPingInterval -> testPingInterval -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPingInterval -> testPingInterval -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPingInterval -> testPingInterval -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPingInterval -> testPingInterval -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPingInterval -> testPingInterval -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPingInterval -> testPingInterval -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPingInterval -> testPingInterval -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginDowntime -> testDowntime -> Unexpected PHP error  severity  in

    17/17 test cases complete: 456 passes, 1 fails and 43 exceptions.

     
  • Kaan karabulut
    Kaan karabulut
    2010-12-27

    I resolved all E_WARNING, I wouldn't write on directory burrows …

    Sorry for my three messages but I can't update …

     

  • Anonymous
    2010-12-27

    Change your php.ini to

    error_reporting  =  E_ALL & ~E_NOTICE

    It worked for me (But I'm stuck in the next step for now)

     
  • Kaan karabulut
    Kaan karabulut
    2010-12-27

    It changes nothing

    All tests
    Exception: TestOfMisc -> testGetValueOrDefault -> Unexpected PHP error  severity  in
    Exception: TestOfMisc -> testGetValueOrDefault -> Unexpected PHP error  severity  in
    Exception: TestOfMisc -> testGetValueOrDefault -> Unexpected PHP error  severity  in
    Exception: TestOfRequest -> testFileGetContents -> Unexpected PHP error  severity  in
    Exception: TestOfPing -> testPackUnpack -> Unexpected PHP error  severity  in
    Exception: TestOfPing -> testEmptyBlock -> Unexpected PHP error  severity  in
    Exception: TestOfPing -> testCreateFromScratch -> Unexpected PHP error  severity  in
    Exception: TestOfPing -> testEnhancedMessage -> Unexpected PHP error  severity  in
    Exception: TestOfPing -> testEnhancedMessage -> Unexpected PHP error  severity  in
    Exception: TestOfPing -> testPackEmptyBlock -> Unexpected PHP error  severity  in
    Exception: TestOfPing -> testReboot -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAmbient -> testAmbient -> Unexpected PHP error  severity  in
    Exception: TestOfPluginMyWeather -> testWeather -> Unexpected PHP error  severity  in
    Exception: TestOfPluginMyRadio -> testRadio -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPlsM3u -> testChangeContents -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPingInterval -> testPingInterval -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPingInterval -> testPingInterval -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPingInterval -> testPingInterval -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPingInterval -> testPingInterval -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPingInterval -> testPingInterval -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPingInterval -> testPingInterval -> Unexpected PHP error  severity  in
    Exception: TestOfPluginPingInterval -> testPingInterval -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginAsleep -> testSleep -> Unexpected PHP error  severity  in
    Exception: TestOfPluginDowntime -> testDowntime -> Unexpected PHP error  severity  in

    17/17 test cases complete: 457 passes, 0 fails and 34 exceptions.

     

  • Anonymous
    2010-12-27

    Did you restart apache? ;)

     
  • Kaan karabulut
    Kaan karabulut
    2010-12-27

    Haha you're right, I didn't !

    In fact, I can't restart it by myself. I have to wait an admin.

    I'm going to tell you if it's ok once it's restarted.

     
  • Kaan karabulut
    Kaan karabulut
    2010-12-27

    Yeah it's restarted but it's still the same.

     
  • Kaan karabulut
    Kaan karabulut
    2010-12-27

    I've a little modified the code and now I've that :

    All tests
    Exception: TestOfMisc -> testGetValueOrDefault -> Unexpected PHP error  severity  in
    Exception: TestOfMisc -> testGetValueOrDefault -> Unexpected PHP error  severity  in
    Exception: TestOfMisc -> testGetValueOrDefault -> Unexpected PHP error  severity  in
    Exception: TestOfRequest -> testFileGetContents -> Unexpected PHP error  severity  in
    Exception: TestOfPluginDowntime -> testDowntime -> Unexpected PHP error  severity  in

    17/17 test cases complete: 457 passes, 0 fails and 5 exceptions.