Kraken\_Module\Core\Service\CoreTest::testCaseCore_RegistersAndBootsProviders PHP Method

testCaseCore_RegistersAndBootsProviders() public method

    public function testCaseCore_RegistersAndBootsProviders()
    {
        $core = new Core();
        $core->registerProvider($b = new BProvider());
        $core->registerProvider($a = new AProvider());
        $core->boot();
        $p1 = $core->make(Resource::class);
        $p2 = $core->make(ResourceInterface::class);
        $p = $p1;
        $this->assertSame($p, $p1);
        $this->assertSame($p, $p2);
    }