|
5 | 5 | use Exception; |
6 | 6 | use InvalidArgumentException; |
7 | 7 | use PHPUnit\Framework\TestCase; |
8 | | -use StdClass; |
| 8 | +use stdClass; |
9 | 9 | use TraderInteractive\Exceptions\FilterException; |
10 | 10 |
|
11 | 11 | /** |
@@ -379,7 +379,7 @@ public static function passingFilter($value) |
379 | 379 | public function filterWithNonStringError() |
380 | 380 | { |
381 | 381 | Filterer::filter( |
382 | | - ['fieldOne' => [['strtoupper'], 'error' => new StdClass()]], |
| 382 | + ['fieldOne' => [['strtoupper'], 'error' => new stdClass()]], |
383 | 383 | ['fieldOne' => 'valueOne'] |
384 | 384 | ); |
385 | 385 | } |
@@ -436,7 +436,7 @@ public function ofScalarsWithMeaninglessKeys() |
436 | 436 | public function ofScalarsFail() |
437 | 437 | { |
438 | 438 | try { |
439 | | - Filterer::ofScalars(['1', [], new \StdClass], [['string']]); |
| 439 | + Filterer::ofScalars(['1', [], new stdClass], [['string']]); |
440 | 440 | $this->fail(); |
441 | 441 | } catch (FilterException $e) { |
442 | 442 | $expected = <<<TXT |
@@ -495,7 +495,7 @@ public function ofArraysFail() |
495 | 495 | { |
496 | 496 | try { |
497 | 497 | Filterer::ofArrays( |
498 | | - [['key' => new \StdClass], ['key' => []], ['key' => null], 'key'], |
| 498 | + [['key' => new stdClass], ['key' => []], ['key' => null], 'key'], |
499 | 499 | ['key' => [['string']]] |
500 | 500 | ); |
501 | 501 | $this->fail(); |
|
0 commit comments