Skip to content

Commit 1d6a457

Browse files
[t:DCWIbRRX] upgraded phpunit and added first test case
1 parent 9d05a6d commit 1d6a457

File tree

4 files changed

+1064
-308
lines changed

4 files changed

+1064
-308
lines changed

Test/XlsxWriterTest.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace Test;
4+
5+
6+
use PHPUnit\Framework\TestCase;
7+
8+
class XlsxWriterTest extends TestCase {
9+
10+
public function testFileProperties() {
11+
$expected_author = "John Doe";
12+
$writer = new \XLSXWriter();
13+
$writer->setAuthor($expected_author);
14+
15+
$xlsx_properties = $writer->getFileProperties();
16+
17+
$this->assertEquals($expected_author, $xlsx_properties["author"]);
18+
}
19+
20+
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"classmap": ["xlsxwriter.class.php"]
1111
},
1212
"require-dev": {
13-
"phpunit/phpunit": "4.3.*"
13+
"phpunit/phpunit": "^7.5"
1414
}
1515
}

0 commit comments

Comments
 (0)