Пример #1
0
 /**
  * {@inheritDoc}
  */
 public function setUp()
 {
     $configuration = $this->getMock('ProxyManager\\Configuration');
     $this->generator = $this->getMock('ProxyManager\\ProxyGenerator\\ProxyGeneratorInterface');
     $this->classNameInflector = $this->getMock('ProxyManager\\Inflector\\ClassNameInflectorInterface');
     $this->generatorStrategy = $this->getMock('ProxyManager\\GeneratorStrategy\\GeneratorStrategyInterface');
     $this->proxyAutoloader = $this->getMock('ProxyManager\\Autoloader\\AutoloaderInterface');
     $configuration->expects($this->any())->method('getClassNameInflector')->will($this->returnValue($this->classNameInflector));
     $configuration->expects($this->any())->method('getGeneratorStrategy')->will($this->returnValue($this->generatorStrategy));
     $configuration->expects($this->any())->method('getProxyAutoloader')->will($this->returnValue($this->proxyAutoloader));
     $this->classNameInflector->expects($this->any())->method('getUserClassName')->will($this->returnValue('stdClass'));
     $this->factory = $this->getMockForAbstractClass('ProxyManager\\Factory\\AbstractBaseFactory', array($configuration));
     $this->factory->expects($this->any())->method('getGenerator')->will($this->returnValue($this->generator));
 }