* @license MIT * * @covers \ProxyManager\Exception\UnsupportedProxiedClassException * @group Coverage */ class UnsupportedProxiedClassExceptionTest extends PHPUnit_Framework_TestCase { /** * @covers \ProxyManager\Exception\UnsupportedProxiedClassException::unsupportedLocalizedReflectionProperty */ public function testUnsupportedLocalizedReflectionProperty() { $this->assertSame( 'Provided reflection property "property0" of class "ProxyManagerTestAsset\ClassWithPrivateProperties" ' . 'is private and cannot be localized in PHP 5.3', UnsupportedProxiedClassException::unsupportedLocalizedReflectionProperty( new ReflectionProperty('ProxyManagerTestAsset\ClassWithPrivateProperties', 'property0') )->getMessage() ); } }