wordpress-develop/tests/phpunit/tests/image
Sergey Biryukov 54c54f9a1e Tests: Use more appropriate assertions in various tests.
This replaces instances of `assertTrue( strpos( ... ) > 0 )` with `assertStringContainsString()` to use native PHPUnit functionality.

Going forward, these methods introduced in PHPUnit 7.5 should be used for similar assertions:

* `assertStringContainsString()`
* `assertStringNotContainsString()`

As WordPress currently uses PHPUnit 5.7.x to run tests on PHP 5.6, polyfills for these methods are now added to the `WP_UnitTestCase` class for PHPUnit < 7.5.

Follow-up to [51335], [51337], [51367], [51397], [51403], [51404], [51436], [51438], [51448], [51449].

See #53363.

git-svn-id: https://develop.svn.wordpress.org/trunk@51451 602fd350-edb4-49c9-b593-d223f7449a82
2021-07-17 10:36:52 +00:00
..
base.php Build/Test Tools: Remove redundant teardown functionality from individual tests which is already covered in the base teardown method. 2021-03-01 18:42:49 +00:00
dimensions.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
editor.php Media: Some documentation and test improvements for WebP support: 2021-05-05 17:06:17 +00:00
editorGd.php Tests: Clean up skipping conditions and requirements for various tests. 2021-07-13 10:43:42 +00:00
editorImagick.php Docs: Update inline comments in some test files per the documentation standards. 2021-03-04 10:11:38 +00:00
functions.php Tests: Clean up skipping conditions and requirements for various tests. 2021-07-13 10:43:42 +00:00
header.php Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
intermediateSize.php Tests: Use more appropriate assertions in various tests. 2021-07-17 10:36:52 +00:00
meta.php Build/Test Tools: Add seeking support to stream test library. 2021-04-20 03:01:55 +00:00
resize.php Media: Some documentation and test improvements for WebP support: 2021-05-05 17:06:17 +00:00
resizeGd.php Tests: Clean up skipping conditions and requirements for various tests. 2021-07-13 10:43:42 +00:00
resizeImagick.php Build/Test Tools: Fix and standardise calls to the setUp() and setUpBeforeClass() methods in the test suite. 2021-02-27 16:54:52 +00:00
siteIcon.php Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
size.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00