Allow current working dir to be different when running tests

...By using an absolute path
This commit is contained in:
Christian Bläul
2018-02-18 19:02:37 +01:00
parent 736bc489e6
commit 9551862a95

View File

@@ -132,7 +132,7 @@ class ParseTest extends PHPUnit\Framework\TestCase {
* @depends testSepRowAutoDetection
*/
public function testGetColumnDatatypes() {
$this->csv->auto('tests/methods/fixtures/datatype.csv');
$this->csv->auto(__DIR__ . '/fixtures/datatype.csv');
$this->csv->getDatatypes();
$expected = [
'title' => 'string',