<commit_before><?php
// Copyright (c) 2017, 2018 by <NAME>. (MIT License)

declare(strict_types=1);

namespace tpawl\lite\Tests;

use PHPUnit\Framework\TestCase;
use TPawl\LiTE\Assertion\Assertion;
use TPawl\LiTE\Exceptions\AssertionException;

class AssertionTest extends TestCase
{   
    public function testAssertNeverReachesHereThrowsAnException()
    {
        $this->expectException(AssertionException::class);
		$this->expectExceptionMessage('abc');
		
        Assertion::assertNeverReachesHere('abc');
    }
    
    public function testAssertNotIsNull()
    {
        Assertion::assertNotIsNull('notNull');
        
        $this->assertTrue(true);
    }
    
    public function testAssertNotIsNullThrowsAnException()
    {
        $this->expectException(AssertionException::class);
		$this->expectExceptionMessage('abc');
		
        Assertion::assertNotIsNull(null, 'abc');
    }
    
    public function testAssertNotIsEmptyString()
    {
        Assertion::assertNotIsEmptyString('notEmpty');
        
        $this->assertTrue(true);
    }
    
    public function testAssertNotIsEmptyStringThrowsAnException()
    {
        $this->expectException(AssertionException::class);
		$this->expectExceptionMessage('abc');
		
        Assertion::assertNotIsEmptyString('', 'abc');
    }
}<commit_msg>Update AssertionsTest.php<commit_after><?php
// Copyright (c) 2017 - 2021 by <NAME>. (MIT License)

declare(strict_types=1);

namespace tpawl\lite\Tests;

use PHPUnit\Framework\TestCase;
use TPawl\LiTE\Assertion\Assertion;
use TPawl\LiTE\Exceptions\AssertionException;

class AssertionsTest extends TestCase
{   
    public function testAssertNeverReachesHereThrowsAnException()
    {
        $this->expectException(AssertionException::class);
		$this->expectExceptionMessage('abc');
		
        Assertion::assertNeverReachesHere('abc');
    }
    
    public function testAssertNotNull()
    {
        Assertion::assertNotNull('not null');
        
        $this->assertTrue(true);
    }
    
    public function testAssertNotNullThrowsAnException()
    {
        $this->expectException(AssertionException::class);
		$this->expectExceptionMessage('abc');
		
        Assertion::assertNotNull(null, 'abc');
    }
    
    public function testAssertNotEmptyString()
    {
        Assertion::assertNotEmptyString('not empty');
        
        $this->assertTrue(true);
    }
    
    public function testAssertNotEmptyStringThrowsAnException()
    {
        $this->expectException(AssertionException::class);
		$this->expectExceptionMessage('abc');
		
        Assertion::assertNotEmptyString('', 'abc');
    }
}
{'fraction_non_alphanumeric': 0.1182096403978577, 'fraction_numerical': 0.006885998469778117, 'mean_word_length': 3.532062391681109, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 21, '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': '6311183', 'n_tokens_mistral': 782, 'n_tokens_neox': 748, 'n_words': 107}