<commit_before><?php

require dirname(dirname(__DIR__)) . '/vendor/autoload.php';

use CrowdFlower\Account;

class AccountTest extends \PHPUnit_Framework_TestCase
{
    public function testGetJobs()
    {
        $jobsJson = file_get_contents(
            $this->getFixturePath() . DIRECTORY_SEPARATOR . 'jobs.json'
        );

        $account = new Account($this->getMockedRequest($jobsJson));
        $jobs = $account->getJobs();

        $this->assertEquals(12345, $jobs[0]->getId());
        $this->assertEquals(6789, $jobs[1]->getId());
    }

    public function testCreateEmptyJob()
    {
        $createJobJson = file_get_contents(
            $this->getFixturePath() . DIRECTORY_SEPARATOR . 'createJob.json'
        );

        $account = new Account($this->getMockedRequest($createJobJson));
        $job = $account->createJob();

        $this->assertEquals(5091430, $job->getId());
    }

    public function testCreateJobWithTitle()
    {
        $createJobJson = file_get_contents(
            $this->getFixturePath() . DIRECTORY_SEPARATOR . 'createJob.json'
        );
        $title = "This is my new job";

        $account = new Account($this->getMockedRequest($createJobJson));
        $job = $account->createJob(array(
            "title" => $title
        ));

        $this->assertEquals($title, $job->getTitle());
    }

    public function testCreateJobWithUnits()
    {
        $this->markTestIncomplete(
              'This test has not been implemented yet.'
        );
    }
<commit_msg>fix create job with title test<commit_after><?php

require dirname(dirname(__DIR__)) . '/vendor/autoload.php';

use CrowdFlower\Account;

class AccountTest extends \PHPUnit_Framework_TestCase
{
    public function testGetJobs()
    {
        $jobsJson = file_get_contents(
            $this->getFixturePath() . DIRECTORY_SEPARATOR . 'jobs.json'
        );

        $account = new Account($this->getMockedRequest($jobsJson));
        $jobs = $account->getJobs();

        $this->assertEquals(12345, $jobs[0]->getId());
        $this->assertEquals(6789, $jobs[1]->getId());
    }

    public function testCreateEmptyJob()
    {
        $createJobJson = file_get_contents(
            $this->getFixturePath() . DIRECTORY_SEPARATOR . 'createJob.json'
        );

        $account = new Account($this->getMockedRequest($createJobJson));
        $job = $account->createJob();

        $this->assertEquals(5091430, $job->getId());
    }

    public function testCreateJobWithTitle()
    {
        $createJobJson = file_get_contents(
            $this->getFixturePath() . DIRECTORY_SEPARATOR . 'createJob.json'
        );
        $title = "This is my new job";

        $account = new Account($this->getMockedRequest($createJobJson));
        $job = $account->createJob(array(
            "title" => $title
        ));

        $this->assertEquals($title, $job->getAttribute('title'));
    }

    public function testCreateJobWithUnits()
    {
        $this->markTestIncomplete(
              'This test has not been implemented yet.'
        );
    }

{'fraction_non_alphanumeric': 0.1392156862745098, 'fraction_numerical': 0.011764705882352941, 'mean_word_length': 2.5843091334894615, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 41, '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': '2982392', 'n_tokens_mistral': 941, 'n_tokens_neox': 893, 'n_words': 157}