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

ICanBoogie / ActiveRecord / 8366801652

20 Mar 2024 10:35PM UTC coverage: 84.036% (-1.7%) from 85.731%
8366801652

push

github

olvlvl
Remove query method forwarding and ArrayAccessor implementation

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

93 existing lines in 5 files now uncovered.

1395 of 1660 relevant lines covered (84.04%)

21.2 hits per line

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

50.0
/lib/ActiveRecord/Config/Assert.php
1
<?php
2

3
namespace ICanBoogie\ActiveRecord\Config;
4

5
use ICanBoogie\ActiveRecord;
6
use ICanBoogie\ActiveRecord\Model;
7
use LogicException;
8

9
use function is_subclass_of;
10

11
final class Assert
12
{
13
    public static function extends_model(string $value): void
14
    {
UNCOV
15
        is_subclass_of($value, Model::class)
×
UNCOV
16
            or throw new LogicException("'$value' is not extending " . Model::class);
×
17
    }
18

19
    public static function extends_activerecord(string $value, string $message = null): void
20
    {
21
        is_subclass_of($value, ActiveRecord::class)
63✔
22
            or throw new LogicException($message ?? "'$value' is not extending " . ActiveRecord::class);
63✔
23
    }
24
}
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