server/src/tests/Libraries/Transcript/TranscriberTranscriptConverterTest.php
changeset 163 59c68fc4848e
parent 162 a6cf5a06f02d
equal deleted inserted replaced
162:a6cf5a06f02d 163:59c68fc4848e
    16         parent::setup();
    16         parent::setup();
    17         $graphContent = sprintf(file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . self::TEST_DOC_BASE.".ttl"), config('corpusparole.corpus_doc_id_base_uri'), config('corpusparole.corpus_id_scheme'));
    17         $graphContent = sprintf(file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . self::TEST_DOC_BASE.".ttl"), config('corpusparole.corpus_doc_id_base_uri'), config('corpusparole.corpus_id_scheme'));
    18         $this->graph = new EasyRdf\Graph(config('corpusparole.corpus_doc_id_base_uri').self::TEST_DOC_BASE, $graphContent);
    18         $this->graph = new EasyRdf\Graph(config('corpusparole.corpus_doc_id_base_uri').self::TEST_DOC_BASE, $graphContent);
    19         $this->doc = new Document(config('corpusparole.corpus_doc_id_base_uri').self::TEST_DOC_BASE, $this->graph);
    19         $this->doc = new Document(config('corpusparole.corpus_doc_id_base_uri').self::TEST_DOC_BASE, $this->graph);
    20 
    20 
    21         $this->transcriptSource = new DOMDocument();
    21         $this->transcriptSource = file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . self::TEST_DOC_BASE.".xml");
    22         $this->transcriptSource->load(__DIR__ . DIRECTORY_SEPARATOR . self::TEST_DOC_BASE.".xml", LIBXML_NOCDATA|LIBXML_NOBLANKS);
       
    23 
    22 
    24     }
    23     }
    25 
    24 
    26     public function getMockConverter(...$contructorArgs) {
    25     public function getMockConverter(...$contructorArgs) {
    27         return new TranscriberTranscriptConverter(...$contructorArgs);
    26         return new TranscriberTranscriptConverter(...$contructorArgs);