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

ICanBoogie / bind-activerecord / 4260608769

pending completion
4260608769

push

github

Olivier Laviale
Add the console commands 'activerecord:connections:list' and 'activerecord:models:list'

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

93 of 101 relevant lines covered (92.08%)

1.14 hits per line

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

66.67
/lib/Factory.php
1
<?php
2

3
/*
4
 * This file is part of the ICanBoogie package.
5
 *
6
 * (c) Olivier Laviale <olivier.laviale@gmail.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
namespace ICanBoogie\Binding\ActiveRecord;
13

14
use ICanBoogie\ActiveRecord\ConnectionCollection;
15
use ICanBoogie\ActiveRecord\ConnectionProvider;
16
use ICanBoogie\ActiveRecord\ModelCollection;
17
use ICanBoogie\ActiveRecord\ModelProvider;
18
use ICanBoogie\Application;
19

20
/**
21
 * Builds container services.
22
 */
23
final class Factory
24
{
25
    public static function build_config(Application $app): Config
26
    {
27
        return $app->configs->config_for_class(Config::class);
×
28
    }
29

30
    public static function build_connections(Config $config): ConnectionProvider
31
    {
32
        return new ConnectionCollection($config->connections);
1✔
33
    }
34

35
    public static function build_models(ConnectionProvider $connections, Config $config): ModelProvider
36
    {
37
        return new ModelCollection($connections, $config->models);
1✔
38
    }
39
}
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