<commit_before><?php
/**
 * @group Vpc_Basic_Text
 * @group StylesModel
 */
class Vpc_Basic_Text_StylesTest extends Vpc_TestAbstract
{
    public function setUp()
    {
        parent::setUp('Vpc_Basic_Text_Root');
    }

    public function tearDown()
    {
        Vpc_Basic_Text_StylesModel::removeCache();
    }

    public function testStyles()
    {
        $model = Vps_Model_Abstract::getInstance('Vpc_Basic_Text_TestStylesModel');
        $styles = $model->getStyles();
        $this->assertEquals(array('p'=>trlVps('Default'), 'p.style2'=>'Test2', 'h1.style1'=>'Test1'), $styles['block']);
        $this->assertEquals(array('span'=>'Normal', 'span.style3'=>'Test3'), $styles['inline']);
    }

    public function testStylesContent()
    {
        $model = new Vpc_Basic_Text_TestStylesModel();
        Vpc_Basic_Text_TestStylesModel::removeCache();
        $content = $model->getStylesContents();
        $this->assertEquals(".vpcText h1.style1 { font-weight: bold; font-size: 10px; text-align: center; } /* Test1 */
.vpcText p.style2 { font-size: 10px; color: #ff0000; } /* Test2 */
.vpcText span.style3 { font-size: 8px; color: #00ff00; } /* Test3 */\n", $content);
        Vpc_Basic_Text_TestStylesModel::removeCache();
    }
}<commit_msg>fix test, im 2.0er ist das glaub ich eh besser geloest<commit_after><?php
/**
 * @group Vpc_Basic_Text
 * @group StylesModel
 */
class Vpc_Basic_Text_StylesTest extends Vpc_TestAbstract
{
    public function setUp()
    {
        parent::setUp('Vpc_Basic_Text_Root');
    }

    public function tearDown()
    {
        Vpc_Basic_Text_StylesModel::removeCache();
    }

    public function testStyles()
    {
        $model = Vps_Model_Abstract::getInstance('Vpc_Basic_Text_TestStylesModel');
        $styles = $model->getStyles();
        $this->assertEquals(array('p'=>trlVps('Default'), 'p.style2'=>'Test2', 'h1.style1'=>'Test1'), $styles['block']);
        $this->assertEquals(array('span'=>'Normal', 'span.style3'=>'Test3'), $styles['inline']);
    }

    public function testStylesContent()
    {
        $model = new Vpc_Basic_Text_TestStylesModel();
        Vpc_Basic_Text_TestStylesModel::removeCache();
        $content = $model->getStylesContents2();
        $this->assertEquals(".vpcText h1.style1 { font-weight: bold; font-size: 10px; text-align: center; } /* Test1 */
.vpcText p.style2 { font-size: 10px; color: #ff0000; } /* Test2 */
.vpcText span.style3 { font-size: 8px; color: #00ff00; } /* Test3 */\n", $content);
        Vpc_Basic_Text_TestStylesModel::removeCache();
    }
}
{'fraction_non_alphanumeric': 0.16248037676609106, 'fraction_numerical': 0.022370486656200943, 'mean_word_length': 3.7203703703703703, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '348276', 'n_tokens_mistral': 855, 'n_tokens_neox': 856, 'n_words': 142}