• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PHP-Alchemist / coreFiles / 15332481648

29 May 2025 08:04PM UTC coverage: 95.833% (-0.6%) from 96.481%
15332481648

Pull #13

github

druid628
Removed Unused
Pull Request #13: json to class functionality

31 of 36 new or added lines in 3 files covered. (86.11%)

552 of 576 relevant lines covered (95.83%)

4.82 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/src/Exceptions/BadJsonException.php
1
<?php
2

3
namespace PHPAlchemist\Exceptions;
4

5
class BadJsonException extends \Exception
6
{
7
    const DEFAULT_MESSAGE = 'Invalid JSON';
8

9
    public function __construct(
2✔
10
        $message = self::DEFAULT_MESSAGE,
11
        $code = 0,
12
        $previous = null
13
    ) {
14
        if (empty($message)) {
2✔
NEW
15
            $this->message = self::DEFAULT_MESSAGE;
×
16
        }
17

18
        parent::__construct($message, $code, $previous);
2✔
19
    }
20
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc