dox Executable Documentation

Dev mode

Include dev

Given the composer json '{ "extra": { "fido-fetch-dev": { "some asset": { "source":"http://example.com/some/test.txt" } } } }'
When I run composer with the plugin
Then there should be a file 'test/assets/vendor/test.txt' containing 'Got test'

Different base dir

Given the composer json '{ "extra": { "fido-fetch": { "base-dir": "assets", "some asset": { "source":"http://example.com/some/file.txt" } }, "fido-fetch-dev": { "base-dir": "spec", "some test": { "source":"http://example.com/some/test.txt" } } } }'
When I run composer with the plugin
Then there should be a file 'assets/file.txt' containing 'Got me'
Then there should be a file 'spec/test.txt' containing 'Got test'

Include dev requires

Given the composer json '{ "require-dev": { "fido-fetch:http://example.com/some/test.txt":"*" } }'
When I run composer with the plugin
Then there should be a file 'test/assets/vendor/test.txt' containing 'Got test'

background

Given the remote file 'http://example.com/some/file.txt' containing 'Got me'
Given the remote file 'http://example.com/some/test.txt' containing 'Got test'