| 123456789101112131415161718192021222324252627282930 |
- <?php
- namespace Test\Michel\Debug;
- use Michel\Debug\Output\VarDumperOutput\CliPrintOutput;
- use Michel\Debug\VarDumper;
- use Michel\UniTester\TestCase;
- class VarDumperTest extends TestCase
- {
- protected function setUp(): void
- {
- // TODO: Implement setUp() method.
- }
- protected function tearDown(): void
- {
- // TODO: Implement tearDown() method.
- }
- protected function execute(): void
- {
- $output = new CliPrintOutput(5, function ($dumped) {
- $this->assertEquals('(string) "foo"'.PHP_EOL, $dumped);
- });
- $varDumper = new VarDumper($output);
- $varDumper->dump('foo');
- }
- }
|