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

View File

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