/**
  * Return the "real" class name if the given class name is a proxy
  * class name.
  *
  * @param string $className
  *
  * @return string
  */
 public static function getUserClassName($className)
 {
     if (null === self::$inflector) {
         static::$inflector = new ProxyManagerClassNameInflector('');
     }
     return static::$inflector->getUserClassName($className);
 }
 /**
  * @dataProvider getClassNames
  *
  * @covers \ProxyManager\Inflector\ClassNameInflector::__construct
  * @covers \ProxyManager\Inflector\ClassNameInflector::getUserClassName
  * @covers \ProxyManager\Inflector\ClassNameInflector::getProxyClassName
  * @covers \ProxyManager\Inflector\ClassNameInflector::isProxyClassName
  */
 public function testInflector($realClassName, $proxyClassName)
 {
     $inflector = new ClassNameInflector('ProxyNS');
     $this->assertFalse($inflector->isProxyClassName($realClassName));
     $this->assertTrue($inflector->isProxyClassName($proxyClassName));
     $this->assertStringMatchesFormat($realClassName, $inflector->getUserClassName($realClassName));
     $this->assertStringMatchesFormat($proxyClassName, $inflector->getProxyClassName($proxyClassName));
     $this->assertStringMatchesFormat($proxyClassName, $inflector->getProxyClassName($realClassName));
     $this->assertStringMatchesFormat($realClassName, $inflector->getUserClassName($proxyClassName));
 }