/** * {@inheritDoc} */ protected function setUp() { $this->initializer = $this->getMock('Zend\\Code\\Generator\\PropertyGenerator'); $this->initMethod = $this->getMock('Zend\\Code\\Generator\\MethodGenerator'); $this->publicProperties = $this->getMockBuilder('ProxyManager\\ProxyGenerator\\PropertyGenerator\\PublicPropertiesMap')->disableOriginalConstructor()->getMock(); $this->initializer->expects($this->any())->method('getName')->will($this->returnValue('foo')); $this->initMethod->expects($this->any())->method('getName')->will($this->returnValue('baz')); $this->publicProperties->expects($this->any())->method('isEmpty')->will($this->returnValue(false)); $this->publicProperties->expects($this->any())->method('getName')->will($this->returnValue('bar')); }