public function startSSO2Test(\SimpleSAML_Configuration $idpMetadata, array $state) { $reflector = new \ReflectionObject($this); $method = $reflector->getMethod('startSSO2'); $method->setAccessible(true); $method->invoke($this, $idpMetadata, $state); }