| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | protected function getRequestStack() |
||
| 34 | { |
||
| 35 | $currentRequest = $this->getMock('\Symfony\Component\HttpFoundation\Request'); |
||
| 36 | $currentRequest->method('getLocale') |
||
| 37 | ->will( |
||
| 38 | $this->returnValue('nl') |
||
| 39 | ); |
||
| 40 | |||
| 41 | $requestStack = $this->getMock('\Symfony\Component\HttpFoundation\RequestStack'); |
||
| 42 | $requestStack->method('getCurrentRequest') |
||
| 43 | ->will( |
||
| 44 | $this->returnValue( |
||
| 45 | $currentRequest |
||
| 46 | ) |
||
| 47 | ); |
||
| 48 | |||
| 49 | return $requestStack; |
||
| 50 | } |
||
| 51 | |||
| 79 |