From 21444c467b43d949f4ce8275c077731a8caf4317 Mon Sep 17 00:00:00 2001 From: Denis Smet Date: Sun, 28 Jan 2024 12:45:58 +0400 Subject: [PATCH] Remove leading backslashes from ArrayObject class references in tests --- tests/Fixtures.php | 2 +- tests/phpbench/CreateObject.php | 4 ++-- tests/phpbench/GetUndefinedValue.php | 4 ++-- tests/phpbench/GetValue.php | 4 ++-- tests/phpbench/GetValueInner.php | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/Fixtures.php b/tests/Fixtures.php index 118651b..12d754f 100644 --- a/tests/Fixtures.php +++ b/tests/Fixtures.php @@ -14,6 +14,6 @@ declare(strict_types=1); -class Fixtures extends \ArrayObject +class Fixtures extends ArrayObject { } diff --git a/tests/phpbench/CreateObject.php b/tests/phpbench/CreateObject.php index ea6b3b9..a337d96 100644 --- a/tests/phpbench/CreateObject.php +++ b/tests/phpbench/CreateObject.php @@ -45,7 +45,7 @@ public function init(): void */ public function benchArrayObjectOrig(): void { - new \ArrayObject($this->data); + new ArrayObject($this->data); } /** @@ -53,7 +53,7 @@ public function benchArrayObjectOrig(): void */ public function benchArrayObjectExtOrig(): void { - new \ArrayObjectExt($this->data); + new ArrayObjectExt($this->data); } /** diff --git a/tests/phpbench/GetUndefinedValue.php b/tests/phpbench/GetUndefinedValue.php index cc3ed60..8640c85 100644 --- a/tests/phpbench/GetUndefinedValue.php +++ b/tests/phpbench/GetUndefinedValue.php @@ -38,8 +38,8 @@ public function init(): void { $this->array = DataFixture::createRandomArray(); $this->data = new Data($this->array); - $this->arrObj = new \ArrayObject($this->array); - $this->arrObjExt = new \ArrayObjectExt($this->array); + $this->arrObj = new ArrayObject($this->array); + $this->arrObjExt = new ArrayObjectExt($this->array); } /** diff --git a/tests/phpbench/GetValue.php b/tests/phpbench/GetValue.php index 9dd2978..1a0ea69 100644 --- a/tests/phpbench/GetValue.php +++ b/tests/phpbench/GetValue.php @@ -39,8 +39,8 @@ public function init(): void { $this->array = Fixture::createRandomArray(); $this->data = new Data($this->array); - $this->arrObj = new \ArrayObject($this->array); - $this->arrObjExt = new \ArrayObjectExt($this->array); + $this->arrObj = new ArrayObject($this->array); + $this->arrObjExt = new ArrayObjectExt($this->array); } /** diff --git a/tests/phpbench/GetValueInner.php b/tests/phpbench/GetValueInner.php index 93d2739..478c54c 100644 --- a/tests/phpbench/GetValueInner.php +++ b/tests/phpbench/GetValueInner.php @@ -39,8 +39,8 @@ public function init(): void { $this->array = Fixture::createRandomArray(); $this->data = new Data($this->array); - $this->arrObj = new \ArrayObject($this->array); - $this->arrObjExt = new \ArrayObjectExt($this->array); + $this->arrObj = new ArrayObject($this->array); + $this->arrObjExt = new ArrayObjectExt($this->array); } /**