Skip to content

Commit d16f3b0

Browse files
committed
Change CI_VERSION
1 parent 2587c83 commit d16f3b0

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

system/CodeIgniter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class CodeIgniter
5555
/**
5656
* The current version of CodeIgniter Framework
5757
*/
58-
public const CI_VERSION = '4.7.0';
58+
public const CI_VERSION = '4.7.1-dev';
5959

6060
/**
6161
* App startup time.

tests/system/AutoReview/CreateNewChangelogTest.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
/**
46
* This file is part of CodeIgniter 4 framework.
57
*
@@ -11,7 +13,6 @@
1113

1214
namespace CodeIgniter\AutoReview;
1315

14-
use InvalidArgumentException;
1516
use PHPUnit\Framework\Attributes\CoversNothing;
1617
use PHPUnit\Framework\Attributes\DataProvider;
1718
use PHPUnit\Framework\Attributes\Group;
@@ -65,6 +66,10 @@ public function testCreateNewChangelog(string $mode): void
6566
"Version {$newVersion}",
6667
$this->getContents("./user_guide_src/source/changelogs/v{$newVersion}.rst"),
6768
);
69+
$this->assertStringContainsString(
70+
"**{$newVersion} release of CodeIgniter4**",
71+
$this->getContents("./user_guide_src/source/changelogs/v{$newVersion}.rst"),
72+
);
6873
$this->assertStringContainsString(
6974
$newVersion,
7075
$this->getContents('./user_guide_src/source/changelogs/index.rst'),
@@ -106,7 +111,7 @@ private function incrementVersion(string $version, string $mode = 'patch'): stri
106111
'major' => sprintf('%d.0.0', ++$parts[0]),
107112
'minor' => sprintf('%d.%d.0', $parts[0], ++$parts[1]),
108113
'patch' => sprintf('%d.%d.%d', $parts[0], $parts[1], ++$parts[2]),
109-
default => throw new InvalidArgumentException('Invalid version increment mode. Use "major", "minor", or "patch".'),
114+
default => $this->fail('Invalid version increment mode. Use "major", "minor", or "patch".'),
110115
};
111116
}
112117

0 commit comments

Comments
 (0)