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

gr8man / kohana-php8 / 34395466698

09 Sep 2026 07:30PM UTC coverage: 80.73% (+0.2%) from 80.517%
34395466698

push

github

gr8man
chore: upgrade to PHPUnit 10.5 with backward compatibility and session test cleanup

24 of 40 new or added lines in 3 files covered. (60.0%)

13 existing lines in 6 files now uncovered.

6787 of 8407 relevant lines covered (80.73%)

12.8 hits per line

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

92.86
/modules/codebench/classes/Bench/UserFuncArray.php
1
<?php
2

3
declare(strict_types=1);
4
defined('SYSPATH') or die('No direct access allowed.');
5
/**
6
 * @package    Kohana/Codebench
7
 * @category   Tests
8
 * @author     Woody Gilk <woody.gilk@kohanaphp.com>
9
 */
10
class Bench_UserFuncArray extends Codebench
11
{
12
        public $description =
13
                'Testing the speed difference of using <code>call_user_func_array</code>
14
                 compared to counting args and doing manual calls.';
15

16
        public $loops = 100000;
17

18
        public $subjects = array(
19
                // Argument sets
20
                array(),
21
                array('one'),
22
                array('one', 'two'),
23
                array('one', 'two', 'three'),
24
        );
25

26
        public function bench_count_args($args): void
1✔
27
        {
28
                $name = 'callme';
1✔
29
                match (count($args)) {
1✔
30
                        1 => $this->$name($args[0]),
1✔
31
                        2 => $this->$name($args[0], $args[1]),
1✔
32
                        3 => $this->$name($args[0], $args[1], $args[2]),
1✔
UNCOV
33
                        4 => $this->$name($args[0], $args[1], $args[2], $args[3]),
×
34
                        default => call_user_func_array(array($this, $name), $args),
1✔
35
                };
1✔
36
        }
37

38
        public function bench_direct_call($args): void
1✔
39
        {
40
                $name = 'callme';
1✔
41
                call_user_func_array(array($this, $name), $args);
1✔
42
        }
43

44
        protected function callme(): int
1✔
45
        {
46
                return count(func_get_args());
1✔
47
        }
48

49
}
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