updated-packages

This commit is contained in:
RafficMohammed
2023-01-08 00:13:22 +05:30
parent 3ff7df7487
commit da241bacb6
12659 changed files with 563377 additions and 510538 deletions

View File

@@ -9,9 +9,8 @@
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Gitonomy\Git\Tests;
use Gitonomy\Git\Log;
namespace Gitonomy\Git\Tests;
class LogTest extends AbstractTest
{
@@ -23,8 +22,8 @@ class LogTest extends AbstractTest
$logReadme = $repository->getLog(self::LONGFILE_COMMIT, 'README');
$logImage = $repository->getLog(self::LONGFILE_COMMIT, 'image.jpg');
$this->assertEquals(3, count($logReadme));
$this->assertEquals(2, count($logImage));
$this->assertCount(3, $logReadme);
$this->assertCount(2, $logImage);
}
/**
@@ -36,7 +35,7 @@ class LogTest extends AbstractTest
$commits = $log->getCommits();
$this->assertEquals(3, count($commits), '3 commits in log');
$this->assertCount(3, $commits, '3 commits in log');
$this->assertEquals(self::LONGFILE_COMMIT, $commits[0]->getHash(), 'First is requested one');
$this->assertEquals(self::BEFORE_LONGFILE_COMMIT, $commits[1]->getHash(), "Second is longfile parent\'s");
}
@@ -68,7 +67,7 @@ class LogTest extends AbstractTest
{
$log = $repository->getLog(self::LONGFILE_COMMIT);
$expectedHashes = array(self::LONGFILE_COMMIT, self::BEFORE_LONGFILE_COMMIT);
$expectedHashes = [self::LONGFILE_COMMIT, self::BEFORE_LONGFILE_COMMIT];
foreach ($log as $entry) {
$hash = array_shift($expectedHashes);
$this->assertEquals($hash, $entry->getHash());