Kraken\_Unit\Supervision\SupervisorTest::testApiSetSolver_ResolvesHandler_WhenPassedNameOfExistingHandler PHP Метод

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

    public function testApiSetSolver_ResolvesHandler_WhenPassedNameOfExistingHandler()
    {
        $super = $this->createSupervisor();
        $super->setSolver(Exception::class, 'TestHandler');
        $result = $super->getSolver(Exception::class);
        $this->assertInstanceOf(SolverInterface::class, $result);
    }