File tree Expand file tree Collapse file tree 18 files changed +126
-98
lines changed
Expand file tree Collapse file tree 18 files changed +126
-98
lines changed Original file line number Diff line number Diff line change 1+ name : Linux
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ - 4.x
8+ pull_request :
9+
10+ jobs :
11+ ubuntu-latest :
12+ runs-on : ubuntu-latest
13+
14+ strategy :
15+ matrix :
16+ php-versions : [ '7.2', '7.3' ]
17+ coverage : [ none ]
18+ include :
19+ - php-versions : ' 7.4'
20+ coverage : xdebug
21+ # see https://github.com/marketplace/actions/setup-php-action#nightly-build-setup
22+ - php-versions : ' 8.0'
23+ experimental : true
24+ - php-versions : ' 8.1'
25+ experimental : true
26+ fail-fast : false
27+
28+ name : PHP ${{ matrix.php-versions }} on ubuntu-latest
29+
30+ steps :
31+ - name : PHP
32+ uses : shivammathur/setup-php@v2
33+ with :
34+ php-version : ${{ matrix.php-versions }}
35+ coverage : ${{ matrix.coverage }}
36+
37+ - name : Checkout
38+ uses : actions/checkout@v2
39+
40+ - name : Get composer cache directory
41+ id : composer-cache
42+ run : echo "::set-output name=dir::$(composer config cache-files-dir)"
43+
44+ - name : Cache dependencies
45+ uses : actions/cache@v2
46+ with :
47+ path : ${{ steps.composer-cache.outputs.dir }}
48+ key : ${{ runner.os }}-${{ matrix.php-versions }}-composer-${{ hashFiles('**/composer.json') }}
49+ restore-keys : ${{ runner.os }}-${{ matrix.php-versions }}-composer-
50+
51+ - name : Install dependencies
52+ run : composer install --prefer-dist
53+
54+ - name : Run
55+ run : vendor/bin/atoum --enable-branch-and-path-coverage --test-ext
Original file line number Diff line number Diff line change 1414 'native_function_casing ' => true ,
1515 'no_blank_lines_after_class_opening ' => true ,
1616 'no_unused_imports ' => true ,
17- 'no_unused_imports ' => true ,
1817 'no_whitespace_in_blank_line ' => true ,
1918 'ordered_imports ' => true ,
2019 'phpdoc_no_access ' => true ,
Original file line number Diff line number Diff line change 1+ risky : true
2+
13preset : psr2
24
35enabled :
4- - blankline_after_open_tag
6+ - alpha_ordered_imports
7+ - blank_line_after_opening_tag
8+ - cast_spaces
59 - concat_with_spaces
6- - join_function
710 - native_function_casing
11+ - no_alias_functions
812 - no_blank_lines_after_class_opening
9- - ordered_use
13+ - no_leading_import_slash
14+ - no_unused_imports
15+ - no_whitespace_in_blank_line
1016 - phpdoc_no_access
11- - remove_leading_slash_use
1217 - self_accessor
1318 - short_array_syntax
14- - spaces_cast
15- - unused_use
16- - whitespacy_lines
1719
1820finder :
1921 exclude :
@@ -24,4 +26,5 @@ finder:
2426 path :
2527 - " ."
2628 not-path :
29+ - " resources/templates"
2730 - " resources/html"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # 4.0.0 - 2020-02-05
2+
3+ * [ #53 ] ( https://github.com/atoum/reports-extension/pull/53 ) Compatibility with atoum 4 & PHP 8 ([ @franck-paul ] & [ @Grummfy ] )
4+
15# 3.0.0 - 2017-10-02
26
37* [ #46 ] ( https://github.com/atoum/reports-extension/pull/46 ) Remove the telemetry report ([ @jubianchi ] )
6569[ @jubianchi ] : https://github.com/jubianchi
6670[ @ppaulis ] : https://github.com/ppaulis
6771[ @vonglasow ] : https://github.com/vonglasow
72+ [ @Grummfy ] : https://github.com/Grummfy
73+ [ @franck-paul ] : https://github.com/franck-paul
Original file line number Diff line number Diff line change 11<?php
22
3- namespace mageekguy \atoum \reports \coverage ;
3+ namespace atoum \atoum \reports \coverage ;
44
5- use mageekguy \atoum ;
6- use mageekguy \atoum \reports \coverage ;
7- use mageekguy \atoum \reports \model ;
8- use mageekguy \atoum \reports \score ;
5+ use atoum \atoum ;
6+ use atoum \atoum \reports \coverage ;
7+ use atoum \atoum \reports \model ;
8+ use atoum \atoum \reports \score ;
99
1010class html extends coverage
1111{
Original file line number Diff line number Diff line change 11<?php
22
3- namespace mageekguy \atoum \reports \model \coverage ;
3+ namespace atoum \atoum \reports \model \coverage ;
44
5- use mageekguy \atoum \reports \model ;
6- use mageekguy \atoum \reports \model \coverage ;
7- use mageekguy \atoum \reports \template ;
5+ use atoum \atoum \reports \model ;
6+ use atoum \atoum \reports \model \coverage ;
7+ use atoum \atoum \reports \template ;
88
99class klass extends model
1010{
Original file line number Diff line number Diff line change 11<?php
22
3- namespace mageekguy \atoum \reports \model \coverage ;
3+ namespace atoum \atoum \reports \model \coverage ;
44
5- use mageekguy \atoum \reports \model ;
6- use mageekguy \atoum \reports \template ;
5+ use atoum \atoum \reports \model ;
6+ use atoum \atoum \reports \template ;
77
88class method extends model
99{
Original file line number Diff line number Diff line change 22
33namespace atoum \atoum \reports ;
44
5+ use Twig \Loader \FilesystemLoader ;
6+ use Twig \Environment ;
7+
58class template
69{
710 private $ source ;
@@ -11,7 +14,7 @@ public function __construct($source)
1114 {
1215 $ this ->source = $ source ;
1316
14- $ this ->twig = new \ Twig_Environment (new \ Twig_Loader_Filesystem ([__DIR__ . '/../resources/html/templates ' ]));
17+ $ this ->twig = new Environment (new FilesystemLoader ([__DIR__ . '/../resources/html/templates ' ]));
1518 }
1619
1720 public function render (array $ model , $ destination )
Original file line number Diff line number Diff line change 1313 ],
1414 "minimum-stability" : " beta" ,
1515 "require" : {
16- "php" : " ^5.4.0 || ^7.0.0 || ^8.0.0" ,
17- "twig/twig" : " ^1.18 | ^2 .0" ,
18- "symfony/filesystem" : " ^2.6 | ^3.0 | ^4 .0" ,
19- "atoum/atoum" : " ^2.9 || ^3.0 || ^ 4.0"
16+ "php" : " ^7.2 || ^8.0.0" ,
17+ "twig/twig" : " ^3 .0" ,
18+ "symfony/filesystem" : " ^5 .0" ,
19+ "atoum/atoum" : " ^4.0"
2020 },
2121 "require-dev" : {
2222 "friendsofphp/php-cs-fixer" : " ^2"
You can’t perform that action at this time.
0 commit comments