Skip to content

Commit 049e80e

Browse files
committed
Added StatelessFetchExceptionHandler test just for coverage.
1 parent e8e88d3 commit 049e80e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
namespace ScriptFUSIONTest\Unit\Porter\Connector\FetchExceptionHandler;
3+
4+
use ScriptFUSION\Porter\Connector\FetchExceptionHandler\StatelessFetchExceptionHandler;
5+
6+
/**
7+
* @see StatelessFetchExceptionHandler
8+
*/
9+
final class StatelessFetchExceptionHandlerTest extends \PHPUnit_Framework_TestCase
10+
{
11+
/**
12+
* Tests that the initialize() method does not throw any exception. This test exists solely for code coverage.
13+
*/
14+
public function testInitialize()
15+
{
16+
(new StatelessFetchExceptionHandler(static function () {
17+
// Intentionally empty.
18+
}))->initialize();
19+
20+
// PHPUnit asserts no exception is thrown.
21+
}
22+
}

0 commit comments

Comments
 (0)