Skip to content

Commit 1c3ebe1

Browse files
author
Roman Syroeshko
committed
https://github.com/PHPOffice/PHPWord/issues/46
An attempt to fix tests.
1 parent e0e4893 commit 1c3ebe1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Tests/PHPWord/TemplateTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class PHPWord_TemplateTest extends \PHPUnit_Framework_TestCase
1212
* @covers ::applyXslStyleSheet
1313
* @test
1414
*/
15-
public function testXslStyleSheetCanBeApplied()
15+
final public function testXslStyleSheetCanBeApplied()
1616
{
1717
// TODO: implement after merge of the issue https://github.com/PHPOffice/PHPWord/issues/56
1818
}
@@ -23,7 +23,7 @@ public function testXslStyleSheetCanBeApplied()
2323
* @expectedExceptionMessage Could not set values for the given XSL style sheet parameters.
2424
* @test
2525
*/
26-
public function testXslStyleSheetCanNotBeAppliedOnFailureOfSettingParameterValue()
26+
final public function testXsLStyleSheetCanNotBeAppliedOnFailureOfSettingParameterValue()
2727
{
2828
$template = new PHPWord_Template(
2929
\join(\DIRECTORY_SEPARATOR,
@@ -36,7 +36,7 @@ public function testXslStyleSheetCanNotBeAppliedOnFailureOfSettingParameterValue
3636
array(\PHPWORD_TESTS_DIR_ROOT, '_files', 'xsl', 'passthrough.xsl'))
3737
);
3838

39-
$template->applyXslStyleSheet($xslDOMDocument, array(1 => 'somevalue'));
39+
@$template->applyXslStyleSheet($xslDOMDocument, [1 => 'somevalue']);
4040
}
4141

4242
/**
@@ -45,7 +45,7 @@ public function testXslStyleSheetCanNotBeAppliedOnFailureOfSettingParameterValue
4545
* @expectedExceptionMessage Could not load XML from the given template.
4646
* @test
4747
*/
48-
public function testXslStyleSheetCanNotBeAppliedOnFailureOfLoadingXmlFromTemplate()
48+
final public function testXslStyleSheetCanNotBeAppliedOnFailureOfLoadingXmlFromTemplate()
4949
{
5050
$template = new PHPWord_Template(
5151
\join(\DIRECTORY_SEPARATOR,
@@ -58,7 +58,7 @@ public function testXslStyleSheetCanNotBeAppliedOnFailureOfLoadingXmlFromTemplat
5858
array(\PHPWORD_TESTS_DIR_ROOT, '_files', 'xsl', 'passthrough.xsl'))
5959
);
6060

61-
$template->applyXslStyleSheet($xslDOMDocument);
61+
@$template->applyXslStyleSheet($xslDOMDocument);
6262
}
6363

6464
/**
@@ -67,7 +67,7 @@ public function testXslStyleSheetCanNotBeAppliedOnFailureOfLoadingXmlFromTemplat
6767
* @expectedExceptionMessage Could not transform the given XML document.
6868
* @test
6969
*/
70-
public function testXslStyleSheetCanNotBeAppliedOnFailureOfTransformation()
70+
final public function testXslStyleSheetCanNotBeAppliedOnFailureOfTransformation()
7171
{
7272
$template = new PHPWord_Template(
7373
\join(\DIRECTORY_SEPARATOR,
@@ -80,6 +80,6 @@ public function testXslStyleSheetCanNotBeAppliedOnFailureOfTransformation()
8080
array(\PHPWORD_TESTS_DIR_ROOT, '_files', 'xsl', 'blank.xsl'))
8181
);
8282

83-
$template->applyXslStyleSheet($xslDOMDocument);
83+
@$template->applyXslStyleSheet($xslDOMDocument);
8484
}
85-
}
85+
}

0 commit comments

Comments
 (0)