From 979e9ed0cd9f218dbdcc17c897b6fc56fddbc686 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Bl=C3=A4ul?= Date: Fri, 2 Feb 2018 12:24:42 +0100 Subject: [PATCH] Moved ConditionsTest to properties subfolder --- tests/Bootstrap.php | 2 ++ .../ConditionsTest.php | 29 +------------------ 2 files changed, 3 insertions(+), 28 deletions(-) rename tests/{methods => properties}/ConditionsTest.php (66%) 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); - } }