| | 60 | $this->request->getFilteredValue($mockFilter, 'foo'); |
|---|
| | 61 | } |
|---|
| | 62 | |
|---|
| | 63 | /** |
|---|
| | 64 | * test that values are prefixed as expected |
|---|
| | 65 | */ |
|---|
| | 66 | public function testChangedValue() |
|---|
| | 67 | { |
|---|
| | 68 | $this->request->setPrefix('bar'); |
|---|
| | 69 | $this->mockRequest->expect('hasValue', array('bar_foo', stubRequest::SOURCE_PARAM)); |
|---|
| | 70 | $this->request->hasValue('foo'); |
|---|
| | 71 | |
|---|
| | 72 | $mockValidator = new MockStubValidator(); |
|---|
| | 73 | $this->mockRequest->expect('validateValue', array($mockValidator, 'bar_foo', stubRequest::SOURCE_PARAM)); |
|---|
| | 74 | $this->request->validateValue($mockValidator, 'foo'); |
|---|
| | 75 | |
|---|
| | 76 | $this->mockRequest->expect('getValidatedValue', array($mockValidator, 'bar_foo', stubRequest::SOURCE_PARAM)); |
|---|
| | 77 | $this->request->getValidatedValue($mockValidator, 'foo'); |
|---|
| | 78 | |
|---|
| | 79 | $mockFilter = new MockStubFilter(); |
|---|
| | 80 | $this->mockRequest->expect('getFilteredValue', array($mockFilter, 'bar_foo', stubRequest::SOURCE_PARAM)); |
|---|