5.5.0-alpha4 Class Name as Scalar use MyVendor\SomeComponent\TargetNs; // inside a test case $this->getMock(TargetNs\Foo::class); // as opposed to $this->getMock('MyVendor\SomeComponent\TargetNs\Foo');
5.5.0-alpha4 Class Name as Scalar use MyVendor\SomeComponent\TargetEntityNs as Entity; // inside a test case $entityManager->find(Entity\User::class, 5); // as opposed to $entityManager->find('MyVendor\SomeComponent\TargetEntityNs\User', 5);
Zend Optimizer+ is now open-source https://github.com/zend-dev/ZendOptimizerPlus - Rasmus Lerdorf, Sunshine PHP Conference, Feb 8, 2013 I'm confident PHP 5.5 will bundle an opcode cache when it ships.