function XdebugRequestTraitTest::extractCookiesDataProvider
Same name in other branches
- 10 core/tests/Drupal/Tests/Core/Test/XdebugRequestTraitTest.php \Drupal\Tests\Core\Test\XdebugRequestTraitTest::extractCookiesDataProvider()
- 11.x core/tests/Drupal/Tests/Core/Test/XdebugRequestTraitTest.php \Drupal\Tests\Core\Test\XdebugRequestTraitTest::extractCookiesDataProvider()
Provides data to test extracting Xdebug cookies from a request.
Return value
iterable Test scenarios.
File
-
core/
tests/ Drupal/ Tests/ Core/ Test/ XdebugRequestTraitTest.php, line 41
Class
- XdebugRequestTraitTest
- Provides tests for the Xdebug request trait.
Namespace
Drupal\Tests\Core\TestCode
public function extractCookiesDataProvider() {
(yield 'no XDEBUG_CONFIG' => [
[],
[],
]);
(yield 'empty string XDEBUG_CONFIG' => [
[
'XDEBUG_CONFIG' => '',
],
[],
]);
(yield 'only space string XDEBUG_CONFIG' => [
[
'XDEBUG_CONFIG' => ' ',
],
[],
]);
(yield 'invalid XDEBUG_CONFIG' => [
[
'XDEBUG_CONFIG' => 'invalid_config',
],
[],
]);
(yield 'idekey XDEBUG_CONFIG' => [
[
'XDEBUG_CONFIG' => 'idekey=XDEBUG_KEY',
],
[
'XDEBUG_SESSION' => [
'XDEBUG_KEY',
],
],
]);
(yield 'idekey with another key XDEBUG_CONFIG' => [
[
'XDEBUG_CONFIG' => 'foo=bar idekey=XDEBUG_KEY ',
],
[
'XDEBUG_SESSION' => [
'XDEBUG_KEY',
],
],
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.