<commit_before><?php
namespace xmarcos\Dot;

use ArrayAccess;
use ArrayObject;
use PHPUnit_Framework_TestCase;

class ContainerTest extends PHPUnit_Framework_TestCase
{
    private $data = null;

    protected function setUp()
    {
        // IssueCommentEvent.json from:
        // https://developer.github.com/v3/activity/events/types/#issuecommentevent
        $this->data = json_decode(
            file_get_contents(__DIR__.'/../fixture/IssueCommentEvent.json'),
            true
        );
    }

    public function testConstructor()
    {
        $dot = new Container();
        $this->assertTrue($dot instanceof Container);
        $this->assertTrue($dot instanceof ArrayAccess);
    }<commit_msg>Update tests to extend from TestCase instead of PHPUnit_Framework_TestCase<commit_after><?php
namespace xmarcos\Dot;

use ArrayAccess;
use ArrayObject;
use PHPUnit\Framework\TestCase;
class ContainerTest extends TestCase
{
    private $data = null;

    /**
     * Setup using IssueCommentEvent.json from
     * https://developer.github.com/v3/activity/events/types/#issuecommentevent
     *
     * @return void
     */
    protected function setUp()
    {
        $this->data = json_decode(
            file_get_contents(__DIR__.'/../fixture/IssueCommentEvent.json'),
            true
        );
    }

    public function testConstructor()
    {
        $dot = new Container();
        $this->assertTrue($dot instanceof Container);
        $this->assertTrue($dot instanceof ArrayAccess);
    }
{'fraction_non_alphanumeric': 0.10719041278295606, 'fraction_numerical': 0.0013315579227696406, 'mean_word_length': 2.7669172932330826, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '4124596', 'n_tokens_mistral': 410, 'n_tokens_neox': 408, 'n_words': 88}