Example #1
0
 public function testFileLog()
 {
     $file = new File(self::$repository, 'FILE1');
     $log = $file->log();
     $this->assertEquals(2, count($log), 'log has 2 entries');
     $this->assertArrayHasKey('aafe1fa6e816e7ebcbf460ed03861815bd048e4c', $log);
     $this->assertArrayHasKey('5ff8ff94448ef3882daf4b9121b847d8540a065b', $log);
 }
Example #2
0
 /**
  * {@inheritDoc}
  */
 public function commit($message)
 {
     $this->lastCommit = null;
     parent::commit($message);
 }