Kraken\_Unit\Supervision\SupervisorTest::testApiSetSolver_ResolvesHandler_WhenPassedNameOfExistingHandler PHP Method

testApiSetSolver_ResolvesHandler_WhenPassedNameOfExistingHandler() public method

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