Kraken\_Unit\Runtime\_Case\RuntimeCase::testProtectedApiInternalBoot_CallsBootMethod PHP Метод

testProtectedApiInternalBoot_CallsBootMethod() публичный Метод

    public function testProtectedApiInternalBoot_CallsBootMethod()
    {
        $test = $this->getTest();
        $core = $test->getMock(Core::class, [], [], '', false);
        $result = 'result';
        $runtime = $this->createRuntime([], ['boot']);
        $runtime->expects($test->once())->method('boot')->with($core)->will($test->returnValue($result));
        $test->assertSame($result, $runtime->internalBoot($core));
    }