/** * @covers ::run * @covers ::getDefaults * @covers ::logCommand * @depends testMerging */ public function testRun() { $this->assertEquals(self::$git->log(), self::$git->run(array_merge(['log'], self::$git->getDefaults('log')))); $history = self::$git->history(); $historyLast = array_pop($history); $historySecondLast = array_pop($history); $this->assertEquals($historyLast, $historySecondLast); }