예제 #1
0
 public function testCheckSavedMap()
 {
     $this->mapper->scan();
     $this->mapper->save($this->map);
     $map = MapLoader::loadFile($this->map);
     $this->assertCount(2, $map);
     $this->assertTrue(isset($map['SuperCMS - v1']['/test.css']));
     $this->assertSame($map['SuperCMS - v1']['/test.css'], '64b3eb02f9ec6f92443ee39d7e5d0bda');
 }
예제 #2
0
파일: Mapper.php 프로젝트: arall/cmsdiff
 /**
  * Generate a Map file.
  *
  * @param string $output
  *
  * @return bool
  */
 public function save($output)
 {
     return MapLoader::save($this->files, $output);
 }