Skip to content

Commit 6863ead

Browse files
committed
Use single quotes consistently where possible in tests
1 parent 5b37a93 commit 6863ead

4 files changed

Lines changed: 24 additions & 24 deletions

File tree

tests/units/Transvision/API.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ public function getParametersDP()
1313
return [
1414
[
1515
'http://foobar.com/api/v1/tm/release/en-US/fr/Bookmark/',
16-
["v1", "tm", "release", "en-US", "fr", "Bookmark"],
16+
['v1', 'tm', 'release', 'en-US', 'fr', 'Bookmark'],
1717
],
1818
[
1919
'http://foobar.com/api/v1/tm/release/en-US/fr/Vive%20le%20vent/',
20-
["v1", "tm", "release", "en-US", "fr", "Vive le vent"],
20+
['v1', 'tm', 'release', 'en-US', 'fr', 'Vive le vent'],
2121
],
2222
[
2323
'http://foobar.com/api/v1/tm/release/en-US/fr/%20trailing%20spaces%20',
24-
["v1", "tm", "release", "en-US", "fr", "trailing spaces"],
24+
['v1', 'tm', 'release', 'en-US', 'fr', 'trailing spaces'],
2525
],
2626
];
2727
}

tests/units/Transvision/Search.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ public function testGrep()
147147
$this->array($obj->grep($tmx))
148148
->isEqualTo(
149149
[
150-
"browser/chrome/browser/places/places.properties:bookmarkResultLabel" => "Marque-page",
151-
"browser/chrome/browser/syncQuota.properties:collection.bookmarks.label" => "Marque-pages",
152-
"browser/chrome/browser/places/bookmarkProperties.properties:dialogTitleAddMulti" => "Nouveaux marque-pages",
150+
'browser/chrome/browser/places/places.properties:bookmarkResultLabel' => 'Marque-page',
151+
'browser/chrome/browser/syncQuota.properties:collection.bookmarks.label' => 'Marque-pages',
152+
'browser/chrome/browser/places/bookmarkProperties.properties:dialogTitleAddMulti' => 'Nouveaux marque-pages',
153153
]
154154
);
155155
}

tests/units/Transvision/ShowResults.php

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -167,32 +167,32 @@ public function getRepositorySearchResultsDP()
167167
0 => [
168168
'apps/system/system.properties:softwareHomeButton.ariaLabel' => 'Home',
169169
'browser/chrome/browser/safebrowsing/phishing-afterload-warning-message.dtd:safeb.blocked.malwarePage.longDesc'
170-
=> "<p>Attack pages try to install programs that steal private information, use your computer to "
171-
. "attack others, or damage your system.</p><p>Some attack pages intentionally distribute "
172-
. "harmful software, but many are compromised without the knowledge or permission of their owners.</p>",
170+
=> '<p>Attack pages try to install programs that steal private information, use your computer to '
171+
. 'attack others, or damage your system.</p><p>Some attack pages intentionally distribute '
172+
. 'harmful software, but many are compromised without the knowledge or permission of their owners.</p>',
173173
],
174174
1 => [
175175
'apps/system/system.properties:softwareHomeButton.ariaLabel' => 'Home',
176176
'browser/chrome/browser/safebrowsing/phishing-afterload-warning-message.dtd:safeb.blocked.malwarePage.longDesc'
177-
=> "<p>Les pages malveillantes essaient d'installer des programmes qui volent des informations "
178-
. " personnelles, qui utilisent votre ordinateur pour en attaquer d'autres ou qui endommagent votre "
179-
. "système.</p><p>Certaines pages distribuent intentionnellement des logiciels malfaisants, "
180-
. "mais beaucoup sont compromises sans la permission de leurs propriétaires ou sans qu'ils en aient "
181-
. "connaissance.</p>",
177+
=> '<p>Les pages malveillantes essaient d'installer des programmes qui volent des informations '
178+
. ' personnelles, qui utilisent votre ordinateur pour en attaquer d'autres ou qui endommagent votre '
179+
. 'système.</p><p>Certaines pages distribuent intentionnellement des logiciels malfaisants, '
180+
. 'mais beaucoup sont compromises sans la permission de leurs propriétaires ou sans qu'ils en aient '
181+
. 'connaissance.</p>',
182182
],
183183
2 => ['apps/system/system.properties:softwareHomeButton.ariaLabel' => 'Accueil'],
184184
],
185185
['browser/chrome/browser/safebrowsing/phishing-afterload-warning-message.dtd:safeb.blocked.malwarePage.longDesc'
186186
=> [
187-
"<p>Attack pages try to install programs that steal private information, use your"
188-
. " computer to attack others, or damage your system.</p><p>Some attack pages"
189-
. " intentionally distribute harmful software, but many are compromised without"
190-
. " the knowledge or permission of their owners.</p>"
191-
=> "<p>Les pages malveillantes essaient d'installer des programmes qui volent "
192-
. "des informations personnelles, qui utilisent votre ordinateur pour en attaquer "
193-
. "d'autres ou qui endommagent votre système.</p><p>Certaines pages distribuent intentionnellement "
194-
. "des logiciels malfaisants, mais beaucoup sont compromises sans la permission de leurs "
195-
. "propriétaires ou sans qu'ils en aient connaissance.</p>",
187+
'<p>Attack pages try to install programs that steal private information, use your'
188+
. ' computer to attack others, or damage your system.</p><p>Some attack pages'
189+
. ' intentionally distribute harmful software, but many are compromised without'
190+
. ' the knowledge or permission of their owners.</p>'
191+
=> '<p>Les pages malveillantes essaient d\'installer des programmes qui volent '
192+
. 'des informations personnelles, qui utilisent votre ordinateur pour en attaquer '
193+
. 'd\'autres ou qui endommagent votre système.</p><p>Certaines pages distribuent intentionnellement '
194+
. 'des logiciels malfaisants, mais beaucoup sont compromises sans la permission de leurs '
195+
. 'propriétaires ou sans qu\'ils en aient connaissance.</p>',
196196
],
197197
],
198198
],

tests/units/Transvision/Utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ public function redirectToAPIDP()
474474
public function testRedirectToAPI($a, $b)
475475
{
476476
$obj = new _Utils();
477-
$_SERVER["REQUEST_URI"] = $a;
477+
$_SERVER['REQUEST_URI'] = $a;
478478
$_SERVER['QUERY_STRING'] = isset(parse_url($a)['query'])
479479
? parse_url($a)['query']
480480
: null;

0 commit comments

Comments
 (0)