@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | public function canExtractDuration(): void |
38 | 38 | { |
39 | - $xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/audioVideo.xml'); |
|
39 | + $xml = simplexml_load_file(__DIR__.'/../../Fixtures/Format/audioVideo.xml'); |
|
40 | 40 | $audioVideoMD = new AudioVideoMD(); |
41 | 41 | |
42 | 42 | $videoXml = $xml->xpath('//mets:xmlData')[0]; |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | */ |
24 | 24 | public function getRawData(): void |
25 | 25 | { |
26 | - $xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/alto.xml'); |
|
26 | + $xml = simplexml_load_file(__DIR__.'/../../Fixtures/Format/alto.xml'); |
|
27 | 27 | $alto = new Alto(); |
28 | 28 | |
29 | 29 | $rawText = $alto->getRawText($xml); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function getTextAsMiniOcr(): void |
39 | 39 | { |
40 | - $xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/alto.xml'); |
|
40 | + $xml = simplexml_load_file(__DIR__.'/../../Fixtures/Format/alto.xml'); |
|
41 | 41 | $alto = new Alto(); |
42 | 42 | |
43 | 43 | $rawText = $alto->getTextAsMiniOcr($xml); |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | */ |
76 | 76 | public function getTextAsMiniOcrNoTextBlock(): void |
77 | 77 | { |
78 | - $xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/altoNoTextBlock.xml'); |
|
78 | + $xml = simplexml_load_file(__DIR__.'/../../Fixtures/Format/altoNoTextBlock.xml'); |
|
79 | 79 | $alto = new Alto(); |
80 | 80 | |
81 | 81 | $rawText = $alto->getTextAsMiniOcr($xml); |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | public function getTextAsMiniOcrNoTextline(): void |
91 | 91 | { |
92 | - $xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/altoNoTextLine.xml'); |
|
92 | + $xml = simplexml_load_file(__DIR__.'/../../Fixtures/Format/altoNoTextLine.xml'); |
|
93 | 93 | $alto = new Alto(); |
94 | 94 | |
95 | 95 | $rawText = $alto->getTextAsMiniOcr($xml); |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | */ |
104 | 104 | public function getTextAsMiniOcrNoString(): void |
105 | 105 | { |
106 | - $xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/altoNoString.xml'); |
|
106 | + $xml = simplexml_load_file(__DIR__.'/../../Fixtures/Format/altoNoString.xml'); |
|
107 | 107 | $alto = new Alto(); |
108 | 108 | |
109 | 109 | $rawText = $alto->getTextAsMiniOcr($xml); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | { |
37 | 37 | parent::tearDown(); |
38 | 38 | |
39 | - unlink(__DIR__ . '/../../Fixtures/Repository/tokenTemp.csv'); |
|
39 | + unlink(__DIR__.'/../../Fixtures/Repository/tokenTemp.csv'); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -45,8 +45,8 @@ discard block |
||
45 | 45 | */ |
46 | 46 | public function deleteExpiredTokens(): void |
47 | 47 | { |
48 | - $inputCsvFile = __DIR__ . '/../../Fixtures/Repository/token.csv'; |
|
49 | - $outputCsvFile = __DIR__ . '/../../Fixtures/Repository/tokenTemp.csv'; |
|
48 | + $inputCsvFile = __DIR__.'/../../Fixtures/Repository/token.csv'; |
|
49 | + $outputCsvFile = __DIR__.'/../../Fixtures/Repository/tokenTemp.csv'; |
|
50 | 50 | |
51 | 51 | $inputCsvData = file_get_contents($inputCsvFile); |
52 | 52 | $csvData = str_getcsv($inputCsvData, "\n"); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | 20000 |
33 | 33 | ); |
34 | 34 | |
35 | - $this->importCSVDataSet(__DIR__ . '/../../Fixtures/Repository/collections.csv'); |
|
35 | + $this->importCSVDataSet(__DIR__.'/../../Fixtures/Repository/collections.csv'); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
@@ -31,9 +31,9 @@ |
||
31 | 31 | |
32 | 32 | $this->documentRepository = $this->initializeRepository(DocumentRepository::class, 20000); |
33 | 33 | |
34 | - $this->importCSVDataSet(__DIR__ . '/../../Fixtures/Common/documents_1.csv'); |
|
35 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/pages.xml'); |
|
36 | - $this->importCSVDataSet(__DIR__ . '/../../Fixtures/Common/libraries.csv'); |
|
34 | + $this->importCSVDataSet(__DIR__.'/../../Fixtures/Common/documents_1.csv'); |
|
35 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/pages.xml'); |
|
36 | + $this->importCSVDataSet(__DIR__.'/../../Fixtures/Common/libraries.csv'); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
@@ -32,7 +32,7 @@ |
||
32 | 32 | 20000 |
33 | 33 | ); |
34 | 34 | |
35 | - $this->importCSVDataSet(__DIR__ . '/../../Fixtures/Repository/mail.csv'); |
|
35 | + $this->importCSVDataSet(__DIR__.'/../../Fixtures/Repository/mail.csv'); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
@@ -32,7 +32,7 @@ |
||
32 | 32 | 20000 |
33 | 33 | ); |
34 | 34 | |
35 | - $this->importCSVDataSet(__DIR__ . '/../../Fixtures/Repository/metadata.csv'); |
|
35 | + $this->importCSVDataSet(__DIR__.'/../../Fixtures/Repository/metadata.csv'); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 |
@@ -86,7 +86,7 @@ |
||
86 | 86 | ]); |
87 | 87 | |
88 | 88 | self::assertEquals(200, $response->getStatusCode()); |
89 | - self::assertEquals('This is some plain text test file.' . "\n", (string) $response->getBody()); |
|
89 | + self::assertEquals('This is some plain text test file.'."\n", (string) $response->getBody()); |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
@@ -51,15 +51,15 @@ discard block |
||
51 | 51 | { |
52 | 52 | parent::setUp(); |
53 | 53 | |
54 | - $this->oaiUrl = $this->baseUrl . 'index.php?id=' . $this->oaiPage; |
|
55 | - $this->oaiUrlNoStoragePid = $this->baseUrl . 'index.php?id=' . $this->oaiPageNoStoragePid; |
|
54 | + $this->oaiUrl = $this->baseUrl.'index.php?id='.$this->oaiPage; |
|
55 | + $this->oaiUrlNoStoragePid = $this->baseUrl.'index.php?id='.$this->oaiPageNoStoragePid; |
|
56 | 56 | |
57 | - $this->importCSVDataSet(__DIR__ . '/../../Fixtures/Common/documents_1.csv'); |
|
58 | - $this->importCSVDataSet(__DIR__ . '/../../Fixtures/Common/metadata.csv'); |
|
59 | - $this->importCSVDataSet(__DIR__ . '/../../Fixtures/Common/libraries.csv'); |
|
60 | - $this->importCSVDataSet(__DIR__ . '/../../Fixtures/Common/pages.csv'); |
|
61 | - $this->importDataSet(__DIR__ . '/../../Fixtures/OaiPmh/pages.xml'); |
|
62 | - $this->importCSVDataSet(__DIR__ . '/../../Fixtures/OaiPmh/solrcores.csv'); |
|
57 | + $this->importCSVDataSet(__DIR__.'/../../Fixtures/Common/documents_1.csv'); |
|
58 | + $this->importCSVDataSet(__DIR__.'/../../Fixtures/Common/metadata.csv'); |
|
59 | + $this->importCSVDataSet(__DIR__.'/../../Fixtures/Common/libraries.csv'); |
|
60 | + $this->importCSVDataSet(__DIR__.'/../../Fixtures/Common/pages.csv'); |
|
61 | + $this->importDataSet(__DIR__.'/../../Fixtures/OaiPmh/pages.xml'); |
|
62 | + $this->importCSVDataSet(__DIR__.'/../../Fixtures/OaiPmh/solrcores.csv'); |
|
63 | 63 | |
64 | 64 | $this->solrCoreRepository = $this->initializeRepository(SolrCoreRepository::class, 20000); |
65 | 65 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $coreName = Solr::createCore(); |
76 | 76 | $solr = Solr::getInstance($coreName); |
77 | 77 | |
78 | - $this->importSolrDocuments($solr, __DIR__ . '/../../Fixtures/Common/documents_1.solr.json'); |
|
78 | + $this->importSolrDocuments($solr, __DIR__.'/../../Fixtures/Common/documents_1.solr.json'); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | $oaiCoreModel = $this->solrCoreRepository->findByUid(11001); |