Skip to content

Commit a473bca

Browse files
committed
Correct stdClass capitalization
1 parent 3e27947 commit a473bca

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/FiltererTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Exception;
66
use InvalidArgumentException;
77
use PHPUnit\Framework\TestCase;
8-
use StdClass;
8+
use stdClass;
99
use TraderInteractive\Exceptions\FilterException;
1010

1111
/**
@@ -379,7 +379,7 @@ public static function passingFilter($value)
379379
public function filterWithNonStringError()
380380
{
381381
Filterer::filter(
382-
['fieldOne' => [['strtoupper'], 'error' => new StdClass()]],
382+
['fieldOne' => [['strtoupper'], 'error' => new stdClass()]],
383383
['fieldOne' => 'valueOne']
384384
);
385385
}
@@ -436,7 +436,7 @@ public function ofScalarsWithMeaninglessKeys()
436436
public function ofScalarsFail()
437437
{
438438
try {
439-
Filterer::ofScalars(['1', [], new \StdClass], [['string']]);
439+
Filterer::ofScalars(['1', [], new stdClass], [['string']]);
440440
$this->fail();
441441
} catch (FilterException $e) {
442442
$expected = <<<TXT
@@ -495,7 +495,7 @@ public function ofArraysFail()
495495
{
496496
try {
497497
Filterer::ofArrays(
498-
[['key' => new \StdClass], ['key' => []], ['key' => null], 'key'],
498+
[['key' => new stdClass], ['key' => []], ['key' => null], 'key'],
499499
['key' => [['string']]]
500500
);
501501
$this->fail();

0 commit comments

Comments
 (0)