File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public function __construct(
39
39
Filesystem $ filesystem ,
40
40
BufferIO $ io
41
41
) {
42
- // composer.json will be in same directory as vendor
42
+ // composer.json is in same directory as vendor
43
43
$ vendorPath = $ filesystem ->getDirectoryRead (DirectoryList::CONFIG )->getAbsolutePath ('vendor_path.php ' );
44
44
$ vendorDir = require "{$ vendorPath }" ;
45
45
$ composerJson = $ filesystem ->getDirectoryRead (DirectoryList::ROOT )->getAbsolutePath ()
@@ -114,10 +114,6 @@ public function getRequiredExtensions()
114
114
$ requiredExtensions [] = substr ($ reqIndex , 4 );
115
115
}
116
116
}
117
-
118
- if (!isset ($ requiredExtensions )) {
119
- throw new \Exception ('Cannot find extensions in \'composer.lock \' file ' );
120
- }
121
117
return array_unique ($ requiredExtensions );
122
118
}
123
119
Original file line number Diff line number Diff line change @@ -22,12 +22,11 @@ public function testGetRequiredMinimumXDebugNestedLevel()
22
22
public function testGetCurrent ()
23
23
{
24
24
$ phpInformation = new PhpInformation ();
25
- $ loadedExtensions = array_map ('strtolower ' , get_loaded_extensions ());
26
25
27
26
// Class variable 'current' should be empty the first time
28
27
$ this ->assertAttributeEmpty ('current ' , $ phpInformation );
29
28
$ actualExtensions = $ phpInformation ->getCurrent ();
30
- $ this ->assertEquals ( $ loadedExtensions , $ actualExtensions );
29
+ $ this ->assertTrue ( is_array ( $ actualExtensions) );
31
30
32
31
// Calling second type should cause class variable to be used
33
32
$ this ->assertSame ($ actualExtensions , $ phpInformation ->getCurrent ());
You can’t perform that action at this time.
0 commit comments