Skip to content

Commit afbcdae

Browse files
authored
Merge pull request #400 from viest/dev
Library: libxlswirter 1.1.3
2 parents 9c61db2 + 79633c5 commit afbcdae

File tree

93 files changed

+325
-266
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+325
-266
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,18 @@ jobs:
88
strategy:
99
matrix:
1010
operating-system: [ubuntu-latest]
11-
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
11+
php-versions: ['8.0']
12+
include:
13+
- operating-system: 'ubuntu-18.04'
14+
php-versions: '7.0'
15+
- operating-system: 'ubuntu-18.04'
16+
php-versions: '7.1'
17+
- operating-system: 'ubuntu-18.04'
18+
php-versions: '7.2'
19+
- operating-system: 'ubuntu-18.04'
20+
php-versions: '7.3'
21+
- operating-system: 'ubuntu-18.04'
22+
php-versions: '7.4'
1223
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
1324
steps:
1425
- name: Checkout
@@ -21,6 +32,7 @@ jobs:
2132

2233
- name: Setup Dependencies
2334
run: |
35+
sudo apt-get --fix-broken install
2436
sudo apt-get update
2537
sudo apt-get install zlib1g-dev valgrind -y
2638

config.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ if test "$PHP_XLSWRITER" != "no"; then
4949
library/libxlsxwriter/src/drawing.c \
5050
library/libxlsxwriter/src/format.c \
5151
library/libxlsxwriter/src/hash_table.c \
52+
library/libxlsxwriter/src/metadata.c \
5253
library/libxlsxwriter/src/packager.c \
5354
library/libxlsxwriter/src/relationships.c \
5455
library/libxlsxwriter/src/shared_strings.c \

config.w32

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ if (PHP_XLSWRITER != "no") {
5858
drawing.c \
5959
format.c \
6060
hash_table.c \
61+
metadata.c \
6162
packager.c \
6263
relationships.c \
6364
shared_strings.c \

library/libxlsxwriter

Submodule libxlsxwriter updated 1196 files

tests/005.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ Check for vtiful presence
66
<?php
77
$config = ['path' => './tests'];
88
$excel = new \Vtiful\Kernel\Excel($config);
9-
$filePath = $excel->fileName('tutorial01.xlsx')
9+
$filePath = $excel->fileName('005.xlsx')
1010
->header(['Item', 'Cost'])
1111
->output();
1212
var_dump($filePath);
1313
?>
1414
--CLEAN--
1515
<?php
16-
@unlink(__DIR__ . '/tutorial01.xlsx');
16+
@unlink(__DIR__ . '/005.xlsx');
1717
?>
1818
--EXPECT--
19-
string(23) "./tests/tutorial01.xlsx"
19+
string(16) "./tests/005.xlsx"

tests/010.phpt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ Check for vtiful presence
66
<?php
77
$config = ['path' => './tests'];
88
$excel_one = new \Vtiful\Kernel\Excel($config);
9-
$fileOne = $excel_one->fileName('tutorial01.xlsx')
9+
$fileOne = $excel_one->fileName('010-1.xlsx')
1010
->header(['test1'])
1111
->data([
1212
['data1'],
1313
])
1414
->output();
1515
$excel_two = new \Vtiful\Kernel\Excel($config);
16-
$fileTwo = $excel_two->fileName('tutorial02.xlsx')
16+
$fileTwo = $excel_two->fileName('010-2.xlsx')
1717
->header(['test2'])
1818
->data([
1919
['data2'],
@@ -23,9 +23,9 @@ var_dump($fileOne,$fileTwo);
2323
?>
2424
--CLEAN--
2525
<?php
26-
@unlink(__DIR__ . '/tutorial01.xlsx');
27-
@unlink(__DIR__ . '/tutorial02.xlsx');
26+
@unlink(__DIR__ . '/010-1.xlsx');
27+
@unlink(__DIR__ . '/010-2.xlsx');
2828
?>
2929
--EXPECT--
30-
string(23) "./tests/tutorial01.xlsx"
31-
string(23) "./tests/tutorial02.xlsx"
30+
string(18) "./tests/010-1.xlsx"
31+
string(18) "./tests/010-2.xlsx"

tests/011.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Check for vtiful presence
77
$config = ['path' => './tests'];
88
$excel = new \Vtiful\Kernel\Excel($config);
99

10-
$fileObject = $excel->fileName('tutorial01.xlsx');
10+
$fileObject = $excel->fileName('11.xlsx');
1111
$fileHandle = $fileObject->getHandle();
1212

1313
$format = new \Vtiful\Kernel\Format($fileHandle);
@@ -22,7 +22,7 @@ var_dump($filePath);
2222
?>
2323
--CLEAN--
2424
<?php
25-
@unlink(__DIR__ . '/tutorial01.xlsx');
25+
@unlink(__DIR__ . '/11.xlsx');
2626
?>
2727
--EXPECT--
28-
string(23) "./tests/tutorial01.xlsx"
28+
string(15) "./tests/11.xlsx"

tests/012.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Check for vtiful presence
77
$config = ['path' => './tests'];
88
$excel = new \Vtiful\Kernel\Excel($config);
99

10-
$fileObject = $excel->fileName('tutorial01.xlsx');
10+
$fileObject = $excel->fileName('12.xlsx');
1111
$fileHandle = $fileObject->getHandle();
1212

1313
$format = new \Vtiful\Kernel\Format($fileHandle);
@@ -26,7 +26,7 @@ var_dump($filePath);
2626
?>
2727
--CLEAN--
2828
<?php
29-
@unlink(__DIR__ . '/tutorial01.xlsx');
29+
@unlink(__DIR__ . '/12.xlsx');
3030
?>
3131
--EXPECT--
32-
string(23) "./tests/tutorial01.xlsx"
32+
string(15) "./tests/12.xlsx"

tests/013.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Check for vtiful presence
77
$config = ['path' => './tests'];
88
$excel = new \Vtiful\Kernel\Excel($config);
99

10-
$textFile = $excel->fileName("tutorial01.xlsx")
10+
$textFile = $excel->fileName("13.xlsx")
1111
->header(['name', 'age']);
1212

1313
for ($index = 0; $index < 10; $index++) {
@@ -21,7 +21,7 @@ var_dump($filePath);
2121
?>
2222
--CLEAN--
2323
<?php
24-
@unlink(__DIR__ . '/tutorial01.xlsx');
24+
@unlink(__DIR__ . '/13.xlsx');
2525
?>
2626
--EXPECT--
27-
string(23) "./tests/tutorial01.xlsx"
27+
string(15) "./tests/13.xlsx"

tests/014.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Check for vtiful presence
77
$config = ['path' => './tests'];
88
$excel = new \Vtiful\Kernel\Excel($config);
99

10-
$freeFile = $excel->fileName("tutorial01.xlsx")
10+
$freeFile = $excel->fileName("14.xlsx")
1111
->header(['name', 'money']);
1212

1313
for($index = 1; $index < 10; $index++) {
@@ -24,7 +24,7 @@ var_dump($filePath);
2424
?>
2525
--CLEAN--
2626
<?php
27-
@unlink(__DIR__ . '/tutorial01.xlsx');
27+
@unlink(__DIR__ . '/14.xlsx');
2828
?>
2929
--EXPECT--
30-
string(23) "./tests/tutorial01.xlsx"
30+
string(15) "./tests/14.xlsx"

0 commit comments

Comments
 (0)