/** * @covers Mage_Selenium_Helper_Config::setScreenshotDir * @depends testGetSetScreenshotDir */ public function testSetScreenshotDirInvalidParameterException() { $configHelper = new Mage_Selenium_Helper_Config($this->_config); $this->setExpectedException('PHPUnit_Framework_Error_Warning', 'mkdir():'); $configHelper->setScreenshotDir(null); }
/** * Set default screenshot path (config) * * @param string $path * * @return Mage_Selenium_TestCase */ public function setDefaultScreenshotPath($path) { $this->_configHelper->setScreenshotDir($path); $this->setScreenshotPath($path); return $this; }