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

RonasIT / laravel-helpers / 27943505341

22 Jun 2026 09:37AM UTC coverage: 86.933% (+0.1%) from 86.813%
27943505341

Pull #287

github

web-flow
Merge 6c8111d23 into 44b397b99
Pull Request #287: feat: implement queue assertion helpers

20 of 21 new or added lines in 2 files covered. (95.24%)

1284 of 1477 relevant lines covered (86.93%)

20.09 hits per line

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

85.71
/src/Traits/ReflectionTrait.php
1
<?php
2

3
namespace RonasIT\Support\Traits;
4

5
use ReflectionClass;
6

7
trait ReflectionTrait
8
{
9
    protected function getObjectAttributes(object $object): array
10
    {
11
        $reflection = new ReflectionClass($object);
4✔
12
        $attributes = [];
4✔
13

14
        foreach ($reflection->getProperties() as $property) {
4✔
15
            if ($property->isStatic() || !$property->isInitialized($object)) {
4✔
NEW
16
                continue;
×
17
            }
18

19
            $attributes[$property->getName()] = $property->getValue($object);
4✔
20
        }
21

22
        return $attributes;
4✔
23
    }
24
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc