File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -25,18 +25,23 @@ public function testEmbedlyExtractsExpectedContent()
25
25
$ this ->assertEquals ($ this ->getExpectedEmbedlyExtractedContent (), $ content );
26
26
}
27
27
28
+ protected function getDataFileContents (string $ filename ): string
29
+ {
30
+ return file_get_contents (__DIR__ . '/../Data/ ' . $ filename );
31
+ }
32
+
28
33
protected function getExpectedGooseExtractedContent (): Content
29
34
{
30
35
$ content = new Content ();
31
- $ content ->text = file_get_contents ( __DIR__ . ' /../Data/extracted- text-goose.txt ' );
36
+ $ content ->text = $ this -> getDataFileContents ( ' text-extract -goose.txt ' );
32
37
33
38
return $ content ;
34
39
}
35
40
36
41
protected function getExpectedEmbedlyExtractedContent (): Content
37
42
{
38
43
$ content = new Content ();
39
- $ content ->text = file_get_contents ( __DIR__ . ' /../Data/extracted- text-embedly.txt ' );
44
+ $ content ->text = $ this -> getDataFileContents ( ' text-extract -embedly.txt ' );
40
45
41
46
return $ content ;
42
47
}
You can’t perform that action at this time.
0 commit comments