<commit_before><?php
/**
 * @copyright Bluz PHP Team
 * @link https://github.com/bluzphp/framework
 */

/**
 * @namespace
 */
namespace Bluz\Tests\Registry;

use Bluz;
use Bluz\Registry\Registry;

/**
 * RegistryTest
 *
 * @package  Bluz\Tests
 *
 * @author   <NAME>
 * @created  14.05.2014 11:09
 */
class RegistryTest extends Bluz\Tests\TestCase
{
    /**
     * @var Registry
     */
    protected $registry;

    /**
     * setUp
     *
     * @return void
     */
    function setUp()
    {
        parent::setUp();

        $this->registry = new Registry();
    }

    /**
     * setDataTest
     *
     * @covers \Bluz\Registry\Registry::setData()
     * @return void
     */
    public function testSetData()
    {
        $data = ['foo' => 'bar'];

        $this->registry->setData($data);

        $this->assertEquals('bar', $this->registry->__get('foo'));
    }

    /**
     * Complex test for setter/getter
     *
     * @covers \Bluz\Registry\Registry::__set()
     * @covers \Bluz\Registry\Registry::__get()
     * @return void
     */
    public function testSetGet()
    {<commit_msg>Added tests for Bluz\Registry package<commit_after><?php
/**
 * @copyright Bluz PHP Team
 * @link https://github.com/bluzphp/framework
 */

/**
 * @namespace
 */
namespace Bluz\Tests\Registry;

use Bluz;
use Bluz\Registry\Registry;

/**
 * RegistryTest
 *
 * @package  Bluz\Tests
 *
 * @author   <NAME>
 * @created  14.05.2014 11:09
 */
class RegistryTest extends Bluz\Tests\TestCase
{
    /**
     * @var Registry
     */
    protected $registry;

    /**
     * setUp
     *
     * @return void
     */
    function setUp()
    {
        parent::setUp();

        $this->registry = new Registry();
    }

    /**
     * setDataTest
     *
     * @covers \Bluz\Registry\Registry::setData()
     * @return void
     */
    public function testSetData()
    {
        $data = ['foo' => 'bar'];

        $this->registry->setData($data);

        $this->assertEquals('bar', $this->registry->__get('foo'));
    }

    /**
     * Complex test for setter/getter
     *
     * @covers \Bluz\Registry\Registry::__set()
     * @covers \Bluz\Registry\Registry::__get()
     * @return void
     */
    public function testSetGet()
    {
        $this->assertNull($this->registry->foo);

{'fraction_non_alphanumeric': 0.16520210896309315, 'fraction_numerical': 0.01054481546572935, 'mean_word_length': 2.1149110807113543, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 22, 'https://': 2, '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': '5377968', 'n_tokens_mistral': 775, 'n_tokens_neox': 740, 'n_words': 137}