public testReadEntireDataFileIfNoIndicesGiven ( ) |
public function testReadEntireDataFileIfNoIndicesGiven()
{
$this->readerImpl->expects($this->at(0))
->method('read')
->with(self::RES_DIR, 'en')
->will($this->returnValue(self::$data));
$this->readerImpl->expects($this->at(1))
->method('read')
->with(self::RES_DIR, 'root')
->will($this->returnValue(self::$fallbackData));
$this->assertSame(self::$mergedData, $this->reader->readEntry(self::RES_DIR, 'en', array()));
}