You are here

public function ChainResponsePolicyTest::providerChainExceptionOnInvalidReturnValue in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/PageCache/ChainResponsePolicyTest.php \Drupal\Tests\Core\PageCache\ChainResponsePolicyTest::providerChainExceptionOnInvalidReturnValue()

Provides test data for testChainExceptionOnInvalidReturnValue.

Return value

array Test input and expected result.

File

core/tests/Drupal/Tests/Core/PageCache/ChainResponsePolicyTest.php, line 97

Class

ChainResponsePolicyTest
@coversDefaultClass \Drupal\Core\PageCache\ChainResponsePolicy @group PageCache

Namespace

Drupal\Tests\Core\PageCache

Code

public function providerChainExceptionOnInvalidReturnValue() {
  return [
    [
      FALSE,
    ],
    [
      0,
    ],
    [
      1,
    ],
    [
      TRUE,
    ],
    [
      [
        1,
        2,
        3,
      ],
    ],
    [
      new \stdClass(),
    ],
  ];
}