ZF-12185: Zend/EventManager exceptions are not valid PHP 5.2
Description
Zend\EventManager\Exception\InvalidArgumentException.php
namespace Zend\EventManager\Exception;
use Zend\EventManager\Exception;
testcase:
+
+ /**
+ * @expectedException Zend_EventManager_Exception_InvalidArgumentException
+ */
+ public function testExpectedExceptions1()
+ {
+ $this->events->attach('foo.bar');
+ }
PHP 5.2 output: PHP Parse error: syntax error, unexpected T_STRING in I:\xampp\zf\library\Zend\EventManager\Exception\InvalidArgumentException.php on line 24
However, is is probably broken even for PHP 5.3. PHP 5.3 output: Fatal error: Interface 'Zend\EventManager\Exception' not found in I:\xampp\zf\library\Zend\EventManager\Exception\InvalidArgumentException.php on line 38
//and can't choose EventManager as a component here in issue tracker - Zend_EventManager is not a valid component.
Comments
Posted by Adam Lundrigan (adamlundrigan) on 2012-05-03T18:44:53.000+0000
A quick grep of the source code shows a few namespace/use calls still exist:
Posted by Adam Lundrigan (adamlundrigan) on 2012-05-03T18:55:56.000+0000
Attached patch should resolve this issue.
Posted by Adam Lundrigan (adamlundrigan) on 2012-05-06T00:24:51.000+0000
Fixed in trunk (1.12.0): r24765