public function createForDocumentation(array $files): array
    {
        if (in_array(Constants::TEST_TYPE_DOCUMENTATION, $this->types)) {
            $definitions = [];
            foreach ($files as $file) {
                $key = $this->getTestGroupNameForDocumentationFile($file);
                $definitions[$key] = $this->collectDefinitionsForFile($file);
            }

            return $definitions;
        }

        return [];
    }
public function createForDocumentation(array $files): array
    {
        if (in_array(Constants::TEST_TYPE_DOCUMENTATION, $this->types)) {
            $definitions = [];
            foreach ($files as $file) {
                $key = $this->getTestGroupNameForDocumentationFile($file);
                $definitions[$key] = $this->collectDefinitionsForFile($file);
            }

            return $definitions;
        }

        return [];
    }
public function createForDocumentation ( array $ files ) : array { if ( in_array ( Constants :: TEST_TYPE_DOCUMENTATION , $ this -> types ) ) { $ definitions = [ ] ; foreach ( $ files as $ file ) { $ key = $ this -> getTestGroupNameForDocumentationFile ( $ file ) ; $ definitions [ $ key ] = $ this -> collectDefinitionsForFile ( $ file ) ; } return $ definitions ; } return [ ] ; }
Create the test definitions for the given documentation files

@param FileInterface[] $files
@return DefinitionInterface[][]
Create the test definitions for the given documentation files