瀏覽代碼

Version PHPUnit documentation (4 and 5)

Thibaut Courouble 9 年之前
父節點
當前提交
d4831ea086

+ 1 - 1
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -316,7 +316,7 @@ credits = [
     'https://creativecommons.org/licenses/by/3.0/'
   ], [
     'PHPUnit',
-    '2005-2015 Sebastian Bergmann',
+    '2005-2016 Sebastian Bergmann',
     'CC BY',
     'https://creativecommons.org/licenses/by/3.0/'
   ], [

+ 1 - 5
assets/stylesheets/pages/_phpunit.scss

@@ -1,9 +1,5 @@
 ._phpunit {
-  > h2 { @extend %block-heading; }
-  > h3 { @extend %block-label, %label-blue; }
-  > h4 { font-size: 1em; }
-
-  > p > code { @extend %label; }
+  @extend %simple;
 
   .warning, .alert {
     @extend %note;

+ 11 - 3
lib/docs/scrapers/phpunit.rb

@@ -2,8 +2,6 @@ module Docs
   class Phpunit < UrlScraper
     self.name = 'PHPUnit'
     self.type = 'phpunit'
-    self.release = '5.1'
-    self.base_url = "https://phpunit.de/manual/#{release}/en/"
     self.root_path = 'index.html'
     self.links = {
       home: 'https://phpunit.de/',
@@ -21,8 +19,18 @@ module Docs
       appendixes.copyright.html)
 
     options[:attribution] = <<-HTML
-      &copy; 2005&ndash;2015 Sebastian Bergmann<br>
+      &copy; 2005&ndash;2016 Sebastian Bergmann<br>
       Licensed under the Creative Commons Attribution 3.0 Unported License.
     HTML
+
+    version '5' do
+      self.release = '5.2'
+      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