public function testRead() { $data = array('foo', 'bar'); $this->readerImpl->expects($this->once())->method('read')->with(self::RES_DIR, 'en')->will($this->returnValue($data)); $this->assertSame($data, $this->reader->read(self::RES_DIR, 'en')); }
public function testForwardCallToRead() { $this->readerImpl->expects($this->once())->method('read')->with(self::RES_DIR, 'root')->will($this->returnValue(self::$data)); $this->assertSame(self::$data, $this->reader->read(self::RES_DIR, 'root')); }