[dev] Kronolith 4.2.10

Michael J Rubinsky mrubinsk at horde.org
Wed Oct 21 14:48:01 UTC 2015


Quoting Remi Collet <remi at fedoraproject.org>:

> It seems there is an autoload issue with this
>
>
> 1) Kronolith_Integration_Driver_Sql_Pdo_SqliteTest::testRecurrence
> Horde_Injector_Exception: exception 'ReflectionException' with message
> 'Class Content_Objects_Manager does not exist' in
> /usr/share/pear/Horde/Injector/Binder/Implementation.php:65
> Stack trace:
> #0 /usr/share/pear/Horde/Injector/Binder/Implementation.php(65):
> ReflectionClass->__construct('Content_Objects...')
> #1 /usr/share/pear/Horde/Injector/Binder/AnnotatedSetters.php(78):
> Horde_Injector_Binder_Implementation->create(Object(Horde_Injector))
> #2 /usr/share/pear/Horde/Injector.php(238):
> Horde_Injector_Binder_AnnotatedSetters->create(Object(Horde_Injector))
> #3 /usr/share/pear/Horde/Injector.php(272):
> Horde_Injector->createInstance('Content_Objects...')
> #4
> /dev/shm/BUILD/php-horde-kronolith-4.2.10/kronolith-4.2.10/lib/Driver.ph
> p(502):
> Horde_Injector->getInstance('Content_Objects...')
> #5
> /dev/shm/BUILD/php-horde-kronolith-4.2.10/kronolith-4.2.10/test/Kronolit
> h/Integration/Driver/Base.php(86):
> Kronolith_Driver->deleteEvent('Wt5ecfQgJ7agY2V...')
> #6 /usr/share/php/PHPUnit/Framework/TestCase.php(808):
> Kronolith_Integration_Driver_Base->tearDown()
> #7 /usr/share/php/PHPUnit/Framework/TestResult.php(617):
> PHPUnit_Framework_TestCase->runBare()
> #8 /usr/share/php/PHPUnit/Framework/TestCase.php(727):
> PHPUnit_Framework_TestResult->run(Object(Kronolith_Integration_Driver_Sq
> l_Pdo_SqliteTest))
> #9 /usr/share/php/PHPUnit/Framework/TestSuite.php(747):
> PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))
> #10 /usr/share/php/PHPUnit/Framework/TestSuite.php(747):
> PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
> #11 /usr/share/php/PHPUnit/TextUI/TestRunner.php(425):
> PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
> #12 /usr/share/php/PHPUnit/TextUI/Command.php(154):
> PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite),
> Array)
> #13 /usr/share/php/PHPUnit/TextUI/Command.php(105):
> PHPUnit_TextUI_Command->run(Array, true)
> #14 /usr/bin/phpunit(44): PHPUnit_TextUI_Command::main()
> #15 {main}
>
>
> Of course "content" is not the correct version, but should still be
> able to autoload it and fail later for missing method.


This appears to be working for me in the application and  
$injector->getInstance('Content_Objects_Manager') from the horde  
phpshell finds the object from the application's scope. It's probably  
an issue with stubbing the object from the tests. I'll have to look at  
this later.



-- 
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5751 bytes
Desc: S/MIME Signature
URL: <http://lists.horde.org/archives/dev/attachments/20151021/596e30fa/attachment.bin>


More information about the dev mailing list