Skip to content

Commit

Permalink
Remove leading backslashes from ArrayObject class references in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Smet committed Jan 28, 2024
1 parent dafc383 commit 21444c4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/Fixtures.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@

declare(strict_types=1);

class Fixtures extends \ArrayObject
class Fixtures extends ArrayObject
{
}
4 changes: 2 additions & 2 deletions tests/phpbench/CreateObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ public function init(): void
*/
public function benchArrayObjectOrig(): void
{
new \ArrayObject($this->data);
new ArrayObject($this->data);
}

/**
* @Groups({"Native", "ArrayObject", "Extended"})
*/
public function benchArrayObjectExtOrig(): void
{
new \ArrayObjectExt($this->data);
new ArrayObjectExt($this->data);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/phpbench/GetUndefinedValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/phpbench/GetValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/phpbench/GetValueInner.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 21444c4

Please sign in to comment.