Permalink
Browse files

[HttpKernel] fixed tests as addScope() is now called first

  • Loading branch information...
1 parent c28fe56 commit a072ae279458fba423463c29224e01908bfbdf85 @fabpot fabpot committed Mar 23, 2013
@@ -53,13 +53,14 @@ public function testHandle($type)
->method('leaveScope')
->with($this->equalTo('request'))
;
+ // first call is for addScope()
$container
- ->expects($this->at(1))
+ ->expects($this->at(2))
->method('set')
->with($this->equalTo('request'), $this->equalTo($request), $this->equalTo('request'))
;
$container
- ->expects($this->at(2))
+ ->expects($this->at(3))
->method('set')
->with($this->equalTo('request'), $this->equalTo(null), $this->equalTo('request'))
;
@@ -106,12 +107,12 @@ public function testHandleRestoresThePreviousRequestOnException($type)
->with($this->equalTo('request'))
;
$container
- ->expects($this->at(1))
+ ->expects($this->at(2))
->method('set')
->with($this->equalTo('request'), $this->equalTo($request), $this->equalTo('request'))
;
$container
- ->expects($this->at(2))
+ ->expects($this->at(3))
->method('set')
->with($this->equalTo('request'), $this->equalTo(null), $this->equalTo('request'))
;

0 comments on commit a072ae2

Please sign in to comment.