From 9d2fcd87bfc2cd0aa6d025783875bcc0e8ffd0c3 Mon Sep 17 00:00:00 2001 From: Andrea Pollastri Date: Mon, 13 Nov 2023 16:00:37 +0100 Subject: [PATCH] Fix Pipeline --- .github/workflows/tests.yml | 4 ---- tests/DatiAnagraficiTest.php | 30 ++++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 tests/DatiAnagraficiTest.php diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 56f8ec5..b326e49 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,10 +25,6 @@ jobs: extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo coverage: none - - name: Setup problem matchers - run: | - echo "::add-matcher::${{ runner.tool_cache }}/php.json" - echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - name: Install dependencies run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction diff --git a/tests/DatiAnagraficiTest.php b/tests/DatiAnagraficiTest.php new file mode 100644 index 0000000..e20a75e --- /dev/null +++ b/tests/DatiAnagraficiTest.php @@ -0,0 +1,30 @@ +assertInstanceOf(DatiAnagrafici::class, $datiAnagrafici); + $this->assertInstanceOf(Id::class, $datiAnagrafici->IdFiscaleIVA); + $this->assertInstanceOf(Anagrafica::class, $datiAnagrafici->Anagrafica); + $this->assertEquals($codiceFiscale, $datiAnagrafici->CodiceFiscale); + $this->assertEquals($regimeFiscale, $datiAnagrafici->RegimeFiscale); + } +}