Added namespace support for further tests

This commit is contained in:
Christian Bläul
2018-02-21 19:04:00 +01:00
parent b0355be96a
commit d3a084d973
3 changed files with 12 additions and 3 deletions

View File

@@ -1,13 +1,18 @@
<?php <?php
class BaseClass extends PHPUnit\Framework\TestCase { namespace ParseCsv\tests\properties;
use ParseCsv\Csv;
use PHPUnit\Framework\TestCase;
class BaseClass extends TestCase {
/** /**
* CSV * CSV
* The parseCSV object * The parseCSV object
* *
* @access protected * @access protected
* @var parseCSV * @var Csv
*/ */
protected $csv; protected $csv;
@@ -18,7 +23,7 @@ class BaseClass extends PHPUnit\Framework\TestCase {
* @access public * @access public
*/ */
public function setUp() { public function setUp() {
$this->csv = new parseCSV(); $this->csv = new Csv();
} }
protected function _compareWithExpected($expected) { protected function _compareWithExpected($expected) {

View File

@@ -1,5 +1,7 @@
<?php <?php
namespace ParseCsv\tests\properties;
class ConditionsTest extends BaseClass { class ConditionsTest extends BaseClass {
public function testNotDanBrown() { public function testNotDanBrown() {

View File

@@ -1,5 +1,7 @@
<?php <?php
namespace ParseCsv\tests\properties;
class SortByTest extends BaseClass { class SortByTest extends BaseClass {
public function testSortByRating() { public function testSortByRating() {