/** * Tests the _assertUrl method with too many slashes * * @covers ::_assertUrl * @return void */ public function testAssertUrlWithTooManySlashes() { $this->page = $this->getMock('ExamplePageUrlWithTooManySlashes', array('_beforeOnLoadAssertions', '_assertPageTitle', '_assertElementsPresent', '_afterOnLoadAssertions'), array($this->test)); $this->test->setBrowserUrl('http://localhost/////'); $this->test->expects($this->any())->method('url')->will($this->returnValue('http://localhost/omg.wtf')); $this->page->load(); }