summaryrefslogtreecommitdiff
path: root/spec/integration/php/composer_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/integration/php/composer_spec.rb')
-rw-r--r--spec/integration/php/composer_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/integration/php/composer_spec.rb b/spec/integration/php/composer_spec.rb
index 0fb09ee..7a1c274 100644
--- a/spec/integration/php/composer_spec.rb
+++ b/spec/integration/php/composer_spec.rb
@@ -118,4 +118,16 @@ RSpec.describe "composer" do
expect(subject.licenses_for('monolog/monolog')).to match_array(['MIT'])
end
end
+
+ context "when scanning a project with a lock file and sourced from an unreachable network location" do
+ before do
+ runner.mount(dir: fixture_file('php/composer/unreachable-network'))
+ end
+
+ it 'parses the informatio from the lockfile' do
+ expect(subject).to match_schema
+ expect(subject.dependency_names).to match_array(['monolog/monolog'])
+ expect(subject.licenses_for('monolog/monolog')).to match_array(['MIT'])
+ end
+ end
end