__DIR__.'/../../Pest.php', 'line' => 5, ]); } }; expect(str_replace(DIRECTORY_SEPARATOR, '/', ThrowableBuilder::from($exception)->stackTrace())) ->toContain('tests/Unit/Overrides/../../Pest.php:5') ->and(str_replace(DIRECTORY_SEPARATOR, '/', ThrowableBuilder::from(new Exception('test'))->stackTrace())) ->toContain('tests/Unit/Overrides/ThrowableBuilder.php:26'); });