diff --git a/.codeclimate.yml b/.codeclimate.yml deleted file mode 100644 index 37ffdfd22d..0000000000 --- a/.codeclimate.yml +++ /dev/null @@ -1,16 +0,0 @@ -engines: - phpcodesniffer: - enabled: true - phpmd: - enabled: true - duplication: - enabled: true - config: - languages: - - php -ratings: - paths: - - src/**/* - - tests/** -exclude_paths: -- vendor/**/* diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml new file mode 100644 index 0000000000..6877c3e19d --- /dev/null +++ b/.github/workflows/php.yml @@ -0,0 +1,134 @@ +name: PHPPresentation +on: [push, pull_request] +jobs: + php-cs-fixer: + name: PHP CS Fixer + runs-on: ubuntu-latest + continue-on-error: true + steps: + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '7.4' + extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv + - uses: actions/checkout@v2 + + - name: Get Composer Cache Directory + id: composer-cache + run: | + echo "::set-output name=dir::$(composer config cache-files-dir)" + - name: Cache Composer Directory + uses: actions/cache@v2 + with: + path: ${{ steps.composer-cache.outputs.dir }} + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-composer- + - name: Validate composer config + run: composer validate --strict + + - name: Composer Install + run: composer install --ansi --prefer-dist --no-interaction --no-progress + + #- name: Run PHPCSFixer + # run: ./vendor/bin/php-cs-fixer fix --dry-run --diff + + phpmd: + name: PHP Mess Detector + runs-on: ubuntu-latest + steps: + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '7.4' + extensions: gd, xml, zip + - uses: actions/checkout@v2 + + - name: Get Composer Cache Directory + id: composer-cache + run: | + echo "::set-output name=dir::$(composer config cache-files-dir)" + - name: Cache Composer Directory + uses: actions/cache@v2 + with: + path: ${{ steps.composer-cache.outputs.dir }} + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-composer- + - name: Composer Install + run: composer install --ansi --prefer-dist --no-interaction --no-progress + + - name: Run phpmd + run: ./vendor/bin/phpmd src/,tests/ text ./phpmd.xml.dist + + phpstan: + name: PHP Static Analysis + runs-on: ubuntu-latest + continue-on-error: true + steps: + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '7.4' + extensions: gd, xml, zip + - uses: actions/checkout@v2 + + - name: Get Composer Cache Directory + id: composer-cache + run: | + echo "::set-output name=dir::$(composer config cache-files-dir)" + - name: Cache Composer Directory + uses: actions/cache@v2 + with: + path: ${{ steps.composer-cache.outputs.dir }} + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-composer- + - name: Composer Install + run: composer install --ansi --prefer-dist --no-interaction --no-progress + + #- name: Run phpstan + # run: ./vendor/bin/phpstan analyse -c phpstan.neon.dist + + phpunit: + name: PHPUnit + runs-on: ubuntu-latest + strategy: + matrix: + php: ['5.6', '7.0', '7.1', '7.2', '7.3'] + ## , '7.4', '8.0', '8.1' + steps: + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: gd, xml, zip + coverage: xdebug + + - uses: actions/checkout@v2 + + - name: Get Composer Cache Directory + id: composer-cache + run: | + echo "::set-output name=dir::$(composer config cache-files-dir)" + - name: Cache Composer Directory + uses: actions/cache@v2 + with: + path: ${{ steps.composer-cache.outputs.dir }} + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-composer- + - name: Composer Install + run: composer install --ansi --prefer-dist --no-interaction --no-progress + + - name: Run phpunit + run: ./vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/clover.xml + + - name: Upload coverage results to Coveralls + if: matrix.php-versions == '7.3' + env: + COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar + chmod +x php-coveralls.phar + php php-coveralls.phar --coverage_clover=build/clover.xml --json_path=build/coveralls-upload.json -vvv diff --git a/.scrutinizer.yml b/.scrutinizer.yml deleted file mode 100644 index 6d188bee8f..0000000000 --- a/.scrutinizer.yml +++ /dev/null @@ -1,24 +0,0 @@ -filter: - excluded_paths: [ 'vendor/*', 'tests/*', 'samples/*' ] - -before_commands: - - "composer install --prefer-source --dev" - -tools: - php_code_sniffer: - enabled: true - config: - standard: PSR2 - php_mess_detector: - enabled: true - config: - ruleset: phpmd.xml.dist - external_code_coverage: - enabled: true - timeout: 900 - php_cpd: true - # php_sim: # Temporarily disabled to allow focus on things other than duplicates - # min_mass: 40 - php_pdepend: true - php_analyzer: true - sensiolabs_security_checker: true \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 167238f4a3..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,67 +0,0 @@ -sudo: false -language: php - -php: - - 5.6 - - 7.0 - - 7.1 - - 7.2 - - 7.3 - -matrix: - include: - - php: 5.4 - dist: trusty - - php: 5.5 - dist: trusty - -env: - global: - - secure: "LtlUOzC8FtqgbqUTmU7EU281NSCb58UFdvnz8lelNIDltBdP4eayN/TsgNIePB4jXg2d2R56ZA6j/grhE/md6jdUkulV355H3GrH/hIZmmQ+F9+87agnwLzb9+MJbqXoiE7VvjY3zGIO09G897SUfsfu6JWEcscYFlsH6KcXM6M=" - - XDEBUG_MODE=coverage - -addons: - apt: - packages: - - graphviz - code_climate: - repo_token: 9d5714bfd25acc27c449c2d71cfb444351a3b91c59ed1a5dc3a50732d2bf45f0 - -before_script: - ## Composer - - composer self-update - - COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-source - ## PHPDocumentor - - mkdir -p build/docs - - mkdir -p build/coverage - -script: - ## PHP_CodeSniffer - - ./vendor/bin/phpcs src/ tests/ --standard=PSR2 -n - ## PHP Copy/Paste Detector - # - ./vendor/bin/phpcpd src/ - ## PHP Mess Detector - - ./vendor/bin/phpmd src/,tests/ text ./phpmd.xml.dist - ## PHPUnit - - ./vendor/bin/phpunit -c ./ --coverage-text --coverage-html ./build/coverage - ## PHPLOC - - ./vendor/bin/phploc src/ - ## PHPDocumentor - # - ./vendor/bin/phpdoc -q -d ./src -t ./build/docs --template="responsive-twig" - -after_script: - ## PHPDocumentor - # - bash .travis_shell_after_success.sh - ## Scrutinizer - - wget https://scrutinizer-ci.com/ocular.phar - - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml - ## CodeClimate - - ./vendor/bin/test-reporter - -notifications: - webhooks: - urls: - - https://webhooks.gitter.im/e/0dbc70ac93ba40880eef - on_success: change # options: [always|never|change] default: always - on_failure: always # options: [always|never|change] default: always - on_start: false # default: false diff --git a/.travis_shell_after_success.sh b/.travis_shell_after_success.sh deleted file mode 100644 index d3138a2485..0000000000 --- a/.travis_shell_after_success.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -echo "--DEBUG--" -echo "TRAVIS_REPO_SLUG: $TRAVIS_REPO_SLUG" -echo "TRAVIS_PHP_VERSION: $TRAVIS_PHP_VERSION" -echo "TRAVIS_PULL_REQUEST: $TRAVIS_PULL_REQUEST" - -if [ "$TRAVIS_REPO_SLUG" == "PHPOffice/PHPPresentation" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_PHP_VERSION" == "5.5" ]; then - - echo -e "Publishing PHPDoc...\n" - - cp -R build/docs $HOME/docs-latest - cp -R build/coverage $HOME/coverage-latest - - cd $HOME - git config --global user.email "travis@travis-ci.org" - git config --global user.name "travis-ci" - git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/PHPOffice/PHPPresentation gh-pages > /dev/null - - cd gh-pages - echo "--DEBUG : Suppression" - git rm -rf ./docs/$TRAVIS_BRANCH - - echo "--DEBUG : Dossier" - mkdir -p docs/$TRAVIS_BRANCH - mkdir -p coverage/$TRAVIS_BRANCH - - echo "--DEBUG : Copie" - cp -Rf $HOME/docs-latest/* ./docs/$TRAVIS_BRANCH/ - cp -Rf $HOME/coverage-latest/* ./coverage/$TRAVIS_BRANCH/ - - echo "--DEBUG : Git" - git add -f . - git commit -m "PHPDocumentor (Travis Build: $TRAVIS_BUILD_NUMBER - Branch: $TRAVIS_BRANCH)" - git push -fq origin gh-pages > /dev/null - - echo -e "Published PHPDoc to gh-pages.\n" - -fi diff --git a/tests/PhpPresentation/Tests/Writer/ODPresentation/ObjectsChartTest.php b/tests/PhpPresentation/Tests/Writer/ODPresentation/ObjectsChartTest.php index f9c3298518..2b84b1fb2c 100644 --- a/tests/PhpPresentation/Tests/Writer/ODPresentation/ObjectsChartTest.php +++ b/tests/PhpPresentation/Tests/Writer/ODPresentation/ObjectsChartTest.php @@ -75,7 +75,7 @@ public function testAxisFont() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'fo:font-family', 'Arial'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } public function testLegend() @@ -102,7 +102,7 @@ public function testLegend() $element = '/office:document-content/office:body/office:chart/chart:chart/table:table/table:table-header-rows/table:table-row/table:table-cell[@office:value-type=\'string\']'; $this->assertZipXmlElementExists('Object 1/content.xml', $element); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); $oChart->getLegend()->setPosition(Legend::POSITION_RIGHT); $this->resetPresentationFile(); @@ -111,7 +111,7 @@ public function testLegend() $this->assertZipXmlElementExists('Object 1/content.xml', $element); $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'chart:legend-position', 'end'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); $oChart->getLegend()->setPosition(Legend::POSITION_LEFT); $this->resetPresentationFile(); @@ -120,7 +120,7 @@ public function testLegend() $this->assertZipXmlElementExists('Object 1/content.xml', $element); $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'chart:legend-position', 'start'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); $oChart->getLegend()->setPosition(Legend::POSITION_BOTTOM); $this->resetPresentationFile(); @@ -129,7 +129,7 @@ public function testLegend() $this->assertZipXmlElementExists('Object 1/content.xml', $element); $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'chart:legend-position', 'bottom'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); $oChart->getLegend()->setPosition(Legend::POSITION_TOP); $this->resetPresentationFile(); @@ -138,7 +138,7 @@ public function testLegend() $this->assertZipXmlElementExists('Object 1/content.xml', $element); $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'chart:legend-position', 'top'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); $oChart->getLegend()->setPosition(Legend::POSITION_TOPRIGHT); $this->resetPresentationFile(); @@ -147,7 +147,7 @@ public function testLegend() $this->assertZipXmlElementExists('Object 1/content.xml', $element); $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'chart:legend-position', 'top-end'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } public function testSeries() @@ -166,7 +166,7 @@ public function testSeries() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'chart:data-label-number', 'value'); $this->assertZipXmlAttributeNotExists('Object 1/content.xml', $element, 'chart:data-label-text'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); $oSeries->setShowValue(false); $this->resetPresentationFile(); @@ -176,7 +176,7 @@ public function testSeries() $this->assertZipXmlAttributeNotExists('Object 1/content.xml', $element, 'chart:data-label-number'); $this->assertZipXmlAttributeNotExists('Object 1/content.xml', $element, 'chart:data-label-text'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); // $showCategoryName = false / $showPercentage = true / $showValue = true $oSeries->setShowValue(true); @@ -188,7 +188,7 @@ public function testSeries() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'chart:data-label-number', 'value-and-percentage'); $this->assertZipXmlAttributeNotExists('Object 1/content.xml', $element, 'chart:data-label-text'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); // $showCategoryName = false / $showPercentage = true / $showValue = false $oSeries->setShowValue(false); @@ -199,7 +199,7 @@ public function testSeries() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'chart:data-label-number', 'percentage'); $this->assertZipXmlAttributeNotExists('Object 1/content.xml', $element, 'chart:data-label-text'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); // $showCategoryName = false / $showPercentage = true / $showValue = false $oSeries->setShowCategoryName(true); @@ -209,7 +209,7 @@ public function testSeries() $this->assertZipXmlAttributeExists('Object 1/content.xml', $element, 'chart:data-label-text'); $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'chart:data-label-text', 'true'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } public function testTitleVisibility() @@ -227,14 +227,15 @@ public function testTitleVisibility() $this->assertZipXmlElementExists('Object 1/content.xml', $elementStyle); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); $this->assertInstanceOf('PhpOffice\PhpPresentation\Shape\Chart\Title', $oShape->getTitle()->setVisible(false)); $this->resetPresentationFile(); $this->assertZipXmlElementNotExists('Object 1/content.xml', $elementTitle); $this->assertZipXmlElementNotExists('Object 1/content.xml', $elementStyle); - // chart:title : Element chart failed to validate attributes $this->assertIsSchemaOpenDocumentValid('1.2'); + // chart:title : Element chart failed to validate attributes + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } public function testTypeArea() @@ -260,7 +261,7 @@ public function testTypeArea() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'draw:fill-color', '#93A9CE'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } public function testTypeAxisBounds() @@ -280,7 +281,7 @@ public function testTypeAxisBounds() $this->assertZipXmlAttributeNotExists('Object 1/content.xml', $element, 'chart:maximum'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); $oShape->getPlotArea()->getAxisX()->setMinBounds($value); $this->resetPresentationFile(); @@ -290,7 +291,7 @@ public function testTypeAxisBounds() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'chart:minimum', $value); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); $oShape->getPlotArea()->getAxisX()->setMinBounds(null); $oShape->getPlotArea()->getAxisX()->setMaxBounds($value); @@ -301,7 +302,7 @@ public function testTypeAxisBounds() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'chart:maximum', $value); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); $oShape->getPlotArea()->getAxisX()->setMinBounds($value); $oShape->getPlotArea()->getAxisX()->setMaxBounds($value); @@ -313,7 +314,7 @@ public function testTypeAxisBounds() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'chart:maximum', $value); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } public function testTypeBar() @@ -346,7 +347,7 @@ public function testTypeBar() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'chart:data-label-number', 'value'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } public function testTypeBarGroupingStacked() @@ -365,7 +366,7 @@ public function testTypeBarGroupingStacked() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'chart:data-label-number', 'value'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } public function testTypeBarGroupingPercentStacked() @@ -384,7 +385,7 @@ public function testTypeBarGroupingPercentStacked() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'chart:data-label-number', 'percentage'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } public function testTypeBarHorizontal() @@ -411,7 +412,7 @@ public function testTypeBarHorizontal() $this->assertZipXmlAttributeNotExists('Object 1/content.xml', $element, 'chart:right-angled-axes'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } public function testTypeBar3D() @@ -442,7 +443,7 @@ public function testTypeBar3D() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'chart:right-angled-axes', 'true'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } public function testTypeBar3DHorizontal() @@ -471,7 +472,7 @@ public function testTypeBar3DHorizontal() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'chart:right-angled-axes', 'true'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } public function testTypeDoughnut() @@ -498,7 +499,7 @@ public function testTypeDoughnut() $element = '/office:document-content/office:automatic-styles/style:style/style:chart-properties/chart:label-separator/text:p'; $this->assertZipXmlElementNotExists('Object 1/content.xml', $element); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); // $oDoughnut->setHoleSize($randHoleSize); // $this->resetPresentationFile(); @@ -510,7 +511,7 @@ public function testTypeDoughnut() $this->assertZipXmlElementExists('Object 1/content.xml', $element); $this->assertZipXmlElementEquals('Object 1/content.xml', $element, $randSeparator); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } public function testTypeLine() @@ -547,7 +548,7 @@ public function testTypeLine() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'svg:stroke-color', '#878787'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } public function testTypeLineGridlines() @@ -621,8 +622,8 @@ public function testTypeLineGridlines() $this->assertZipXmlAttributeStartsWith('Object 1/content.xml', $expectedElementStyle, 'svg:stroke-color', '#'); $this->assertZipXmlAttributeEndsWith('Object 1/content.xml', $expectedElementStyle, 'svg:stroke-color', $expectedColor->getRGB()); - // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + // chart:title : Element chart failed to validate attributes + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } } @@ -658,7 +659,7 @@ public function testTypeLineMarker() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $expectedElement, 'chart:symbol-height', $expectedSizeCm); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); $oSeries->getMarker()->setSymbol($expectedSymbol2); $oLine->setSeries(array($oSeries)); @@ -667,7 +668,7 @@ public function testTypeLineMarker() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $expectedElement, 'chart:symbol-name', 'horizontal-bar'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); $oSeries->getMarker()->setSymbol($expectedSymbol3); $oLine->setSeries(array($oSeries)); @@ -676,7 +677,7 @@ public function testTypeLineMarker() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $expectedElement, 'chart:symbol-name', 'circle'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); $oSeries->getMarker()->setSymbol($expectedSymbol4); $oLine->setSeries(array($oSeries)); @@ -685,7 +686,7 @@ public function testTypeLineMarker() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $expectedElement, 'chart:symbol-name', 'arrow-up'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); $oSeries->getMarker()->setSymbol($expectedSymbol5); $oLine->setSeries(array($oSeries)); @@ -696,7 +697,7 @@ public function testTypeLineMarker() $this->assertZipXmlAttributeNotExists('Object 1/content.xml', $expectedElement, 'chart:symbol-height'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } public function testTypeLineSeriesOutline() @@ -732,7 +733,7 @@ public function testTypeLineSeriesOutline() $this->assertZipXmlAttributeExists('Object 1/content.xml', $expectedElement, 'svg:stroke-color'); $this->assertZipXmlAttributeEquals('Object 1/content.xml', $expectedElement, 'svg:stroke-color', '#4a7ebb'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); $oSeries->setOutline($oOutline); $oLine->setSeries(array($oSeries)); @@ -745,7 +746,7 @@ public function testTypeLineSeriesOutline() $this->assertZipXmlAttributeExists('Object 1/content.xml', $expectedElement, 'svg:stroke-color'); $this->assertZipXmlAttributeEquals('Object 1/content.xml', $expectedElement, 'svg:stroke-color', '#' . $oColor->getRGB()); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } public function testTypePie() @@ -776,7 +777,7 @@ public function testTypePie() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'chart:reverse-direction', 'true'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } public function testTypePie3D() @@ -807,7 +808,7 @@ public function testTypePie3D() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'chart:reverse-direction', 'true'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } public function testTypePie3DExplosion() @@ -826,7 +827,7 @@ public function testTypePie3DExplosion() $this->assertZipXmlElementExists('Object 1/content.xml', $element); $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'chart:pie-offset', $value); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } public function testTypeScatter() @@ -842,7 +843,7 @@ public function testTypeScatter() $this->assertZipXmlElementExists('Object 1/content.xml', $element); $this->assertZipXmlAttributeEquals('Object 1/content.xml', $element, 'chart:class', 'chart:scatter'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } public function testTypeScatterMarker() @@ -876,7 +877,7 @@ public function testTypeScatterMarker() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $expectedElement, 'chart:symbol-height', $expectedSizeCm); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); $oSeries->getMarker()->setSymbol($expectedSymbol2); $oScatter->setSeries(array($oSeries)); @@ -885,7 +886,7 @@ public function testTypeScatterMarker() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $expectedElement, 'chart:symbol-name', 'horizontal-bar'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); $oSeries->getMarker()->setSymbol($expectedSymbol3); $oScatter->setSeries(array($oSeries)); @@ -894,7 +895,7 @@ public function testTypeScatterMarker() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $expectedElement, 'chart:symbol-name', 'circle'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); $oSeries->getMarker()->setSymbol($expectedSymbol4); $oScatter->setSeries(array($oSeries)); @@ -903,7 +904,7 @@ public function testTypeScatterMarker() $this->assertZipXmlAttributeEquals('Object 1/content.xml', $expectedElement, 'chart:symbol-name', 'arrow-up'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); $oSeries->getMarker()->setSymbol($expectedSymbol5); $oScatter->setSeries(array($oSeries)); @@ -914,7 +915,7 @@ public function testTypeScatterMarker() $this->assertZipXmlAttributeNotExists('Object 1/content.xml', $expectedElement, 'chart:symbol-height'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } public function testTypeScatterSeriesOutline() @@ -949,7 +950,7 @@ public function testTypeScatterSeriesOutline() $this->assertZipXmlAttributeExists('Object 1/content.xml', $expectedElement, 'svg:stroke-color'); $this->assertZipXmlAttributeEquals('Object 1/content.xml', $expectedElement, 'svg:stroke-color', '#4a7ebb'); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); $oSeries->setOutline($oOutline); $oScatter->setSeries(array($oSeries)); @@ -962,6 +963,6 @@ public function testTypeScatterSeriesOutline() $this->assertZipXmlAttributeExists('Object 1/content.xml', $expectedElement, 'svg:stroke-color'); $this->assertZipXmlAttributeEquals('Object 1/content.xml', $expectedElement, 'svg:stroke-color', '#' . $oColor->getRGB()); // chart:title : Element chart failed to validate attributes - $this->assertIsSchemaOpenDocumentValid('1.2'); + $this->assertIsSchemaOpenDocumentNotValid('1.2'); } }