@@ -12,7 +12,7 @@ class PHPWord_TemplateTest extends \PHPUnit_Framework_TestCase
12
12
* @covers ::applyXslStyleSheet
13
13
* @test
14
14
*/
15
- public function testXslStyleSheetCanBeApplied ()
15
+ final public function testXslStyleSheetCanBeApplied ()
16
16
{
17
17
// TODO: implement after merge of the issue https://github.com/PHPOffice/PHPWord/issues/56
18
18
}
@@ -23,7 +23,7 @@ public function testXslStyleSheetCanBeApplied()
23
23
* @expectedExceptionMessage Could not set values for the given XSL style sheet parameters.
24
24
* @test
25
25
*/
26
- public function testXslStyleSheetCanNotBeAppliedOnFailureOfSettingParameterValue ()
26
+ final public function testXsLStyleSheetCanNotBeAppliedOnFailureOfSettingParameterValue ()
27
27
{
28
28
$ template = new PHPWord_Template (
29
29
\join (\DIRECTORY_SEPARATOR ,
@@ -36,7 +36,7 @@ public function testXslStyleSheetCanNotBeAppliedOnFailureOfSettingParameterValue
36
36
array (\PHPWORD_TESTS_DIR_ROOT , '_files ' , 'xsl ' , 'passthrough.xsl ' ))
37
37
);
38
38
39
- $ template ->applyXslStyleSheet ($ xslDOMDocument , array ( 1 => 'somevalue ' ) );
39
+ @ $ template ->applyXslStyleSheet ($ xslDOMDocument , [ 1 => 'somevalue ' ] );
40
40
}
41
41
42
42
/**
@@ -45,7 +45,7 @@ public function testXslStyleSheetCanNotBeAppliedOnFailureOfSettingParameterValue
45
45
* @expectedExceptionMessage Could not load XML from the given template.
46
46
* @test
47
47
*/
48
- public function testXslStyleSheetCanNotBeAppliedOnFailureOfLoadingXmlFromTemplate ()
48
+ final public function testXslStyleSheetCanNotBeAppliedOnFailureOfLoadingXmlFromTemplate ()
49
49
{
50
50
$ template = new PHPWord_Template (
51
51
\join (\DIRECTORY_SEPARATOR ,
@@ -58,7 +58,7 @@ public function testXslStyleSheetCanNotBeAppliedOnFailureOfLoadingXmlFromTemplat
58
58
array (\PHPWORD_TESTS_DIR_ROOT , '_files ' , 'xsl ' , 'passthrough.xsl ' ))
59
59
);
60
60
61
- $ template ->applyXslStyleSheet ($ xslDOMDocument );
61
+ @ $ template ->applyXslStyleSheet ($ xslDOMDocument );
62
62
}
63
63
64
64
/**
@@ -67,7 +67,7 @@ public function testXslStyleSheetCanNotBeAppliedOnFailureOfLoadingXmlFromTemplat
67
67
* @expectedExceptionMessage Could not transform the given XML document.
68
68
* @test
69
69
*/
70
- public function testXslStyleSheetCanNotBeAppliedOnFailureOfTransformation ()
70
+ final public function testXslStyleSheetCanNotBeAppliedOnFailureOfTransformation ()
71
71
{
72
72
$ template = new PHPWord_Template (
73
73
\join (\DIRECTORY_SEPARATOR ,
@@ -80,6 +80,6 @@ public function testXslStyleSheetCanNotBeAppliedOnFailureOfTransformation()
80
80
array (\PHPWORD_TESTS_DIR_ROOT , '_files ' , 'xsl ' , 'blank.xsl ' ))
81
81
);
82
82
83
- $ template ->applyXslStyleSheet ($ xslDOMDocument );
83
+ @ $ template ->applyXslStyleSheet ($ xslDOMDocument );
84
84
}
85
- }
85
+ }
0 commit comments