<commit_before><?php

/*
 * This file is part of the Opfura package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Opfura\SchoolBundle\Tests\Model;

use Opfura\SchoolBundle\Model\Course;

/**
 * CourseTest
 *
 * @author <NAME> <<EMAIL>>
 * @since  0.2.0
 */
class CourseTest extends \PHPUnit_Framework_TestCase
{
    /**
     * Test title
     *
     * @author <NAME> <<EMAIL>>
     * @since  0.4.0
     */
    public function testTitle()
    {
        $lesson = new Course;
        $lesson->setTitle('Painting for beginners');

        $this->assertSame(
            'Painting for beginners',
            $lesson->getTitle()
        );
    }

    /**
     * Test createdAt
     *
     * @author <NAME> <<EMAIL>>
     * @since  0.2.0
     */
    public function testCreatedAt()
    {
        $lesson = new Course;
        $lesson->setCreatedAt(new \DateTime(
            '2015-04-04 12:00:00'
        ));

        $this->assertSame(
            '2015-04-04 12:00:00',
            $lesson->getCreatedAt()->format('Y-m-d H:i:s')
        );
    }

    /**
     * Test updatedAt
     *
     * @author <NAME> <<EMAIL>>
     * @since  0.2.0
     */
    public function testUpdatedAt()
    {
        $lesson = new Course;
        $lesson->setUpdatedAt(new \DateTime(
            '2015-04-04 12:00:00'
        ));

        $this->assertSame(
            '2015-04-04 12:00:00',
            $lesson->getUpdatedAt()->format('Y-m-d H:i:s')
        );
    }
}<commit_msg>Renaming lesson -> course in tests<commit_after><?php

/*
 * This file is part of the Opfura package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Opfura\SchoolBundle\Tests\Model;

use Opfura\SchoolBundle\Model\Course;

/**
 * CourseTest
 *
 * @author <NAME> <<EMAIL>>
 * @since  0.2.0
 */
class CourseTest extends \PHPUnit_Framework_TestCase
{
    /**
     * Test title
     *
     * @author <NAME> <<EMAIL>>
     * @since  0.4.0
     */
    public function testTitle()
    {
        $course = new Course;
        $course->setTitle('Painting for beginners');

        $this->assertSame(
            'Painting for beginners',
            $course->getTitle()
        );
    }

    /**
     * Test createdAt
     *
     * @author <NAME> <<EMAIL>>
     * @since  0.2.0
     */
    public function testCreatedAt()
    {
        $course = new Course;
        $course->setCreatedAt(new \DateTime(
            '2015-04-04 12:00:00'
        ));

        $this->assertSame(
            '2015-04-04 12:00:00',
            $course->getCreatedAt()->format('Y-m-d H:i:s')
        );
    }

    /**
     * Test updatedAt
     *
     * @author <NAME> <<EMAIL>>
     * @since  0.2.0
     */
    public function testUpdatedAt()
    {
        $course = new Course;
        $course->setUpdatedAt(new \DateTime(
            '2015-04-04 12:00:00'
        ));

        $this->assertSame(
            '2015-04-04 12:00:00',
            $course->getUpdatedAt()->format('Y-m-d H:i:s')
        );
    }
}
{'fraction_non_alphanumeric': 0.14864433811802233, 'fraction_numerical': 0.043381180223285486, 'mean_word_length': 1.792520035618878, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 50, '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': '2237169', 'n_tokens_mistral': 1117, 'n_tokens_neox': 1024, 'n_words': 218}