<commit_before><?php

namespace Cascade\Tests\Exceptions;

use Cascade\Exceptions\ExceptionWithContext;

class ExceptionWithContextTest extends \PHPUnit_Framework_TestCase
{
    public function testItShouldPassThroughStandardDataToTheBaseExceptionClass()
    {
        $previousException = new \Exception('previousMessage');

        $exception = new ExceptionWithContext('message', [], 42, $previousException);

        $this->assertEquals('message', $exception->getMessage());
        $this->assertEquals(42, $exception->getCode());
        $this->assertSame($previousException, $exception->getPrevious());
    }

    public function testItShouldAllowTheContextToBeRetrieved()
    {
        $context = new \stdClass();

        $exception = new ExceptionWithContext('message', $context);

        $this->assertSame($context, $exception->getContext());
    }
}<commit_msg>Clean up some extra spacing<commit_after><?php

namespace Cascade\Tests\Exceptions;

use Cascade\Exceptions\ExceptionWithContext;

class ExceptionWithContextTest extends \PHPUnit_Framework_TestCase
{
    public function testItShouldPassThroughStandardDataToTheBaseExceptionClass()
    {
        $previousException = new \Exception('previousMessage');
        $exception = new ExceptionWithContext('message', [], 42, $previousException);

        $this->assertEquals('message', $exception->getMessage());
        $this->assertEquals(42, $exception->getCode());
        $this->assertSame($previousException, $exception->getPrevious());
    }

    public function testItShouldAllowTheContextToBeRetrieved()
    {
        $context = new \stdClass();
        $exception = new ExceptionWithContext('message', $context);

        $this->assertSame($context, $exception->getContext());
    }
}
{'fraction_non_alphanumeric': 0.12514220705346984, 'fraction_numerical': 0.004550625711035267, 'mean_word_length': 4.479750778816199, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '7145154', 'n_tokens_mistral': 452, 'n_tokens_neox': 437, 'n_words': 80}