Skip to content
This repository was archived by the owner on Jul 8, 2024. It is now read-only.

Commit 2f7c472

Browse files
committed
ci fix
1 parent ca2e942 commit 2f7c472

File tree

12 files changed

+36
-38
lines changed

12 files changed

+36
-38
lines changed

src/Bowerphp/Bowerphp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
use InvalidArgumentException;
2424
use RuntimeException;
2525
use Symfony\Component\Finder\Finder;
26-
use vierbergenlars\SemVer\version;
2726
use vierbergenlars\SemVer\expression;
27+
use vierbergenlars\SemVer\version;
2828

2929
/**
3030
* Main class

tests/Bowerphp/Test/BowerphpTest.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function testInstallPackageFromGithubEndPoint()
126126
}
127127

128128
/**
129-
* @expectedException RuntimeException
129+
* @expectedException \RuntimeException
130130
* @expectedExceptionMessage Cannot find package select2 version 3.4.5.
131131
*/
132132
public function testInstallPackageFromGithubEndPointVersionNotFound()
@@ -338,7 +338,7 @@ public function testInstallDependenciesWithGithubEndpoint()
338338
}
339339

340340
/**
341-
* @expectedException RuntimeException
341+
* @expectedException \RuntimeException
342342
*/
343343
public function testInstallDependenciesException()
344344
{
@@ -373,7 +373,7 @@ public function testUpdatePackage()
373373
}
374374

375375
/**
376-
* @expectedException InvalidArgumentException
376+
* @expectedException \InvalidArgumentException
377377
* @expectedExceptionMessage Package notinbowerjson not found in bower.json
378378
*/
379379
public function testUpdatePackageNotFoundInBowerJson()
@@ -402,7 +402,7 @@ public function testUpdatePackageNotFoundInBowerJson()
402402
}
403403

404404
/**
405-
* @expectedException RuntimeException
405+
* @expectedException \RuntimeException
406406
* @expectedExceptionMessage Cannot fetch registry info for package jquery from search registry (error).
407407
*/
408408
public function testUpdatePackageNotFoundInRepository()
@@ -440,7 +440,7 @@ public function testUpdatePackageNotFoundInRepository()
440440
}
441441

442442
/**
443-
* @expectedException RuntimeException
443+
* @expectedException \RuntimeException
444444
* @expectedExceptionMessage Registry info for package colorbox has malformed json or is missing "url".
445445
*/
446446
public function testUpdatePackageJsonException()
@@ -471,7 +471,7 @@ public function testUpdatePackageJsonException()
471471
}
472472

473473
/**
474-
* @expectedException RuntimeException
474+
* @expectedException \RuntimeException
475475
* @expectedExceptionMessage Invalid bower.json found in package colorbox: {invalid.
476476
*/
477477
public function testUpdatePackageWithInvalidBowerJson()
@@ -603,7 +603,7 @@ public function testUpdateDependencies()
603603
}
604604

605605
/**
606-
* @expectedException RuntimeException
606+
* @expectedException \RuntimeException
607607
* @expectedExceptionMessage Malformed JSON
608608
*/
609609
public function testUpdatePackageWithMalformedBowerJsonContent()
@@ -638,7 +638,7 @@ public function testUpdatePackageWithMalformedBowerJsonContent()
638638
}
639639

640640
/**
641-
* @expectedException RuntimeException
641+
* @expectedException \RuntimeException
642642
* @expectedExceptionMessage Cannot find package colorbox version 2.*.
643643
*/
644644
public function testUpdatePackageVersionNotFound()
@@ -769,7 +769,7 @@ public function testSearchPackages()
769769
}
770770

771771
/**
772-
* @expectedException RuntimeException
772+
* @expectedException \RuntimeException
773773
* @expectedExceptionMessage Cannot get package list from http://bower.herokuapp.com.
774774
*/
775775
public function testSearchPackagesException()
@@ -932,7 +932,7 @@ public function testInstallPackageWithDependenciesToUpdate()
932932
}
933933

934934
/**
935-
* @expectedException RuntimeException
935+
* @expectedException \RuntimeException
936936
* @expectedExceptionMessage Registry info for package colorbox has malformed json or is missing "url".
937937
*/
938938
public function testInstallPackageJsonException()
@@ -953,7 +953,7 @@ public function testInstallPackageJsonException()
953953
}
954954

955955
/**
956-
* @expectedException RuntimeException
956+
* @expectedException \RuntimeException
957957
* @expectedExceptionMessage Invalid bower.json found in package colorbox: {invalid.
958958
*/
959959
public function testInstallBowerJsonException()
@@ -980,7 +980,7 @@ public function testInstallBowerJsonException()
980980
}
981981

982982
/**
983-
* @expectedException RuntimeException
983+
* @expectedException \RuntimeException
984984
* @expectedExceptionMessage Cannot find package colorbox version *.
985985
*/
986986
public function testInstallPackageVersionNotFound()
@@ -1069,7 +1069,7 @@ public function testUpdateWithDependenciesToUpdate()
10691069
}
10701070

10711071
/**
1072-
* @expectedException RuntimeException
1072+
* @expectedException \RuntimeException
10731073
* @expectedExceptionMessage Package jquery is not installed.
10741074
*/
10751075
public function testUpdateUninstalledPackage()
@@ -1152,7 +1152,7 @@ public function testUpdateWithDependenciesToInstall()
11521152
}
11531153

11541154
/**
1155-
* @expectedException RuntimeException
1155+
* @expectedException \RuntimeException
11561156
* @expectedExceptionMessage Unsupported info option "baz"
11571157
*/
11581158
public function testGetPackageInfoInvalidInfo()
@@ -1177,7 +1177,7 @@ public function testGetPackageInfoInvalidInfo()
11771177
}
11781178

11791179
/**
1180-
* @expectedException RuntimeException
1180+
* @expectedException \RuntimeException
11811181
* @expectedExceptionMessage Registry info for package colorbox has malformed json or is missing "url".
11821182
*/
11831183
public function testGetPackageInfoJsonException()
@@ -1233,7 +1233,7 @@ public function testUninstallPackage()
12331233
}
12341234

12351235
/**
1236-
* @expectedException RuntimeException
1236+
* @expectedException \RuntimeException
12371237
* @expectedExceptionMessage Package jquery is not installed.
12381238
*/
12391239
public function testUninstallUninstalledPackage()

tests/Bowerphp/Test/Command/CommandListCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function testWorkingDir()
4141
}
4242

4343
/**
44-
* @expectedException RuntimeException
44+
* @expectedException \RuntimeException
4545
* @expectedExceptionMessage Invalid working directory specified.
4646
*/
4747
public function testWrongWorkingDir()

tests/Bowerphp/Test/Command/HomeCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class HomeCommandTest extends \PHPUnit_Framework_TestCase
1313
{
1414
/**
15-
* @expectedException RuntimeException
15+
* @expectedException \RuntimeException
1616
*/
1717
public function testExecuteNotFound()
1818
{
@@ -36,7 +36,7 @@ public function testExecuteNonVerbose()
3636
}
3737

3838
/**
39-
* @expectedException RuntimeException
39+
* @expectedException \RuntimeException
4040
* @expectedExceptionMessage Not enough arguments
4141
*/
4242
public function testExecuteWithoutPackage()

tests/Bowerphp/Test/Command/InfoCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function testExecuteWithSlashedVersion()
5252
}
5353

5454
/**
55-
* @expectedException RuntimeException
55+
* @expectedException \RuntimeException
5656
* @expectedExceptionMessage Not enough arguments
5757
*/
5858
public function testExecuteWithoutPackage()

tests/Bowerphp/Test/Command/SearchCommandTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Bowerphp\Test\Command;
44

55
use Bowerphp\Factory\CommandFactory;
6-
use RuntimeException;
76

87
/**
98
* @group functional
@@ -36,7 +35,7 @@ public function shouldWriteNoResultWhenNoPackageFound()
3635
}
3736

3837
/**
39-
* @expectedException RuntimeException
38+
* @expectedException \RuntimeException
4039
* @expectedExceptionMessage Not enough arguments
4140
*/
4241
public function shouldThrowExceptionWhenNoPackagePass()

tests/Bowerphp/Test/Config/ConfigTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function testGetHomeDirWindows()
6868
}
6969

7070
/**
71-
* @expectedException RuntimeException
71+
* @expectedException \RuntimeException
7272
* @expectedExceptionMessage Invalid .bowerrc file.
7373
*/
7474
public function testMalformedJson()
@@ -98,7 +98,7 @@ public function testGetBowerFileContent()
9898
}
9999

100100
/**
101-
* @expectedException RuntimeException
101+
* @expectedException \RuntimeException
102102
* @expectedExceptionMessage Malformed JSON in bower.json: {invalid.
103103
*/
104104
public function testGetBowerFileContentWithExceptionOnInvalidJson()
@@ -118,7 +118,7 @@ public function testGetBowerFileContentWithExceptionOnInvalidJson()
118118
}
119119

120120
/**
121-
* @expectedException RuntimeException
121+
* @expectedException \RuntimeException
122122
* @expectedExceptionMessage No bower.json found. You can run "init" command to create it.
123123
*/
124124
public function testGetBowerFileContentWithExceptionOnBowerJsonDoesNotExist()
@@ -232,7 +232,7 @@ public function testGetPackageBowerFileContent()
232232
}
233233

234234
/**
235-
* @expectedException RuntimeException
235+
* @expectedException \RuntimeException
236236
* @expectedExceptionMessage Could not find .bower.json file for package foobar.
237237
*/
238238
public function testGetPackageBowerFileContentFileNotFound()
@@ -253,7 +253,7 @@ public function testGetPackageBowerFileContentFileNotFound()
253253
}
254254

255255
/**
256-
* @expectedException RuntimeException
256+
* @expectedException \RuntimeException
257257
* @expectedExceptionMessage Invalid content in .bower.json for package foobar.
258258
*/
259259
public function testGetPackageBowerFileInvalidContent()

tests/Bowerphp/Test/Installer/InstallerTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Bowerphp\Installer\Installer;
66
use Bowerphp\Test\TestCase;
77
use Mockery;
8-
use RuntimeException;
98

109
class InstallerTest extends TestCase
1110
{
@@ -100,7 +99,7 @@ public function testUpdate()
10099
}
101100

102101
/**
103-
* @expectedException RuntimeException
102+
* @expectedException \RuntimeException
104103
* @expectedExceptionMessage Unable to open zip file ./tmp/jquery.
105104
*/
106105
public function testInstallZipOpenException()
@@ -119,7 +118,7 @@ public function testInstallZipOpenException()
119118
}
120119

121120
/**
122-
* @expectedException RuntimeException
121+
* @expectedException \RuntimeException
123122
* @expectedExceptionMessage Unable to open zip file ./tmp/jquery.
124123
*/
125124
public function testUpdateZipOpenException()
@@ -214,7 +213,7 @@ public function testGetInstalledWithoutInstalledPackages()
214213
}
215214

216215
/**
217-
* @expectedException RuntimeException
216+
* @expectedException \RuntimeException
218217
* @expectedExceptionMessage Invalid content in .bower.json for package package1.
219218
*/
220219
public function testGetInstalledWithoutBowerJsonFile()

tests/Bowerphp/Test/Package/PackageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function testSetRepository()
2525
}
2626

2727
/**
28-
* @expectedException LogicException
28+
* @expectedException \LogicException
2929
*/
3030
public function testCannotChangeRepository()
3131
{

tests/Bowerphp/Test/Repository/GithubRepositoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function testGetBowerWithoutBowerJsonButWithPackageJson()
109109
}
110110

111111
/**
112-
* @expectedException RuntimeException
112+
* @expectedException \RuntimeException
113113
*/
114114
public function testGetBowerWithoutBowerJsonNorPackageJson()
115115
{
@@ -334,7 +334,7 @@ public function testFindPackageWithVersionWithJunk()
334334
}
335335

336336
/**
337-
* @expectedException RuntimeException
337+
* @expectedException \RuntimeException
338338
*/
339339
public function testFindPackageVersionNotFound()
340340
{

0 commit comments

Comments
 (0)