PluginProbe
StockPack – Stock photos and AI images from Unsplash, Adobe Stock, Freepik and more / 2.4.2
StockPack – Stock photos and AI images from Unsplash, Adobe Stock, Freepik and more v2.4.2
3.7.2 3.7.1 3.7.0 3.6.0 3.6.1 3.5.2 trunk 2.0 2.1 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.6.0 2.6.1 All 73 releases
stockpack / vendor / guzzlehttp / psr7 / tests / BaseTest.php

BaseTest.php in StockPack – Stock photos and AI images from Unsplash, Adobe Stock, Freepik and more 2.4.2, at vendor/guzzlehttp/psr7/tests/BaseTest.php

25 lines 656 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace GuzzleHttp\Tests\Psr7;
3
4 use PHPUnit\Framework\TestCase;
5
6 abstract class BaseTest extends TestCase
7 {
8 /**
9 * Make sure expectException always exists, even on PHPUnit 4
10 * @param string $exception
11 * @param string|null $message
12 */
13 public function expectException($exception, $message = null)
14 {
15 if (method_exists($this, 'setExpectedException')) {
16 $this->setExpectedException($exception, $message);
17 } else {
18 parent::expectException($exception);
19 if (null !== $message) {
20 $this->expectExceptionMessage($message);
21 }
22 }
23 }
24 }
25