Skip to content

Commit a296e8b

Browse files
author
Tim Helfensdörfer
committed
Use assertCount instead of assertEquals
1 parent a90c357 commit a296e8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/MatomoTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function testMultipleDates()
101101
$result = $this->_matomo->getVisitsSummary();
102102

103103
$this->assertIsObject($result);
104-
$this->assertEquals(7, count((array) $result));
104+
$this->assertCount(7, (array) $result);
105105
}
106106

107107
/**
@@ -229,7 +229,7 @@ public function testCustomVariables()
229229
$this->_matomo->setPeriod(Matomo::PERIOD_WEEK);
230230
$result = $this->_matomo->getCustomVariables();
231231

232-
$this->assertEquals(15, count($result));
232+
$this->assertCount(15, $result);
233233
}
234234

235235
/**

0 commit comments

Comments
 (0)