diff --git a/tests/Bootstrap.php b/tests/Bootstrap.php index 0999d1c..f87a6a3 100644 --- a/tests/Bootstrap.php +++ b/tests/Bootstrap.php @@ -9,3 +9,5 @@ if (!class_exists('PHPUnit\Framework\TestCase')) { // we run on an older PHPUnit version without namespaces. require_once __DIR__ . '/PHPUnit_Framework_TestCase.inc.php'; } + +require_once BASE . 'tests/properties/BaseClass.php'; diff --git a/tests/methods/ConditionsTest.php b/tests/properties/ConditionsTest.php similarity index 66% rename from tests/methods/ConditionsTest.php rename to tests/properties/ConditionsTest.php index 245721f..7326209 100644 --- a/tests/methods/ConditionsTest.php +++ b/tests/properties/ConditionsTest.php @@ -1,25 +1,6 @@ csv = new parseCSV(); - } +class ConditionsTest extends BaseClass { public function testNotDanBrown() { $this->csv->conditions = 'author does not contain dan brown'; @@ -63,12 +44,4 @@ class ConditionsTest extends PHPUnit\Framework\TestCase { 'The Da Vinci Code (Hardcover)', ]); } - - protected function _compareWithExpected($expected) { - $this->csv->auto(__DIR__ . '/../../examples/_books.csv'); - $actual = array_map(function ($row) { - return $row['title']; - }, $this->csv->data); - $this->assertEquals($expected, $actual); - } }