Skip to content

Commit d911afe

Browse files
committed
Change CI_VERSION
1 parent 2587c83 commit d911afe

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-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: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace CodeIgniter\AutoReview;
1313

14-
use InvalidArgumentException;
1514
use PHPUnit\Framework\Attributes\CoversNothing;
1615
use PHPUnit\Framework\Attributes\DataProvider;
1716
use PHPUnit\Framework\Attributes\Group;
@@ -65,6 +64,10 @@ public function testCreateNewChangelog(string $mode): void
6564
"Version {$newVersion}",
6665
$this->getContents("./user_guide_src/source/changelogs/v{$newVersion}.rst"),
6766
);
67+
$this->assertStringContainsString(
68+
"**{$newVersion} release of CodeIgniter4**",
69+
$this->getContents("./user_guide_src/source/changelogs/v{$newVersion}.rst"),
70+
);
6871
$this->assertStringContainsString(
6972
$newVersion,
7073
$this->getContents('./user_guide_src/source/changelogs/index.rst'),
@@ -106,7 +109,7 @@ private function incrementVersion(string $version, string $mode = 'patch'): stri
106109
'major' => sprintf('%d.0.0', ++$parts[0]),
107110
'minor' => sprintf('%d.%d.0', $parts[0], ++$parts[1]),
108111
'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".'),
112+
default => $this->fail('Invalid version increment mode. Use "major", "minor", or "patch".'),
110113
};
111114
}
112115

0 commit comments

Comments
 (0)