File tree Expand file tree Collapse file tree 4 files changed +33
-19
lines changed Expand file tree Collapse file tree 4 files changed +33
-19
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ # Run on all pushes to master and on all pull requests.
5
+ push :
6
+ branches :
7
+ master
8
+ pull_request :
9
+ # Allow manually triggering the workflow.
10
+ workflow_dispatch :
11
+
12
+ jobs :
13
+ test :
14
+ uses : " zetacomponents/.github/.github/workflows/ci.yml@master"
Original file line number Diff line number Diff line change 34
34
"zetacomponents/template" : " ~1.4"
35
35
},
36
36
"require-dev" : {
37
- "zetacomponents/unit-test" : " *"
37
+ "zetacomponents/unit-test" : " *" ,
38
+ "phpunit/phpunit" : " ^9.0"
38
39
}
39
40
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <phpunit bootstrap =" ./tests/bootstrap.php" colors =" true" >
3
- <testsuites >
4
- <testsuite name =" Zeta Components MvcTemplateTiein" >
5
- <directory suffix =" _test.php" >./tests</directory >
6
- </testsuite >
7
- </testsuites >
8
-
9
- <filter >
10
- <whitelist >
11
- <directory >./src</directory >
12
- </whitelist >
13
- </filter >
14
- </phpunit >
2
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" bootstrap =" ./tests/bootstrap.php" colors =" true" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" convertDeprecationsToExceptions =" true" >
3
+ <coverage >
4
+ <include >
5
+ <directory >./src</directory >
6
+ </include >
7
+ </coverage >
8
+ <testsuites >
9
+ <testsuite name =" Zeta Components MvcTemplateTiein" >
10
+ <directory suffix =" _test.php" >./tests</directory >
11
+ </testsuite >
12
+ </testsuites >
13
+ </phpunit >
Original file line number Diff line number Diff line change 8
8
* to you under the Apache License, Version 2.0 (the
9
9
* "License"); you may not use this file except in compliance
10
10
* with the License. You may obtain a copy of the License at
11
- *
11
+ *
12
12
* http://www.apache.org/licenses/LICENSE-2.0
13
- *
13
+ *
14
14
* Unless required by applicable law or agreed to in writing,
15
15
* software distributed under the License is distributed on an
16
16
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
24
24
* @package MvcTemplateTiein
25
25
* @subpackage Tests
26
26
*/
27
- require_once ' MvcTemplateTiein/tests /testfiles/testclasses.php ' ;
27
+ require_once __DIR__ . ' /.. /testfiles/testclasses.php ' ;
28
28
29
29
/**
30
30
* Test the handler classes.
34
34
*/
35
35
class ezcMvcTemplateViewTest extends ezcTestCase
36
36
{
37
- function setUp ()
37
+ function setUp () : void
38
38
{
39
39
$ this ->baseDir = dirname ( __FILE__ ) . '/../testfiles/views/template/ ' ;
40
40
}
@@ -106,7 +106,7 @@ public function testNonExistingFile()
106
106
107
107
public static function suite ()
108
108
{
109
- return new PHPUnit_Framework_TestSuite ( "ezcMvcTemplateViewTest " );
109
+ return new PHPUnit \ Framework \ TestSuite ( "ezcMvcTemplateViewTest " );
110
110
}
111
111
}
112
112
?>
You can’t perform that action at this time.
0 commit comments