vendor directory

This commit is contained in:
2019-09-29 19:47:00 -05:00
parent c9b2854faa
commit 81d2278ac8
10384 changed files with 1089068 additions and 1 deletions

View File

@@ -0,0 +1,51 @@
<?php declare(strict_types=1);
/*
* This file is part of the php-code-coverage package.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\CodeCoverage\tests\Exception;
use PHPUnit\Framework\TestCase;
use SebastianBergmann\CodeCoverage\RuntimeException;
use SebastianBergmann\CodeCoverage\UnintentionallyCoveredCodeException;
final class UnintentionallyCoveredCodeExceptionTest extends TestCase
{
public function testCanConstructWithEmptyArray(): void
{
$unintentionallyCoveredUnits = [];
$exception = new UnintentionallyCoveredCodeException($unintentionallyCoveredUnits);
$this->assertInstanceOf(RuntimeException::class, $exception);
$this->assertSame($unintentionallyCoveredUnits, $exception->getUnintentionallyCoveredUnits());
$this->assertSame('', $exception->getMessage());
}
public function testCanConstructWithNonEmptyArray(): void
{
$unintentionallyCoveredUnits = [
'foo',
'bar',
'baz',
];
$exception = new UnintentionallyCoveredCodeException($unintentionallyCoveredUnits);
$this->assertInstanceOf(RuntimeException::class, $exception);
$this->assertSame($unintentionallyCoveredUnits, $exception->getUnintentionallyCoveredUnits());
$expected = <<<TXT
- foo
- bar
- baz
TXT;
$this->assertSame($expected, $exception->getMessage());
}
}