public function testCall() { $value = 'testValue'; $this->initMocks(); $filterMock = $this->getMock('FactoryInterface', ['filter']); $filterMock->expects($this->atLeastOnce())->method('filter')->with($this->equalTo($value))->will($this->returnValue($value)); $this->configureFactoryMock($filterMock, 'alias', ['123']); $this->assertEquals($value, $this->_filterManager->alias($value, ['123'])); }