public function testGetCSSWithCustomStyleCSS()
 {
     create_custom_directory('themes/' . $this->_themeObject->__toString() . '/css/');
     sugar_file_put_contents('custom/themes/' . $this->_themeObject->__toString() . '/css/style.css', 'h3 { color: red; }');
     $matches = array();
     preg_match_all('/href="([^"]+)"/', $this->_themeObject->getCSS(), $matches);
     $i = 0;
     $this->assertRegExp('/themes\\/' . $this->_themeObject->__toString() . '\\/css\\/yui.css/', $matches[1][$i++]);
     $this->assertRegExp('/themes\\/' . $this->_themeObject->__toString() . '\\/css\\/deprecated.css/', $matches[1][$i++]);
     $this->assertRegExp('/themes\\/' . $this->_themeObject->__toString() . '\\/css\\/style.css/', $matches[1][$i++]);
     $output = file_get_contents(sugar_cached('themes/') . $this->_themeObject->__toString() . '/css/style.css');
     $this->assertRegExp('/h2\\{display:inline\\}h3\\{color:red\\}/', $output);
 }