Invoke PHPUnit's assertions statically

This commit is contained in:
Daniel Londero
2020-10-04 00:35:14 +02:00
parent d426dbc684
commit 065d314608
99 changed files with 567 additions and 567 deletions

View File

@@ -71,7 +71,7 @@ class VisitsTrackerTest extends TestCase
$paginator = $this->visitsTracker->info(new ShortUrlIdentifier($shortCode), new VisitsParams());
$this->assertEquals($list, ArrayUtils::iteratorToArray($paginator->getCurrentItems()));
self::assertEquals($list, ArrayUtils::iteratorToArray($paginator->getCurrentItems()));
$count->shouldHaveBeenCalledOnce();
}
@@ -120,7 +120,7 @@ class VisitsTrackerTest extends TestCase
$paginator = $this->visitsTracker->visitsForTag($tag, new VisitsParams());
$this->assertEquals($list, ArrayUtils::iteratorToArray($paginator->getCurrentItems()));
self::assertEquals($list, ArrayUtils::iteratorToArray($paginator->getCurrentItems()));
$count->shouldHaveBeenCalledOnce();
$getRepo->shouldHaveBeenCalledOnce();
}