Details
Description
For the trunk version of PHP Shindig
When all the tests are run with command "php test/index.php" the error occurs for the tests in GadgetContextTest.php:
The problematic functions are
1) testSetRenderingContext()
2) testSetUrl()
3) testSetView()
PHP Fatal error: Cannot access protected property GadgetContext::$renderingContext in /Library/WebServer/Documents/shindig/php/external/PHPUnit/Framework/Assert.php on line 1394
PHP Stack trace:
PHP 1.
() /Library/WebServer/Documents/shindig/php/test/index.php:0
PHP 2. AllTests::main() /Library/WebServer/Documents/shindig/php/test/index.php:92
PHP 3. PHPUnit_TextUI_TestRunner::run($test = class PHPUnit_Framework_TestSuite { protected $sharedFixture = NULL; protected $name = 'Shindig'; protected $groups = array ('_nogroup_' => array (...)); protected $tests = array (0 => class PHPUnit_Framework_TestSuite
, 2 => class PHPUnit_Framework_TestSuite
{ ... }, 3 => class PHPUnit_Framework_TestSuite { ... }, 4 => class PHPUnit_Framework_TestSuite
{ ... }, 5 => class PHPUnit_Framework_TestSuite { ... }, 6 => class PHPUnit_Framework_TestSuite
{ ... }, 7 => class PHPUnit_Framework_TestSuite { ... }, 8 => class PHPUnit_Framework_TestSuite
{ ... }, 9 => class PHPUnit_Framework_TestSuite { ... }, 10 => class PHPUnit_Framework_TestSuite
{ ... }, 11 => class PHPUnit_Framework_TestSuite { ... }, 12 => class PHPUnit_Framework_TestSuite
{ ... }, 13 => class PHPUnit_Framework_TestSuite { ... }, 14 => class PHPUnit_Framework_TestSuite
{ ... }, 15 => class PHPUnit_Framework_TestSuite { ... }, 16 => class PHPUnit_Framework_TestSuite
{ ... }, 17 => class PHPUnit_Framework_TestSuite { ... }, 18 => class PHPUnit_Framework_TestSuite
{ ... }, 19 => class PHPUnit_Framework_TestSuite { ... }, 20 => class PHPUnit_Framework_TestSuite
{ ... }, 21 => class PHPUnit_Framework_TestSuite { ... }, 22 => class PHPUnit_Framework_TestSuite
{ ... }, 23 => class PHPUnit_Framework_TestSuite { ... }, 24 => class PHPUnit_Framework_TestSuite
{ ... }, 25 => class PHPUnit_Framework_TestSuite { ... }, 26 => class PHPUnit_Framework_TestSuite
{ ... }, 27 => class PHPUnit_Framework_TestSuite { ... }, 28 => class PHPUnit_Framework_TestSuite
{ ... }, 29 => class PHPUnit_Framework_TestSuite { ... }, 30 => class PHPUnit_Framework_TestSuite
{ ... }, 31 => class PHPUnit_Framework_TestSuite { ... }, 32 => class PHPUnit_Framework_TestSuite
{ ... }, 33 => class PHPUnit_Framework_TestSuite { ... }, 34 => class PHPUnit_Framework_TestSuite
{ ... }, 35 => class PHPUnit_Framework_TestSuite { ... }, 36 => class PHPUnit_Framework_TestSuite
{ ... }, 37 => class PHPUnit_Framework_TestSuite { ... }, 38 => class PHPUnit_Framework_TestSuite
{ ... }, 39 => class PHPUnit_Framework_TestSuite { ... }, 40 => class PHPUnit_Framework_TestSuite
{ ... }, 41 => class PHPUnit_Framework_TestSuite { ... }, 42 => class PHPUnit_Framework_TestSuite
{ ... }, 43 => class PHPUnit_Framework_TestSuite { ... }, 44 => class PHPUnit_Framework_TestSuite
{ ... }, 45 => class PHPUnit_Framework_TestSuite { ... }, 46 => class PHPUnit_Framework_TestSuite
{ ... }, 47 => class PHPUnit_Framework_TestSuite { ... }, 48 => class PHPUnit_Framework_TestSuite
{ ... }, 49 => class PHPUnit_Framework_TestSuite { ... }, 50 => class PHPUnit_Framework_TestSuite
{ ... }, 51 => class PHPUnit_Framework_TestSuite { ... }, 52 => class PHPUnit_Framework_TestSuite
{ ... }); protected $numTests = 403 }, $arguments = array ()) /Library/WebServer/Documents/shindig/php/test/index.php:60PHP 4. PHPUnit_TextUI_TestRunner->doRun($suite = class PHPUnit_Framework_TestSuite { protected $sharedFixture = NULL; protected $name = 'Shindig'; protected $groups = array ('_nogroup_' => array (...)); protected $tests = array (0 => class PHPUnit_Framework_TestSuite { ... }
, 1 => class PHPUnit_Framework_TestSuite
{ ... }, 2 => class PHPUnit_Framework_TestSuite { ... }, 3 => class PHPUnit_Framework_TestSuite
{ ... }, 4 => class PHPUnit_Framework_TestSuite { ... }, 5 => class PHPUnit_Framework_TestSuite
{ ... }, 6 => class PHPUnit_Framework_TestSuite { ... }, 7 => class PHPUnit_Framework_TestSuite
{ ... }, 8 => class PHPUnit_Framework_TestSuite { ... }, 9 => class PHPUnit_Framework_TestSuite
{ ... }, 10 => class PHPUnit_Framework_TestSuite { ... }, 11 => class PHPUnit_Framework_TestSuite
{ ... }, 12 => class PHPUnit_Framework_TestSuite { ... }, 13 => class PHPUnit_Framework_TestSuite
{ ... }, 14 => class PHPUnit_Framework_TestSuite { ... }, 15 => class PHPUnit_Framework_TestSuite
{ ... }, 16 => class PHPUnit_Framework_TestSuite { ... }, 17 => class PHPUnit_Framework_TestSuite
{ ... }, 18 => class PHPUnit_Framework_TestSuite { ... }, 19 => class PHPUnit_Framework_TestSuite
{ ... }, 20 => class PHPUnit_Framework_TestSuite { ... }, 21 => class PHPUnit_Framework_TestSuite
{ ... }, 22 => class PHPUnit_Framework_TestSuite { ... }, 23 => class PHPUnit_Framework_TestSuite
{ ... }, 24 => class PHPUnit_Framework_TestSuite { ... }, 25 => class PHPUnit_Framework_TestSuite
{ ... }, 26 => class PHPUnit_Framework_TestSuite { ... }, 27 => class PHPUnit_Framework_TestSuite
{ ... }, 28 => class PHPUnit_Framework_TestSuite { ... }, 29 => class PHPUnit_Framework_TestSuite
{ ... }, 30 => class PHPUnit_Framework_TestSuite { ... }, 31 => class PHPUnit_Framework_TestSuite
{ ... }, 32 => class PHPUnit_Framework_TestSuite { ... }, 33 => class PHPUnit_Framework_TestSuite
{ ... }, 34 => class PHPUnit_Framework_TestSuite { ... }, 35 => class PHPUnit_Framework_TestSuite
{ ... }, 36 => class PHPUnit_Framework_TestSuite { ... }, 37 => class PHPUnit_Framework_TestSuite
{ ... }, 38 => class PHPUnit_Framework_TestSuite { ... }, 39 => class PHPUnit_Framework_TestSuite
{ ... }, 40 => class PHPUnit_Framework_TestSuite { ... }, 41 => class PHPUnit_Framework_TestSuite
{ ... }, 42 => class PHPUnit_Framework_TestSuite { ... }, 43 => class PHPUnit_Framework_TestSuite
{ ... }, 44 => class PHPUnit_Framework_TestSuite { ... }, 45 => class PHPUnit_Framework_TestSuite
{ ... }, 46 => class PHPUnit_Framework_TestSuite { ... }, 47 => class PHPUnit_Framework_TestSuite
{ ... }, 48 => class PHPUnit_Framework_TestSuite { ... }, 49 => class PHPUnit_Framework_TestSuite
{ ... }, 50 => class PHPUnit_Framework_TestSuite { ... }, 51 => class PHPUnit_Framework_TestSuite
{ ... }, 52 => class PHPUnit_Framework_TestSuite { ... }); protected $numTests = 403 }, $arguments = array ()) /Library/WebServer/Documents/shindig/php/external/PHPUnit/TextUI/TestRunner.php:125
PHP 5. PHPUnit_Framework_TestSuite->run($result = class PHPUnit_Framework_TestResult { protected $errors = array (0 => class PHPUnit_Framework_TestFailure
, 2 => class PHPUnit_Framework_TestFailure
{ ... }, 3 => class PHPUnit_Framework_TestFailure { ... }, 4 => class PHPUnit_Framework_TestFailure
{ ... }, 5 => class PHPUnit_Framework_TestFailure { ... }, 6 => class PHPUnit_Framework_TestFailure
{ ... }, 7 => class PHPUnit_Framework_TestFailure { ... }, 8 => class PHPUnit_Framework_TestFailure
{ ... }, 9 => class PHPUnit_Framework_TestFailure { ... }, 10 => class PHPUnit_Framework_TestFailure
{ ... }, 11 => class PHPUnit_Framework_TestFailure { ... }, 12 => class PHPUnit_Framework_TestFailure
{ ... }, 13 => class PHPUnit_Framework_TestFailure { ... }, 14 => class PHPUnit_Framework_TestFailure
{ ... }, 15 => class PHPUnit_Framework_TestFailure { ... }); protected $failures = array (); protected $notImplemented = array (); protected $skipped = array (0 => class PHPUnit_Framework_TestFailure
{ ... }, 1 => class PHPUnit_Framework_TestFailure { ... }, 2 => class PHPUnit_Framework_TestFailure
{ ... }, 3 => class PHPUnit_Framework_TestFailure { ... }, 4 => class PHPUnit_Framework_TestFailure
{ ... }, 5 => class PHPUnit_Framework_TestFailure { ... }); protected $listeners = array (0 => class PHPUnit_TextUI_ResultPrinter
{ ... }); protected $runTests = 72; protected $time = 0.81545686721802; protected $topTestSuite = class PHPUnit_Framework_TestSuite { protected $sharedFixture = NULL; protected $name = 'Shindig'; protected $groups = array (...); protected $tests = array (...); protected $numTests = 403 }; protected $codeCoverageInformation = array (); protected $collectCodeCoverageInformation = FALSE; protected $stop = FALSE; protected $stopOnFailure = FALSE }, $filter = FALSE, $groups = array (), $excludeGroups = array ()) /Library/WebServer/Documents/shindig/php/external/PHPUnit/TextUI/TestRunner.php:237PHP 6. PHPUnit_Framework_TestSuite->run($result = class PHPUnit_Framework_TestResult { protected $errors = array (0 => class PHPUnit_Framework_TestFailure { ... }
, 1 => class PHPUnit_Framework_TestFailure
{ ... }, 2 => class PHPUnit_Framework_TestFailure { ... }, 3 => class PHPUnit_Framework_TestFailure
{ ... }, 4 => class PHPUnit_Framework_TestFailure { ... }, 5 => class PHPUnit_Framework_TestFailure
{ ... }, 6 => class PHPUnit_Framework_TestFailure { ... }, 7 => class PHPUnit_Framework_TestFailure
{ ... }, 8 => class PHPUnit_Framework_TestFailure { ... }, 9 => class PHPUnit_Framework_TestFailure
{ ... }, 10 => class PHPUnit_Framework_TestFailure { ... }, 11 => class PHPUnit_Framework_TestFailure
{ ... }, 12 => class PHPUnit_Framework_TestFailure { ... }, 13 => class PHPUnit_Framework_TestFailure
{ ... }, 14 => class PHPUnit_Framework_TestFailure { ... }, 15 => class PHPUnit_Framework_TestFailure
{ ... }); protected $failures = array (); protected $notImplemented = array (); protected $skipped = array (0 => class PHPUnit_Framework_TestFailure { ... }, 1 => class PHPUnit_Framework_TestFailure
{ ... }, 2 => class PHPUnit_Framework_TestFailure { ... }, 3 => class PHPUnit_Framework_TestFailure
{ ... }, 4 => class PHPUnit_Framework_TestFailure { ... }, 5 => class PHPUnit_Framework_TestFailure
{ ... }); protected $listeners = array (0 => class PHPUnit_TextUI_ResultPrinter { ... }); protected $runTests = 72; protected $time = 0.81545686721802; protected $topTestSuite = class PHPUnit_Framework_TestSuite
{ protected $sharedFixture = NULL; protected $name = 'Shindig'; protected $groups = array (...); protected $tests = array (...); protected $numTests = 403 }; protected $codeCoverageInformation = array (); protected $collectCodeCoverageInformation = FALSE; protected $stop = FALSE; protected $stopOnFailure = FALSE }, $filter = FALSE, $groups = array (), $excludeGroups = array ()) /Library/WebServer/Documents/shindig/php/external/PHPUnit/Framework/TestSuite.php:587PHP 7. PHPUnit_Framework_TestSuite->runTest($test = class GadgetContextTest { private $GadgetContext = class GadgetContext { protected $httpFetcher = NULL; protected $locale = NULL; protected $renderingContext = 'Dummie_rendering_context'; protected $registry = NULL; protected $view = 'default'; protected $moduleId = 123; protected $url = 'http://www.google.com/gadget'; protected $cache = NULL; protected $blacklist = NULL; protected $ignoreCache = FALSE; protected $forcedJsLibs = ''; protected $containerConfig = NULL; protected $container = 'default'; protected $refreshInterval = 1209587 }; private $testData = array ('url' => 'http://www.google.com/gadget', 'libs' => '', 'synd' => 'default', 'nocache' => '', 'container' => 'default', 'view' => 'default', 'mid' => '123', 'bcp' => ''); private $gadgetRenderingContext = 'GADGET'; protected $backupGlobals = TRUE; protected $createGlobalsReference = FALSE; protected $data = array (); protected $dataName = ''; protected $expectedException = NULL; protected $expectedExceptionMessage = ''; protected $sharedFixture = NULL; protected $name = 'testSetRenderingContext'; protected $exception = NULL; protected $exceptionMessage = NULL; protected $exceptionCode = 0; protected $iniSettings = array (); protected $locale = array (); protected $mockObjects = array () }, $result = class PHPUnit_Framework_TestResult { protected $errors = array (0 => class PHPUnit_Framework_TestFailure { ... }, 1 => class PHPUnit_Framework_TestFailure { ... }, 2 => class PHPUnit_Framework_TestFailure { ... }, 3 => class PHPUnit_Framework_TestFailure { ... }, 4 => class PHPUnit_Framework_TestFailure { ... }, 5 => class PHPUnit_Framework_TestFailure { ... }, 6 => class PHPUnit_Framework_TestFailure { ... }, 7 => class PHPUnit_Framework_TestFailure { ... }, 8 => class PHPUnit_Framework_TestFailure { ... }, 9 => class PHPUnit_Framework_TestFailure { ... }, 10 => class PHPUnit_Framework_TestFailure { ... }, 11 => class PHPUnit_Framework_TestFailure { ... }, 12 => class PHPUnit_Framework_TestFailure { ... }, 13 => class PHPUnit_Framework_TestFailure { ... }, 14 => class PHPUnit_Framework_TestFailure { ... }, 15 => class PHPUnit_Framework_TestFailure { ... }); protected $failures = array (); protected $notImplemented = array (); protected $skipped = array (0 => class PHPUnit_Framework_TestFailure { ... }, 1 => class PHPUnit_Framework_TestFailure { ... }, 2 => class PHPUnit_Framework_TestFailure { ... }, 3 => class PHPUnit_Framework_TestFailure { ... }, 4 => class PHPUnit_Framework_TestFailure { ... }, 5 => class PHPUnit_Framework_TestFailure { ... }); protected $listeners = array (0 => class PHPUnit_TextUI_ResultPrinter { ... }); protected $runTests = 72; protected $time = 0.81545686721802; protected $topTestSuite = class PHPUnit_Framework_TestSuite { protected $sharedFixture = NULL; protected $name = 'Shindig'; protected $groups = array (...); protected $tests = array (...); protected $numTests = 403 }
; protected $codeCoverageInformation = array (); protected $collectCodeCoverageInformation = FALSE; protected $stop = FALSE; protected $stopOnFailure = FALSE }) /Library/WebServer/Documents/shindig/php/external/PHPUnit/Framework/TestSuite.php:604
PHP 8. PHPUnit_Framework_TestCase->run($result = class PHPUnit_Framework_TestResult { protected $errors = array (0 => class PHPUnit_Framework_TestFailure
, 2 => class PHPUnit_Framework_TestFailure
{ ... }, 3 => class PHPUnit_Framework_TestFailure { ... }, 4 => class PHPUnit_Framework_TestFailure
{ ... }, 5 => class PHPUnit_Framework_TestFailure { ... }, 6 => class PHPUnit_Framework_TestFailure
{ ... }, 7 => class PHPUnit_Framework_TestFailure { ... }, 8 => class PHPUnit_Framework_TestFailure
{ ... }, 9 => class PHPUnit_Framework_TestFailure { ... }, 10 => class PHPUnit_Framework_TestFailure
{ ... }, 11 => class PHPUnit_Framework_TestFailure { ... }, 12 => class PHPUnit_Framework_TestFailure
{ ... }, 13 => class PHPUnit_Framework_TestFailure { ... }, 14 => class PHPUnit_Framework_TestFailure
{ ... }, 15 => class PHPUnit_Framework_TestFailure { ... }); protected $failures = array (); protected $notImplemented = array (); protected $skipped = array (0 => class PHPUnit_Framework_TestFailure
{ ... }, 1 => class PHPUnit_Framework_TestFailure { ... }, 2 => class PHPUnit_Framework_TestFailure
{ ... }, 3 => class PHPUnit_Framework_TestFailure { ... }, 4 => class PHPUnit_Framework_TestFailure
{ ... }, 5 => class PHPUnit_Framework_TestFailure { ... }); protected $listeners = array (0 => class PHPUnit_TextUI_ResultPrinter
{ ... }); protected $runTests = 72; protected $time = 0.81545686721802; protected $topTestSuite = class PHPUnit_Framework_TestSuite
{ protected $sharedFixture = NULL; protected $name = 'Shindig'; protected $groups = array (...); protected $tests = array (...); protected $numTests = 403 }; protected $codeCoverageInformation = array (); protected $collectCodeCoverageInformation = FALSE; protected $stop = FALSE; protected $stopOnFailure = FALSE }) /Library/WebServer/Documents/shindig/php/external/PHPUnit/Framework/TestSuite.php:623
PHP 9. PHPUnit_Framework_TestResult->run($test = class GadgetContextTest { private $GadgetContext = class GadgetContext
; private $testData = array ('url' => 'http://www.google.com/gadget', 'libs' => '', 'synd' => 'default', 'nocache' => '', 'container' => 'default', 'view' => 'default', 'mid' => '123', 'bcp' => ''); private $gadgetRenderingContext = 'GADGET'; protected $backupGlobals = TRUE; protected $createGlobalsReference = FALSE; protected $data = array (); protected $dataName = ''; protected $expectedException = NULL; protected $expectedExceptionMessage = ''; protected $sharedFixture = NULL; protected $name = 'testSetRenderingContext'; protected $exception = NULL; protected $exceptionMessage = NULL; protected $exceptionCode = 0; protected $iniSettings = array (); protected $locale = array (); protected $mockObjects = array () }) /Library/WebServer/Documents/shindig/php/external/PHPUnit/Framework/TestCase.php:357
PHP 10. PHPUnit_Framework_TestCase->runBare() /Library/WebServer/Documents/shindig/php/external/PHPUnit/Framework/TestResult.php:569
PHP 11. PHPUnit_Framework_TestCase->runTest() /Library/WebServer/Documents/shindig/php/external/PHPUnit/Framework/TestCase.php:381
PHP 12. ReflectionMethod->invoke(class GadgetContextTest { private $GadgetContext = class GadgetContext
; private $testData = array ('url' => 'http://www.google.com/gadget', 'libs' => '', 'synd' => 'default', 'nocache' => '', 'container' => 'default', 'view' => 'default', 'mid' => '123', 'bcp' => ''); private $gadgetRenderingContext = 'GADGET'; protected $backupGlobals = TRUE; protected $createGlobalsReference = FALSE; protected $data = array (); protected $dataName = ''; protected $expectedException = NULL; protected $expectedExceptionMessage = ''; protected $sharedFixture = NULL; protected $name = 'testSetRenderingContext'; protected $exception = NULL; protected $exceptionMessage = NULL; protected $exceptionCode = 0; protected $iniSettings = array (); protected $locale = array (); protected $mockObjects = array () }) /Library/WebServer/Documents/shindig/php/external/PHPUnit/Framework/TestCase.php:453
PHP 13. GadgetContextTest->testSetRenderingContext() /Library/WebServer/Documents/shindig/php/test/gadgets/GadgetContextTest.php:0
PHP 14. PHPUnit_Framework_Assert::assertAttributeEquals($expected = 'Dummie_rendering_context', $actualAttributeName = 'renderingContext', $actualClassOrObject = class GadgetContext
, $message = uninitialized, $delta = uninitialized, $maxDepth = uninitialized) /Library/WebServer/Documents/shindig/php/test/gadgets/GadgetContextTest.php:149
PHP 15. PHPUnit_Framework_Assert::readAttribute($classOrObject = class GadgetContext
, $attributeName = 'renderingContext') /Library/WebServer/Documents/shindig/php/external/PHPUnit/Framework/Assert.php:304
PHP 16. PHPUnit_Framework_Assert::getObjectAttribute($object = class GadgetContext
, $attributeName = 'renderingContext') /Library/WebServer/Documents/shindig/php/external/PHPUnit/Framework/Assert.php:1315
PHPUnit 3.2.9 by Sebastian Bergmann.
...EEEEEEEEEE.........E.EEEEESSSSSS......................... 60 / 403
...........