Gitonomy\Git\Tests\PushReferenceTest::testLog PHP Méthode

testLog() public méthode

public testLog ( $repository )
    public function testLog($repository)
    {
        $ref = new PushReference($repository, 'foo', self::INITIAL_COMMIT, self::LONGFILE_COMMIT);
        $log = $ref->getLog()->getCommits();
        $this->assertEquals(7, count($log), '7 commits in log');
        $this->assertEquals('add a long file', $log[0]->getShortMessage(), 'First commit is correct');
    }