mirror of
https://github.com/Karaka-Management/oms-Search.git
synced 2026-02-01 11:28:40 +00:00
27 lines
661 B
PHP
27 lines
661 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace JohnKary\PHPUnit\Listener\Tests;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class ExceptionalTest extends TestCase
|
|
{
|
|
public function testExceptionCanBeThrownInTest()
|
|
{
|
|
$this->expectException('InvalidArgumentException');
|
|
$this->expectExceptionMessage('CODE1');
|
|
throw new \InvalidArgumentException('CODE1');
|
|
}
|
|
|
|
public function testSkippedTest()
|
|
{
|
|
$this->markTestSkipped('Skipped tests do not cause Exceptions in Listener');
|
|
}
|
|
|
|
public function testIncompleteTest()
|
|
{
|
|
$this->markTestIncomplete('Incomplete tests do not cause Exceptions in Listener');
|
|
}
|
|
}
|
|
|