public function testIsPostOnPost() { $_SERVER['REQUEST_METHOD'] = 'post'; $container = self::getContainerAsFixture(['global.server' => new Parameters($_SERVER)]); $controller = new Controller($container); $method = $this->getInvokableMethod('isPost'); $this->assertTrue($method->invoke($controller)); }