Skip to content

Commit 309a605

Browse files
committed
replace single quotes with double quotes
1 parent a85da39 commit 309a605

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

test/unit/UnitySiteTest.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -84,56 +84,56 @@ public function testTestValidSSHKey(bool $expected, string $key)
8484
public function testArrayGetOrBadRequestReturnsValueWhenKeyExists()
8585
{
8686
$array = [
87-
'a' => [
88-
'b' => [
89-
'c' => 123
87+
"a" => [
88+
"b" => [
89+
"c" => 123
9090
]
9191
]
9292
];
93-
$result = UnitySite::arrayGetOrBadRequest($array, 'a', 'b', 'c');
93+
$result = UnitySite::arrayGetOrBadRequest($array, "a", "b", "c");
9494
$this->assertSame(123, $result);
9595
}
9696

9797
public function testArrayGetOrBadRequestReturnsArrayWhenTraversingPartially()
9898
{
9999
$array = [
100-
'foo' => [
101-
'bar' => 'baz'
100+
"foo" => [
101+
"bar" => "baz"
102102
]
103103
];
104-
$result = UnitySite::arrayGetOrBadRequest($array, 'foo');
105-
$this->assertSame(['bar' => 'baz'], $result);
104+
$result = UnitySite::arrayGetOrBadRequest($array, "foo");
105+
$this->assertSame(["bar" => "baz"], $result);
106106
}
107107

108108
public function testArrayGetOrBadRequestThrowsOnMissingKeyFirstLevel()
109109
{
110-
$array = ['x' => 1];
110+
$array = ["x" => 1];
111111
$this->expectException(PhpUnitNoDieException::class);
112112
$this->expectExceptionMessage('["y"]');
113-
UnitySite::arrayGetOrBadRequest($array, 'y');
113+
UnitySite::arrayGetOrBadRequest($array, "y");
114114
}
115115

116116
public function testArrayGetOrBadRequestThrowsOnMissingKeyNested()
117117
{
118-
$array = ['a' => []];
118+
$array = ["a" => []];
119119
$this->expectException(PhpUnitNoDieException::class);
120120
// Should include both levels
121121
$this->expectExceptionMessage('["a","b"]');
122-
UnitySite::arrayGetOrBadRequest($array, 'a', 'b');
122+
UnitySite::arrayGetOrBadRequest($array, "a", "b");
123123
}
124124

125125
public function testArrayGetOrBadRequestThrowsWhenValueIsNullButKeyNotSet()
126126
{
127-
$array = ['a' => null];
127+
$array = ["a" => null];
128128
$this->expectException(PhpUnitNoDieException::class);
129129
$this->expectExceptionMessage('["a"]');
130-
UnitySite::arrayGetOrBadRequest($array, 'a');
130+
UnitySite::arrayGetOrBadRequest($array, "a");
131131
}
132132

133133
public function testArrayGetOrBadRequestReturnsValueWhenValueIsFalsyButSet()
134134
{
135-
$array = ['a' => 0];
136-
$result = UnitySite::arrayGetOrBadRequest($array, 'a');
135+
$array = ["a" => 0];
136+
$result = UnitySite::arrayGetOrBadRequest($array, "a");
137137
$this->assertSame(0, $result);
138138
}
139139

0 commit comments

Comments
 (0)