History

Update PHPUnit documentation (5.4, 4.8)

Thibaut Courouble committed 10 years ago

Commit 38503c01 parent 6a1d6c94 files · +6 −7Browse files

Unified · Split

4 files
  1. assets/javascripts/views/pages/phpunit.coffee +0 −6
  2. assets/javascripts/views/pages/simple.coffee +1 −0
  3. lib/docs/filters/phpunit/clean_html.rb +4 −0
  4. lib/docs/scrapers/phpunit.rb +1 −1
assets/javascripts/views/pages/phpunit.coffee+0−6
@@ -1,6 +0,0 @@
1−#= require views/pages/base
2−
3−class app.views.PhpunitPage extends app.views.BasePage
4− prepare: ->
5− @highlightCode @findAll('pre.programlisting'), 'php'
6− return
assets/javascripts/views/pages/simple.coffee+1−0
@@ -32,6 +32,7 @@ app.views.PerlPage = · 31 unmodified lines
3232 app.views.PhalconPage =
3333 app.views.PhaserPage =
3434 app.views.PhpPage =
35+app.views.PhpunitPage =
3536 app.views.PostgresPage =
3637 app.views.RamdaPage =
3738 app.views.ReactPage =
lib/docs/filters/phpunit/clean_html.rb+4−0
@@ -53,6 +53,10 @@ module Docs · 52 unmodified lines
5353 node.content = node.content
5454 end
5555
56+ css('pre.programlisting').each do |node|
57+ node['data-language'] = 'php'
58+ end
59+
5660 doc
5761 end
5862 end
lib/docs/scrapers/phpunit.rb+1−1
@@ -24,7 +24,7 @@ module Docs · 23 unmodified lines
2424 HTML
2525
2626 version '5' do
27− self.release = '5.2'
27+ self.release = '5.4'
2828 self.base_url = "https://phpunit.de/manual/#{release}/en/"
2929 end
3030