Skip to content

Commit

Permalink
Use single quotes consistently where possible in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
flodolo committed Feb 15, 2016
1 parent 5b37a93 commit 6863ead
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
6 changes: 3 additions & 3 deletions tests/units/Transvision/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ public function getParametersDP()
return [
[
'http://foobar.com/api/v1/tm/release/en-US/fr/Bookmark/',
["v1", "tm", "release", "en-US", "fr", "Bookmark"],
['v1', 'tm', 'release', 'en-US', 'fr', 'Bookmark'],
],
[
'http://foobar.com/api/v1/tm/release/en-US/fr/Vive%20le%20vent/',
["v1", "tm", "release", "en-US", "fr", "Vive le vent"],
['v1', 'tm', 'release', 'en-US', 'fr', 'Vive le vent'],
],
[
'http://foobar.com/api/v1/tm/release/en-US/fr/%20trailing%20spaces%20',
["v1", "tm", "release", "en-US", "fr", "trailing spaces"],
['v1', 'tm', 'release', 'en-US', 'fr', 'trailing spaces'],
],
];
}
Expand Down
6 changes: 3 additions & 3 deletions tests/units/Transvision/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ public function testGrep()
$this->array($obj->grep($tmx))
->isEqualTo(
[
"browser/chrome/browser/places/places.properties:bookmarkResultLabel" => "Marque-page",
"browser/chrome/browser/syncQuota.properties:collection.bookmarks.label" => "Marque-pages",
"browser/chrome/browser/places/bookmarkProperties.properties:dialogTitleAddMulti" => "Nouveaux marque-pages",
'browser/chrome/browser/places/places.properties:bookmarkResultLabel' => 'Marque-page',
'browser/chrome/browser/syncQuota.properties:collection.bookmarks.label' => 'Marque-pages',
'browser/chrome/browser/places/bookmarkProperties.properties:dialogTitleAddMulti' => 'Nouveaux marque-pages',
]
);
}
Expand Down
34 changes: 17 additions & 17 deletions tests/units/Transvision/ShowResults.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,32 +167,32 @@ public function getRepositorySearchResultsDP()
0 => [
'apps/system/system.properties:softwareHomeButton.ariaLabel' => 'Home',
'browser/chrome/browser/safebrowsing/phishing-afterload-warning-message.dtd:safeb.blocked.malwarePage.longDesc'
=> "<p>Attack pages try to install programs that steal private information, use your computer to "
. "attack others, or damage your system.</p><p>Some attack pages intentionally distribute "
. "harmful software, but many are compromised without the knowledge or permission of their owners.</p>",
=> '<p>Attack pages try to install programs that steal private information, use your computer to '
. 'attack others, or damage your system.</p><p>Some attack pages intentionally distribute '
. 'harmful software, but many are compromised without the knowledge or permission of their owners.</p>',
],
1 => [
'apps/system/system.properties:softwareHomeButton.ariaLabel' => 'Home',
'browser/chrome/browser/safebrowsing/phishing-afterload-warning-message.dtd:safeb.blocked.malwarePage.longDesc'
=> "<p>Les pages malveillantes essaient d'installer des programmes qui volent des informations "
. " personnelles, qui utilisent votre ordinateur pour en attaquer d'autres ou qui endommagent votre "
. "système.</p><p>Certaines pages distribuent intentionnellement des logiciels malfaisants, "
. "mais beaucoup sont compromises sans la permission de leurs propriétaires ou sans qu'ils en aient "
. "connaissance.</p>",
=> '<p>Les pages malveillantes essaient d'installer des programmes qui volent des informations '
. ' personnelles, qui utilisent votre ordinateur pour en attaquer d'autres ou qui endommagent votre '
. 'système.</p><p>Certaines pages distribuent intentionnellement des logiciels malfaisants, '
. 'mais beaucoup sont compromises sans la permission de leurs propriétaires ou sans qu'ils en aient '
. 'connaissance.</p>',
],
2 => ['apps/system/system.properties:softwareHomeButton.ariaLabel' => 'Accueil'],
],
['browser/chrome/browser/safebrowsing/phishing-afterload-warning-message.dtd:safeb.blocked.malwarePage.longDesc'
=> [
"<p>Attack pages try to install programs that steal private information, use your"
. " computer to attack others, or damage your system.</p><p>Some attack pages"
. " intentionally distribute harmful software, but many are compromised without"
. " the knowledge or permission of their owners.</p>"
=> "<p>Les pages malveillantes essaient d'installer des programmes qui volent "
. "des informations personnelles, qui utilisent votre ordinateur pour en attaquer "
. "d'autres ou qui endommagent votre système.</p><p>Certaines pages distribuent intentionnellement "
. "des logiciels malfaisants, mais beaucoup sont compromises sans la permission de leurs "
. "propriétaires ou sans qu'ils en aient connaissance.</p>",
'<p>Attack pages try to install programs that steal private information, use your'
. ' computer to attack others, or damage your system.</p><p>Some attack pages'
. ' intentionally distribute harmful software, but many are compromised without'
. ' the knowledge or permission of their owners.</p>'
=> '<p>Les pages malveillantes essaient d\'installer des programmes qui volent '
. 'des informations personnelles, qui utilisent votre ordinateur pour en attaquer '
. 'd\'autres ou qui endommagent votre système.</p><p>Certaines pages distribuent intentionnellement '
. 'des logiciels malfaisants, mais beaucoup sont compromises sans la permission de leurs '
. 'propriétaires ou sans qu\'ils en aient connaissance.</p>',
],
],
],
Expand Down
2 changes: 1 addition & 1 deletion tests/units/Transvision/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ public function redirectToAPIDP()
public function testRedirectToAPI($a, $b)
{
$obj = new _Utils();
$_SERVER["REQUEST_URI"] = $a;
$_SERVER['REQUEST_URI'] = $a;
$_SERVER['QUERY_STRING'] = isset(parse_url($a)['query'])
? parse_url($a)['query']
: null;
Expand Down

0 comments on commit 6863ead

Please sign in to comment.