Skip to content
This repository was archived by the owner on Feb 15, 2023. It is now read-only.

Commit e8cba28

Browse files
committed
Add returns on tests, just because.
1 parent 552e0b2 commit e8cba28

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

tests/FlexBridgeDatabaseTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ public function setUp()
4141
);
4242
}
4343

44-
public function testNotOnPlatformshDoesNotSetDatabase()
44+
public function testNotOnPlatformshDoesNotSetDatabase() : void
4545
{
4646
mapPlatformShEnvironment();
4747

4848
$this->assertArrayNotHasKey('DATABASE_URL', $_SERVER);
4949
}
5050

51-
public function testNoRelationships()
51+
public function testNoRelationships() : void
5252
{
5353
// We assume no relationships array, but a PLATFORM_APPLICATION env var,
5454
// means we're in a build hook.
@@ -62,7 +62,7 @@ public function testNoRelationships()
6262
$this->assertEquals($this->defaultDbUrl, $_SERVER['DATABASE_URL']);
6363
}
6464

65-
public function testNoDatabaseRelationship()
65+
public function testNoDatabaseRelationship() : void
6666
{
6767
putenv('PLATFORM_APPLICATION=test');
6868

@@ -76,7 +76,7 @@ public function testNoDatabaseRelationship()
7676
$this->assertEquals($this->defaultDbUrl, $_SERVER['DATABASE_URL']);
7777
}
7878

79-
public function testDatabaseRelationshipSet()
79+
public function testDatabaseRelationshipSet() : void
8080
{
8181
putenv('PLATFORM_APPLICATION=test');
8282
putenv(sprintf('PLATFORM_RELATIONSHIPS=%s', base64_encode(json_encode($this->relationships))));

tests/FlexBridgeTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
class FlexBridgeTest extends TestCase
99
{
1010

11-
public function testDoesNotRunWithoutPlatformshVariables()
11+
public function testDoesNotRunWithoutPlatformshVariables() : void
1212
{
1313
mapPlatformShEnvironment();
1414

1515
$this->assertFalse(getenv('APP_SECRET'));
1616
}
1717

18-
public function testSetAppSecret()
18+
public function testSetAppSecret() : void
1919
{
2020
putenv('PLATFORM_APPLICATION=test');
2121
putenv('PLATFORM_PROJECT_ENTROPY=test');
@@ -25,7 +25,7 @@ public function testSetAppSecret()
2525
$this->assertEquals('test', $_SERVER['APP_SECRET']);
2626
}
2727

28-
public function testDontChangeAppSecret()
28+
public function testDontChangeAppSecret() : void
2929
{
3030
putenv('PLATFORM_APPLICATION=test');
3131
putenv('PLATFORM_PROJECT_ENTROPY=test');
@@ -36,7 +36,7 @@ public function testDontChangeAppSecret()
3636
$this->assertEquals('original', $_SERVER['APP_SECRET']);
3737
}
3838

39-
public function testAppEnvAlreadySetInServer()
39+
public function testAppEnvAlreadySetInServer() : void
4040
{
4141
putenv('PLATFORM_APPLICATION=test');
4242
$_SERVER['APP_ENV'] = 'dev';
@@ -46,7 +46,7 @@ public function testAppEnvAlreadySetInServer()
4646
$this->assertEquals('dev', $_SERVER['APP_ENV']);
4747
}
4848

49-
public function testAppEnvAlreadySetInEnv()
49+
public function testAppEnvAlreadySetInEnv() : void
5050
{
5151
putenv('PLATFORM_APPLICATION=test');
5252
putenv('APP_ENV=dev');
@@ -56,7 +56,7 @@ public function testAppEnvAlreadySetInEnv()
5656
$this->assertEquals('dev', $_SERVER['APP_ENV']);
5757
}
5858

59-
public function testAppEnvNeedsDefault()
59+
public function testAppEnvNeedsDefault() : void
6060
{
6161
putenv('PLATFORM_APPLICATION=test');
6262

0 commit comments

Comments
 (0)