/** * Test description. * * @return void * @expectedException \InvalidArgumentException */ public function testCreateBrowserConfigurationError() { $browser_aliases = array('alias-one' => array()); $test_case = m::mock('aik099\\PHPUnit\\BrowserTestCase'); $test_case->shouldReceive('getBrowserAliases')->once()->andReturn($browser_aliases); $this->_factory->createBrowserConfiguration(array('type' => 'test'), $test_case); }