diff --git a/components/ILIAS/Math/tests/ilMathBaseAdapterTestCase.php b/components/ILIAS/Math/tests/ilMathBaseAdapterTestCase.php index 8de1e1a821a2..9aec4314047f 100644 --- a/components/ILIAS/Math/tests/ilMathBaseAdapterTestCase.php +++ b/components/ILIAS/Math/tests/ilMathBaseAdapterTestCase.php @@ -17,8 +17,6 @@ *********************************************************************/ use PHPUnit\Framework\TestCase; -use SebastianBergmann\Diff\Differ; -use SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder; /** * @author Michael Jansen @@ -45,15 +43,16 @@ protected function setUp(): void * In PHPUnit 8 the ScalarComparators uses a strict string comparison, so numbers with a different amount of trailing * 0 decimals are not equal anymore * @see \SebastianBergmann\Comparator\ScalarComparator - * @param string $actual * @param string $expected + * @param string $actual */ - private function assertEqualNumbers(string $actual, string $expected): void + private function assertEqualNumbers(string $expected, string $actual): void { - $differ = new Differ(new UnifiedDiffOutputBuilder("\n--- Expected\n+++ Actual\n")); - /** @noinspection PhpUnitTestsInspection */ - $this->assertTrue($actual == $expected, $differ->diff($actual, $expected)); + $this->assertTrue( + $actual == $expected, + sprintf("Failed asserting that '%s' is numerically equal to '%s'.", $actual, $expected) + ); } #[\PHPUnit\Framework\Attributes\DataProvider('addData')] diff --git a/components/ILIAS/ResourceStorage/tests/Collection/CollectionRepositoryTest.php b/components/ILIAS/ResourceStorage/tests/Collection/CollectionRepositoryTest.php index 17229ada9a0d..db276b4c51f3 100755 --- a/components/ILIAS/ResourceStorage/tests/Collection/CollectionRepositoryTest.php +++ b/components/ILIAS/ResourceStorage/tests/Collection/CollectionRepositoryTest.php @@ -71,10 +71,6 @@ public function testStore(): void ->method('manipulateF') ->with('DELETE FROM il_resource_rca WHERE rcid = %s AND rid NOT IN("rid_one", "rid_one")'); - $this->db_mock->expects($this->once()) - ->method('manipulateF') - ->with('DELETE FROM il_resource_rca WHERE rcid = %s AND rid NOT IN("rid_one", "rid_one")'); - $called_table_names = [ 'il_resource_rca', 'il_resource_rca',