Skip to content

Commit

Permalink
ClassStrings tests setup/teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
jnvsor committed Sep 26, 2024
1 parent 6109e0a commit 9c53005
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/KintTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
use Kint\Parser\ArrayLimitPlugin;
use Kint\Parser\BlacklistPlugin;
use Kint\Parser\ClassHooksPlugin;
use Kint\Parser\ClassStringsPlugin;
use Kint\Parser\DomPlugin;
use Kint\Parser\FsPathPlugin;
use Kint\Parser\SerializePlugin;
Expand Down Expand Up @@ -69,6 +70,7 @@ class KintTestCase extends TestCase
protected $dom_plugin_blacklist;
protected $dom_plugin_verbose;
protected $classhooks_verbose;
protected $classstrings_blacklist;

protected function setUp(): void
{
Expand Down Expand Up @@ -99,6 +101,7 @@ protected function setUp(): void
$this->dom_plugin_blacklist = DomPlugin::$blacklist;
$this->dom_plugin_verbose = DomPlugin::$verbose;
$this->classhooks_verbose = ClassHooksPlugin::$verbose;
$this->classstrings_blacklist = ClassStringsPlugin::$blacklist;
}

protected function tearDown(): void
Expand Down Expand Up @@ -132,6 +135,7 @@ protected function tearDown(): void
DomPlugin::$blacklist = $this->dom_plugin_blacklist;
DomPlugin::$verbose = $this->dom_plugin_verbose;
ClassHooksPlugin::$verbose = $this->classhooks_verbose;
ClassStringsPlugin::$blacklist = $this->classstrings_blacklist;
}

public function assertLike(array $expected, string $actual, string $message = '')
Expand Down

0 comments on commit 9c53005

Please sign in to comment.