Ejemplo n.º 1
0
 /**
  * @dataProvider getParameters
  *
  * @covers \ProxyManager\Inflector\Util\ParameterHasher::hashParameters
  */
 public function testGeneratesValidClassName(array $parameters, $expectedHash)
 {
     $encoder = new ParameterHasher();
     $this->assertSame($expectedHash, $encoder->hashParameters($parameters));
 }
Ejemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function generateSignatureKey(array $parameters)
 {
     return $this->parameterHasher->hashParameters($parameters);
 }
Ejemplo n.º 3
0
 /**
  * {@inheritDoc}
  */
 public function getProxyClassName($className, array $options = [])
 {
     return $this->proxyNamespace . $this->proxyMarker . $this->getUserClassName($className) . '\\Generated' . $this->parameterHasher->hashParameters($options);
 }