From af7368378c12cdd1a70e6dc64cb090349b0718de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Bl=C3=A4ul?= Date: Sun, 18 Feb 2018 19:40:21 +0100 Subject: [PATCH] Changed tests to work now that we have a namespace --- tests/properties/default_values_test.php | 4 ++-- tests/properties/worthless_test.php | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/properties/default_values_test.php b/tests/properties/default_values_test.php index 74077ca..ab803b9 100644 --- a/tests/properties/default_values_test.php +++ b/tests/properties/default_values_test.php @@ -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(); } /** diff --git a/tests/properties/worthless_test.php b/tests/properties/worthless_test.php index 7a9b993..36f036b 100644 --- a/tests/properties/worthless_test.php +++ b/tests/properties/worthless_test.php @@ -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);