private function getLibPath() { $reflection = new ReflectionClass('Behat\\Gherkin\\Gherkin'); $libPath = rtrim(dirname($reflection->getFilename()) . '/../../../', DIRECTORY_SEPARATOR); return $libPath; }