You are here

public function RequestTest::testGetPassword in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/RequestTest.php \Symfony\Component\HttpFoundation\Tests\RequestTest::testGetPassword()

File

vendor/symfony/http-foundation/Tests/RequestTest.php, line 64

Class

RequestTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testGetPassword() {
  $request = Request::create('http://user_test:password_test@test.com/');
  $password = $request
    ->getPassword();
  $this
    ->assertEquals('password_test', $password);
}