<commit_before><?php

namespace PhoenixRVD\ODA;

use PHPUnit\Framework\TestCase;

class DataAccessorsTest extends TestCase {

    public function testFoo(){
        $object = new ExampleObject();

        self::assertInstanceOf(ExampleObject::class, $object->setFoo('bar'));
        self::assertTrue($object->hasFoo());
        self::assertTrue($object->isFoo('bar'));
        self::assertEquals('bar', $object->getFoo());

        self::assertFalse($object->hasBar());
        self::assertFalse($object->isBar('foo'));
    }

    /**
     * @expectedException \PhoenixRVD\ODA\Exceptions\NotImplementedException
     * @expectedExceptionMessage Class PhoenixRVD\ODA\ExampleObject has no method callFooBar
     */
    public function testMethodNotFound(){
        $object = new ExampleObject();<commit_msg>Coverage 100%<commit_after><?php

namespace PhoenixRVD\ODA;

use PHPUnit\Framework\TestCase;

class DataAccessorsTest extends TestCase {

    public function testFoo(){
        $object = new ExampleObject();

        self::assertInstanceOf(ExampleObject::class, $object->setFoo('bar'));
        self::assertTrue($object->hasFoo());
        self::assertTrue($object->isFoo('bar'));
        self::assertEquals('bar', $object->getFoo());

        self::assertInstanceOf(ExampleObject::class, $object->setFoo('bar1'));
        self::assertEquals('bar1', $object->getFoo());

        self::assertFalse($object->hasBar());
        self::assertFalse($object->isBar('foo'));
    }

    /**
     * @expectedException \PhoenixRVD\ODA\Exceptions\NotImplementedException
     * @expectedExceptionMessage Class PhoenixRVD\ODA\ExampleObject has no method callFooBar
     */
    public function testMethodNotFound(){
        $object = new ExampleObject();
{'fraction_non_alphanumeric': 0.1484240687679083, 'fraction_numerical': 0.0028653295128939827, 'mean_word_length': 3.9461756373937678, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '5420859', 'n_tokens_mistral': 496, 'n_tokens_neox': 472, 'n_words': 80}