<?php use Spatie\FlareClient\Flare; use Spatie\Ignition\Config\IgnitionConfig; use Spatie\Ignition\ErrorPage\ErrorPageViewModel; it('can encode invalid user data', function () { $flareClient = Flare::make(); $exception = new Exception('Test Exception'); $report = $flareClient->createReport($exception); $report->group('bad-utf8', [ 'name' => 'JohnDoe'.utf8_decode('ø'), ]); $model = new ErrorPageViewModel($exception, new IgnitionConfig([]), $report, []); $this->assertNotEmpty($model->jsonEncode($report->toArray())); });
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Config | Folder | 0755 |
|
|
Mocks | Folder | 0755 |
|
|
Solutions | Folder | 0755 |
|
|
TestClasses | Folder | 0755 |
|
|
stubs | Folder | 0755 |
|
|
temp | Folder | 0755 |
|
|
ErrorPageViewModelTest.php | File | 589 B | 0644 |
|
FlareTest.php | File | 1.26 KB | 0644 |
|
IgnitionTest.php | File | 3.65 KB | 0644 |
|
IntegrationTest.php | File | 1.34 KB | 0644 |
|
Pest.php | File | 419 B | 0644 |
|