コード例 #1
0
 public function testReplace()
 {
     $files = ['1'];
     $result = ['3'];
     $this->collator->expects($this->once())->method('collate')->with($this->equalTo($files), $this->equalTo([$this->_baseFile->getFileIdentifier() => $this->_baseFile, $this->_themeFile->getFileIdentifier() => $this->_themeFile]))->will($this->returnValue($result));
     $this->assertNull($this->_model->replace($files));
     $this->assertSame($result, $this->_model->getAll());
 }
コード例 #2
0
 /**
  * @expectedException \LogicException
  * @expectedExceptionMessage Overriding view file 'new.xml' does not match to any of the files
  */
 public function testReplaceThemeFileException()
 {
     $file = $this->_createViewFile('new.xml', 'Fixture_TestModule', 'area/theme/path');
     $this->_model->collate([$file], $this->_originFiles);
 }