<commit_before><?php

namespace Mildberry\Library\ContentFormatter\Test\Unit;

use Mildberry\Library\ContentFormatter\Item\BlockQuoteItem;
use Mildberry\Library\ContentFormatter\Item\CollectionItem;
use Mildberry\Library\ContentFormatter\Item\HeadLineItem;
use Mildberry\Library\ContentFormatter\Item\ImageItem;
use Mildberry\Library\ContentFormatter\Item\ParagraphItem;
use Mildberry\Library\ContentFormatter\Item\TextItem;
use PHPUnit_Framework_TestCase;

/**
 * @author <NAME> <<EMAIL>>
 */
class ContentFormatterItemsTest extends PHPUnit_Framework_TestCase
{
    public function testSuccessBlockQuoteItem()
    {
        $item = new BlockQuoteItem();
        try {
            $item->setContent('content');
            $this->assertTrue(true);
        } catch (\Exception $e) {
            $this->assertTrue(false);
        }
    }

    public function testSuccessCollectionItem()
    {
        $item = new CollectionItem();
        try {
            $this->assertTrue(true);
        } catch (\Exception $e) {
            $this->assertTrue(false);
        }
    }

    public function testSuccessHeadLineItem()
    {
        $item = new HeadLineItem();
        try {
            $item->setContent('content');
            $item->setWeight('h1');
            $this->assertTrue(true);
        } catch (\Exception $e) {
            $this->assertTrue(false);
        }
    }

    public function testSuccessImageItem()
    {
        $item = new ImageItem();
        try {
            $item->setFloating('left');
            $item->setSize('wide');
            $item->setSrc('http://www.ya.ru');
            $this->assertTrue(true);
        } catch (\Exception $e) {
            $this->assertTrue(false);
        }
    }

    public function testParagraphItem()
    {
        $item = new ParagraphItem();
        try {
            $item->setAlignment('center');
            $this->assertTrue(true);
        } catch (\Exception $e) {
            $this->assertTrue(false);
        }
    }

    public function testSuccessTextItem()
    {
        $item = new TextItem();
        try {
            $item->setContent('content');
            $item->setColor('info');
            $this->assertTrue(true);
        } catch (\Exception $e) {
            $this->assertTrue(false);
        }
    }
}<commit_msg>fix image test data<commit_after><?php

namespace Mildberry\Library\ContentFormatter\Test\Unit;

use Mildberry\Library\ContentFormatter\Item\BlockQuoteItem;
use Mildberry\Library\ContentFormatter\Item\CollectionItem;
use Mildberry\Library\ContentFormatter\Item\HeadLineItem;
use Mildberry\Library\ContentFormatter\Item\ImageItem;
use Mildberry\Library\ContentFormatter\Item\ParagraphItem;
use Mildberry\Library\ContentFormatter\Item\TextItem;
use PHPUnit_Framework_TestCase;

/**
 * @author <NAME> <<EMAIL>>
 */
class ContentFormatterItemsTest extends PHPUnit_Framework_TestCase
{
    public function testSuccessBlockQuoteItem()
    {
        $item = new BlockQuoteItem();
        try {
            $item->setContent('content');
            $this->assertTrue(true);
        } catch (\Exception $e) {
            $this->assertTrue(false);
        }
    }

    public function testSuccessCollectionItem()
    {
        $item = new CollectionItem();
        try {
            $this->assertTrue(true);
        } catch (\Exception $e) {
            $this->assertTrue(false);
        }
    }

    public function testSuccessHeadLineItem()
    {
        $item = new HeadLineItem();
        try {
            $item->setContent('content');
            $item->setWeight('h1');
            $this->assertTrue(true);
        } catch (\Exception $e) {
            $this->assertTrue(false);
        }
    }

    public function testSuccessImageItem()
    {
        $item = new ImageItem();
        try {
            $item->setFloating('left');
            $item->setSize('wide');
            $item->setSrc('https://www.ya.ru/favicon.ico');
            $this->assertTrue(true);
        } catch (\Exception $e) {
            $this->assertTrue(false);
        }
    }

    public function testParagraphItem()
    {
        $item = new ParagraphItem();
        try {
            $item->setAlignment('center');
            $this->assertTrue(true);
        } catch (\Exception $e) {
            $this->assertTrue(false);
        }
    }

    public function testSuccessTextItem()
    {
        $item = new TextItem();
        try {
            $item->setContent('content');
            $item->setColor('info');
            $this->assertTrue(true);
        } catch (\Exception $e) {
            $this->assertTrue(false);
        }
    }
}
{'fraction_non_alphanumeric': 0.13353566009104703, 'fraction_numerical': 0.00043355733795794494, 'mean_word_length': 2.11336032388664, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 51, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, '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': '1446149', 'n_tokens_mistral': 1276, 'n_tokens_neox': 1269, 'n_words': 213}