You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
656 B
24 lines
656 B
<?php
|
|
namespace GuzzleHttp\Tests\Psr7;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
abstract class BaseTest extends TestCase
|
|
{
|
|
/**
|
|
* Make sure expectException always exists, even on PHPUnit 4
|
|
* @param string $exception
|
|
* @param string|null $message
|
|
*/
|
|
public function expectException($exception, $message = null)
|
|
{
|
|
if (method_exists($this, 'setExpectedException')) {
|
|
$this->setExpectedException($exception, $message);
|
|
} else {
|
|
parent::expectException($exception);
|
|
if (null !== $message) {
|
|
$this->expectExceptionMessage($message);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|