Moved ConditionsTest to properties subfolder

This commit is contained in:
Christian Bläul
2018-02-02 12:24:42 +01:00
committed by Fonata
parent 75902f4a22
commit ca84469950
2 changed files with 3 additions and 28 deletions

View File

@@ -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';

View File

@@ -1,25 +1,6 @@
<?php
class ConditionsTest extends PHPUnit\Framework\TestCase {
/**
* CSV
* The parseCSV object
*
* @access protected
* @var parseCSV
*/
protected $csv;
/**
* Setup
* Setup our test environment objects
*
* @access public
*/
public function setUp() {
$this->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);
}
}