Skip to content

Commit 38f639a

Browse files
committed
feat: create Future class
1 parent 9e16d0e commit 38f639a

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

src/Redmine/Future.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Redmine;
6+
7+
/**
8+
* @internal
9+
*/
10+
final class Future
11+
{
12+
public static function isForwardCompatibilityEnabled(): bool
13+
{
14+
return false;
15+
}
16+
}

tests/Unit/FutureTest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Redmine\Tests\Unit;
6+
7+
use PHPUnit\Framework\TestCase;
8+
use Redmine\Future;
9+
10+
final class FutureTest extends TestCase
11+
{
12+
public function testIsForwardCompatabilityEnabledReturnsFalseByDefault(): void
13+
{
14+
self::assertFalse(Future::isForwardCompatibilityEnabled());
15+
}
16+
}

0 commit comments

Comments
 (0)