Bolt\Tests\Events\MountEventTest::testMountInvalidCollectionConnect PHP Method

testMountInvalidCollectionConnect() public method

    public function testMountInvalidCollectionConnect()
    {
        $app = $this->getApp();
        $route = new Route('/');
        $controllers = $this->getMockControllerCollection(['connect', 'mount'], $route);
        $controllers->expects($this->never())->method('mount');
        $this->setExpectedException('LogicException', 'The method "Bolt\\Tests\\Events\\ControllerMock::connect" must return a "ControllerCollection" instance. Got: "Bolt\\Tests\\Events\\ClippyKoala"');
        $mountEvent = new MountEvent($app, $controllers);
        $mountEvent->mount('/', new ControllerMock($route));
    }