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

ICanBoogie / ActiveRecord / 11873528571

16 Nov 2024 09:57PM UTC coverage: 86.125%. Remained the same
11873528571

push

github

olvlvl
Test against PHP 8.4

2 of 3 new or added lines in 3 files covered. (66.67%)

2 existing lines in 1 file now uncovered.

1378 of 1600 relevant lines covered (86.13%)

24.48 hits per line

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

0.0
/lib/ActiveRecord/ScopeNotDefined.php
1
<?php
2

3
namespace ICanBoogie\ActiveRecord;
4

5
use LogicException;
6
use Throwable;
7

8
/**
9
 * Exception thrown in attempt to obtain a scope that is not defined.
10
 */
11
class ScopeNotDefined extends LogicException implements Exception
12
{
13
    public function __construct(
14
        public readonly string $scope_name,
15
        public readonly Model $model,
16
        ?Throwable $previous = null,
17
    ) {
NEW
18
        parent::__construct($this->format_message($scope_name, $model), previous: $previous);
×
19
    }
20

21
    private function format_message(string $scope_name, Model $model): string
22
    {
23
        return "Unknown scope `$scope_name` for model `$model->unprefixed_name`.";
×
24
    }
25
}
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