Changed tests to work now that we have a namespace

This commit is contained in:
Christian Bläul
2018-02-18 19:40:21 +01:00
parent f2fb7c81bd
commit af7368378c
2 changed files with 7 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ class default_values_properties_Test extends TestCase {
* The parseCSV object * The parseCSV object
* *
* @access protected * @access protected
* @var [parseCSV] * @var Csv
*/ */
protected $csv = null; protected $csv = null;
@@ -23,7 +23,7 @@ class default_values_properties_Test extends TestCase {
*/ */
public function setUp() { public function setUp() {
//setup parse CSV //setup parse CSV
$this->csv = new parseCSV(); $this->csv = new Csv();
} }
/** /**

View File

@@ -11,7 +11,7 @@ class DefaultValuesTest extends TestCase {
* The parseCSV object * The parseCSV object
* *
* @access protected * @access protected
* @var [parseCSV] * @var Csv
*/ */
protected $csv = null; protected $csv = null;
@@ -20,7 +20,7 @@ class DefaultValuesTest extends TestCase {
* The reflection class object * The reflection class object
* *
* @access protected * @access protected
* @var [ReflectionClass] * @var \ReflectionClass
*/ */
protected $reflection = null; protected $reflection = null;
@@ -28,6 +28,7 @@ class DefaultValuesTest extends TestCase {
* Reflection Properties * Reflection Properties
* The reflected class properties * The reflected class properties
* *
* @var \ReflectionProperty[]
* @access protected * @access protected
*/ */
protected $properties = null; protected $properties = null;
@@ -43,7 +44,7 @@ class DefaultValuesTest extends TestCase {
$this->csv = new Csv(); $this->csv = new Csv();
//setup the reflection class //setup the reflection class
$this->reflection = new ReflectionClass($this->csv); $this->reflection = new \ReflectionClass($this->csv);
//setup the reflected class properties //setup the reflected class properties
$this->properties = $this->reflection->getProperties(); $this->properties = $this->reflection->getProperties();
@@ -116,7 +117,7 @@ class DefaultValuesTest extends TestCase {
); );
// Find our real properties // Find our real properties
$real_properties = array_map(function (ReflectionProperty $property) { $real_properties = array_map(function (\ReflectionProperty $property) {
return $property->getName(); return $property->getName();
}, $this->properties); }, $this->properties);