Skip to content

Commit 84cd763

Browse files
Fix test name (#274)
Signed-off-by: Pushpak Chhajed <[email protected]> Co-authored-by: Thai Nguyen Hung <[email protected]>
1 parent 6eb3c0e commit 84cd763

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Install/GuidelineWriter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function write(string $guidelines): int
6969
}
7070

7171
// Ensure file content ends with a newline
72-
if (! str_ends_with($newContent, "\n")) {
72+
if (! str_ends_with((string) $newContent, "\n")) {
7373
$newContent .= "\n";
7474
}
7575

tests/Unit/Install/CodeEnvironment/CodeEnvironmentTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ public function mcpConfigPath(): string
122122
expect($environment->mcpClientName())->toBe('Test Environment');
123123
});
124124

125-
test('IsAgent returns true when implements Agent interface and has agentName', function (): void {
125+
test('isAgent returns true when implements Agent interface and has agentName', function (): void {
126126
$agent = new TestAgent($this->strategyFactory);
127127

128128
expect($agent->isAgent())->toBe(true);
129129
});
130130

131-
test('IsAgent returns false when does not implement Agent interface', function (): void {
131+
test('isAgent returns false when does not implement Agent interface', function (): void {
132132
$environment = new TestCodeEnvironment($this->strategyFactory);
133133

134134
expect($environment->isAgent())->toBe(false);

tests/Unit/Install/GuidelineWriterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
unlink($tempFile);
101101
});
102102

103-
test('it avoids adding extra newline if one already exists', function () {
103+
test('it avoids adding extra newline if one already exists', function (): void {
104104
$tempFile = tempnam(sys_get_temp_dir(), 'boost_test_');
105105
$initialContent = "# Header\n\n<laravel-boost-guidelines>\nold guidelines\n</laravel-boost-guidelines>\n\n# Footer\n";
106106
file_put_contents($tempFile, $initialContent);

0 commit comments

Comments
 (0)