Phpunit Testing Only Index Page


A few days ago I set up phpunit, updated the inbuilt phpunit via pear, installed selenium server, installed phpunit/PHPUnit_Selenium.

Testing the site/index page works fine. However, any asserts are failing while functional testing any other pages, which is leading me to think that the other pages are not being loaded.

Any ideas?

A sample test would be:

public function testContact()


    $this->open('site/contact'); // OR 'contact' OR '?r=site/contact'

    $this->assertTextPresent('Contact Us');


oops… my bad… I was using a url managing function which led Selenium to navigate to localhost/site/contact, totally skipping the application name.