Exemple #1
0
         expect($request->path())->toBe('/home/index.php');
     });
     it("auto adds a leading slash", function () {
         $request = new Request();
         $request->path('home/index.php');
         expect($request->path())->toBe('/home/index.php');
     });
 });
 describe("->username()", function () {
     it("gets the username", function () {
         $request = new Request(['username' => 'username']);
         expect($request->username())->toBe('username');
     });
     it("sets the username", function () {
         $request = new Request();
         $request->username('username');
         expect($request->username())->toBe('username');
     });
 });
 describe("->password()", function () {
     it("gets the password", function () {
         $request = new Request(['password' => 'password']);
         expect($request->password())->toBe('password');
     });
     it("sets the password", function () {
         $request = new Request();
         $request->password('password');
         expect($request->password())->toBe('password');
     });
 });
 describe("->url()", function () {