function ToolkitGdTest::pngImageProvider

Provides a list of PNG image URIs for testing.

Return value

\Generator The test data.

File

core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php, line 575

Class

ToolkitGdTest
Tests for the GD image toolkit.

Namespace

Drupal\KernelTests\Core\Image

Code

public static function pngImageProvider() : \Generator {
    (yield 'valid image 1' => [
        'core/tests/fixtures/files/image-1.png',
    ]);
    (yield 'valid image 2' => [
        'core/tests/fixtures/files/image-test.png',
    ]);
    (yield 'PNG with iCCP profile' => [
        'core/tests/fixtures/files/image-test-iccp-profile.png',
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.