public function isMethodCacheable() { return in_array($this->getMethod(), array('GET', 'HEAD')); }
/** * @dataProvider methodCacheableProvider */ public function testMethodCacheable($method, $chacheable) { $request = new Request(); $request->setMethod($method); $this->assertEquals($chacheable, $request->isMethodCacheable()); }