Skip to content

Commit 9c3af9f

Browse files
committed
Fixed tests for main content
1 parent 6c7f192 commit 9c3af9f

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

tests/BaseTest.php

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function __construct($name = null, array $data = array(), $dataName = '')
4646
/**
4747
* Metadata test
4848
*
49-
* @dataProvider fileProvider
49+
* @dataProvider documentProvider
5050
*
5151
* @param string $file
5252
* @param string $class
@@ -177,7 +177,7 @@ public function testDocumentHTML($file)
177177
/**
178178
* Text test
179179
*
180-
* @dataProvider fileProvider
180+
* @dataProvider documentProvider
181181
*
182182
* @param string $file
183183
*/
@@ -189,7 +189,7 @@ public function testDocumentText($file)
189189
/**
190190
* Main text test
191191
*
192-
* @dataProvider fileProvider
192+
* @dataProvider documentProvider
193193
*
194194
* @param string $file
195195
*/
@@ -203,7 +203,7 @@ public function testDocumentMainText($file)
203203
}
204204
else
205205
{
206-
$this->assertContains('Sed quia studebat laudi et dignitati', self::$client->getMainText($file));
206+
$this->assertContains('Lorem ipsum dolor sit amet', self::$client->getMainText($file));
207207
}
208208
}
209209

@@ -270,16 +270,6 @@ public function testVersion()
270270
$this->assertEquals('Apache Tika ' . self::$version, self::$client->getVersion());
271271
}
272272

273-
/**
274-
* Main file provider
275-
*
276-
* @return array
277-
*/
278-
public function fileProvider()
279-
{
280-
return $this->samples('sample1');
281-
}
282-
283273
/**
284274
* Document file provider
285275
*

0 commit comments

Comments
 (0)