Skip to content

Commit 4eceed7

Browse files
author
Greg Bowler
committed
Consisten environment variable name
1 parent 0ec6966 commit 4eceed7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/ci-coverage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ jobs:
2020
args: --coverage-text
2121
env:
2222
XDEBUG_MODE: coverage
23+
TEST_NAME: Scarlett

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: PHPUnit Tests
1515
uses: php-actions/phpunit@v2
1616
env:
17-
name: Scarlett
17+
TEST_NAME: Scarlett
1818
with:
1919
bootstrap: vendor/autoload.php
2020
configuration: test/phpunit.xml

test/EnvGreeterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function testEnvFromSystem() {
1414
$greeter = new EnvGreeter();
1515
self::assertStringContainsString(
1616
"Hello, Scarlett",
17-
$greeter->greetFromEnv("NAME")
17+
$greeter->greetFromEnv("TEST_NAME")
1818
);
1919
}
2020
}

0 commit comments

Comments
 (0)