mirror of
https://github.com/filp/whoops.git
synced 2026-09-05 15:08:19 +00:00
Modify private method test using TestCase::callPrivateMethod()
This commit is contained in:
@@ -372,11 +372,13 @@ class PlainTextHandlerTest extends TestCase
|
||||
[1, 2, 'Fizz', 4, 'Buzz'],
|
||||
];
|
||||
|
||||
$this->assertEquals('', $handler->dump(new Frame(['args' => $args[0]])));
|
||||
$actual = self::callPrivateMethod($handler, 'dump', [new Frame(['args' => $args[0]])]);
|
||||
$this->assertEquals('', $actual);
|
||||
$this->assertCount(1, $values);
|
||||
$this->assertEquals($args[0], $values[0]->getArgs());
|
||||
|
||||
$this->assertEquals('', $handler->dump(new Frame(['args' => $args[1]])));
|
||||
$actual = self::callPrivateMethod($handler, 'dump', [new Frame(['args' => $args[1]])]);
|
||||
$this->assertEquals('', $actual);
|
||||
$this->assertCount(2, $values);
|
||||
$this->assertEquals($args[1], $values[1]->getArgs());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user