how to handle deny all in testing your web interface?

I have controller with access rules: array(‘deny’, // deny all users ‘users’=>array(’*’), ),

Then i want to test that code (every user authorized or not cant access to this controller via WEB).

public function testShow()

{

$this->open(’?r=link’);

}

And i have error in my console: There was 1 error:

  1. LinkTest::testShow PHPUnit_Framework_Exception: Response from Selenium RC server for testComplete(). XHR ERROR: URL = http://127.0.0.1/url/index-test.php/?r=link Response_Code = 403 Error_Message = CHttpException.

Want to make a test where i can ensure that link controller not visible via web.

Check this: http://jira.openqa.org/browse/SRC-563