<commit_before><?php

namespace Tests;

use TomIrons\Tuxedo\Mailables\InvoiceMailable;

class InvoiceMailableTest extends \PHPUnit_Framework_TestCase
{
    protected $mailable;

    public function setUp()
    {
        parent::setUp();

        $this->mailable = new InvoiceMailable();
    }

    public function testIdMethod()
    {
        $this->assertInstanceOf(InvoiceMailable::class, $this->mailable->id(123456));
    }

    public function testNameMethod()
    {
        $this->assertInstanceOf(InvoiceMailable::class, $this->mailable->name('<NAME>'));
    }

    public function testDateMethod()
    {
        date_default_timezone_set('America/Detroit');
        $this->assertInstanceOf(InvoiceMailable::class, $this->mailable->date(date('l, M j Y \a\t g:i a')));
    }

    public function testDueMethod()
    {
        date_default_timezone_set('America/Detroit');
        $this->assertInstanceOf(InvoiceMailable::class, $this->mailable->due(date('l, M j Y \a\t g:i a', strtotime('+7 days'))));
    }

    public function testUrlMethod()
    {
        $this->assertInstanceOf(InvoiceMailable::class, $this->mailable->url('https://laravel.com'));
    }

    public function testItemsMethod()
    {
        $this->assertInstanceOf(InvoiceMailable::class, $this->mailable->items([
            ['product_name' => 'Example Product', 'product_price' => 123.99],
            ['product_name' => 'Second Product', 'product_price' => 321.99],
        ]));
    }

    public function testCalcuateMethod()
    {
        $this->mailable->items([
            ['product_name' => 'Example Product', 'product_price' => 123.99],
            ['product_name' => 'Second Product', 'product_price' => 321.99]
        ]);
        $this->assertInstanceOf(InvoiceMailable::class, $this->mailable->calculate(3, 15));
    }
}<commit_msg>Apply fixes from StyleCI<commit_after><?php

namespace Tests;

use TomIrons\Tuxedo\Mailables\InvoiceMailable;

class InvoiceMailableTest extends \PHPUnit_Framework_TestCase
{
    protected $mailable;

    public function setUp()
    {
        parent::setUp();

        $this->mailable = new InvoiceMailable();
    }

    public function testIdMethod()
    {
        $this->assertInstanceOf(InvoiceMailable::class, $this->mailable->id(123456));
    }

    public function testNameMethod()
    {
        $this->assertInstanceOf(InvoiceMailable::class, $this->mailable->name('<NAME>'));
    }

    public function testDateMethod()
    {
        date_default_timezone_set('America/Detroit');
        $this->assertInstanceOf(InvoiceMailable::class, $this->mailable->date(date('l, M j Y \a\t g:i a')));
    }

    public function testDueMethod()
    {
        date_default_timezone_set('America/Detroit');
        $this->assertInstanceOf(InvoiceMailable::class, $this->mailable->due(date('l, M j Y \a\t g:i a', strtotime('+7 days'))));
    }

    public function testUrlMethod()
    {
        $this->assertInstanceOf(InvoiceMailable::class, $this->mailable->url('https://laravel.com'));
    }

    public function testItemsMethod()
    {
        $this->assertInstanceOf(InvoiceMailable::class, $this->mailable->items([
            ['product_name' => 'Example Product', 'product_price' => 123.99],
            ['product_name' => 'Second Product', 'product_price' => 321.99],
        ]));
    }

    public function testCalcuateMethod()
    {
        $this->mailable->items([
            ['product_name' => 'Example Product', 'product_price' => 123.99],
            ['product_name' => 'Second Product', 'product_price' => 321.99],
        ]);
        $this->assertInstanceOf(InvoiceMailable::class, $this->mailable->calculate(3, 15));
    }
}
{'fraction_non_alphanumeric': 0.15727571115973743, 'fraction_numerical': 0.016411378555798686, 'mean_word_length': 3.2131336405529956, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 69, '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': '2204361', 'n_tokens_mistral': 1188, 'n_tokens_neox': 1117, 'n_words': 185}