mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
Tests > fix "Using assertContains() with string haystacks is deprecated and will not be supported in PHPUnit 9. Refactor your test to use assertStringContainsString() or assertStringContainsStringIgnoringCase() instead." bug > make compatible with PHPUnit 8.0 (and PHP 7.2+)
This commit is contained in:
@@ -133,7 +133,7 @@ class BaseTestCaseTest extends BaseTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
$expectedContains = sprintf('/data/tests/%s%s', $directoryPath, $fileName);
|
$expectedContains = sprintf('/data/tests/%s%s', $directoryPath, $fileName);
|
||||||
static::assertContains($expectedContains, $path);
|
static::assertStringContainsString($expectedContains, $path);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user