mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.0 KiB
42 lines
1.0 KiB
module Docs
|
|
class Phpunit < UrlScraper
|
|
self.name = 'PHPUnit'
|
|
self.type = 'phpunit'
|
|
self.root_path = 'index.html'
|
|
self.links = {
|
|
home: 'https://phpunit.de/',
|
|
code: 'https://github.com/sebastianbergmann/phpunit'
|
|
}
|
|
|
|
html_filters.push 'phpunit/clean_html', 'phpunit/entries', 'title'
|
|
|
|
options[:root_title] = 'PHPUnit'
|
|
options[:title] = false
|
|
|
|
options[:skip] = %w(
|
|
appendixes.index.html
|
|
appendixes.bibliography.html
|
|
appendixes.copyright.html)
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2005–2017 Sebastian Bergmann<br>
|
|
Licensed under the Creative Commons Attribution 3.0 Unported License.
|
|
HTML
|
|
|
|
version '6' do
|
|
self.release = '6.2'
|
|
self.base_url = "https://phpunit.de/manual/#{release}/en/"
|
|
end
|
|
|
|
version '5' do
|
|
self.release = '5.7'
|
|
self.base_url = "https://phpunit.de/manual/#{release}/en/"
|
|
end
|
|
|
|
version '4' do
|
|
self.release = '4.8'
|
|
self.base_url = "https://phpunit.de/manual/#{release}/en/"
|
|
end
|
|
end
|
|
end
|