Neos\Flow\Tests\Unit\I18n\Cldr\Reader\DatesReaderTest::createCacheExpectations PHP Метод

createCacheExpectations() публичный Метод

Setting cache expectations is partially same for many tests, so it's been extracted to this method.
public createCacheExpectations ( PHPUnit_Framework_MockObject_MockObject $mockCache ) : array
$mockCache PHPUnit_Framework_MockObject_MockObject
Результат array
    public function createCacheExpectations(\PHPUnit_Framework_MockObject_MockObject $mockCache)
    {
        $mockCache->expects($this->at(0))->method('has')->with('parsedFormats')->will($this->returnValue(true));
        $mockCache->expects($this->at(1))->method('has')->with('parsedFormatsIndices')->will($this->returnValue(true));
        $mockCache->expects($this->at(2))->method('has')->with('localizedLiterals')->will($this->returnValue(true));
        $mockCache->expects($this->at(3))->method('get')->with('parsedFormats')->will($this->returnValue([]));
        $mockCache->expects($this->at(4))->method('get')->with('parsedFormatsIndices')->will($this->returnValue([]));
        $mockCache->expects($this->at(5))->method('get')->with('localizedLiterals')->will($this->returnValue([]));
        $mockCache->expects($this->at(6))->method('set')->with('parsedFormats');
        $mockCache->expects($this->at(7))->method('set')->with('parsedFormatsIndices');
        $mockCache->expects($this->at(8))->method('set')->with('localizedLiterals');
    }