Skip to content

Commit c6403b0

Browse files
committed
More Coveralls Experiments
1 parent 28c7540 commit c6403b0

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/php.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,10 @@ jobs:
138138

139139
- name: Upload coverage results to Coveralls
140140
if: matrix.php == '8.3'
141-
uses: coverallsapp/github-action@v2
142-
with:
143-
github-token: ${{ secrets.GITHUB_TOKEN }}
144-
file: build/clover.xml
145-
format: clover
141+
env:
142+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
143+
FAILURE_ACTION: "${{ matrix.php == '8.3' }}"
144+
run: |
145+
wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar
146+
chmod +x php-coveralls.phar
147+
php php-coveralls.phar --coverage_clover=build/clover.xml --json_path=build/coveralls-upload.json -vvv

tests/PhpWordTests/Writer/Word2007/Element/ChartTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ public function testValueAxisTitle(): void
190190
'showGridY' => true,
191191
'showLegend' => false,
192192
'valueAxisTitle' => 'Values',
193+
'categoryAxisTitle' => 'Categories',
193194
];
194195
$chartType = 'line';
195196
$categories = ['A', 'B', 'C', 'D', 'E'];
@@ -208,6 +209,10 @@ public function testValueAxisTitle(): void
208209
self::assertTrue($doc->elementExists($element));
209210
$element .= '/c:title/c:tx/c:rich/a:p/a:r/a:t';
210211
self::assertEquals('Values', $doc->getElement($element)->nodeValue);
212+
$element = "$path/c:catAx";
213+
self::assertTrue($doc->elementExists($element));
214+
$element .= '/c:title/c:tx/c:rich/a:p/a:r/a:t';
215+
self::assertEquals('Categories', $doc->getElement($element)->nodeValue);
211216
}
212217

213218
public function testNoAxisLabels(): void

0 commit comments

Comments
 (0)