From 09074cd47445a298b75c61f1bc6ac1d04bfc58c9 Mon Sep 17 00:00:00 2001 From: Korben Date: Fri, 3 May 2024 00:02:58 +0200 Subject: [PATCH 1/5] added support php 8.3|8.4 --- .github/workflows/ci.yml | 76 ++++++------------- .../19b50397c4409d2f6315fa7aa8d2f3dc | 1 + .../20aafa6bd2d68f7d948c6a869cf3432c | 1 + .../29d4f92e407581cca9024adae2f53a5e | 1 + .../34b96ac7d1d191691eb1e06e0a932d81 | 1 + .../34e4ddd1807f6544f974b546f5dfe6de | 1 + .../41c13aa993be93d406ccf7e02984b3f4 | 1 + .../5281e07797756907ebb78da6d6d2e460 | 1 + .../5308e046a70d7b9a39ce83c80da853cf | 1 + .../56e02934c704dfd6ca1b8ddfc90d70c5 | 1 + .../690605eda7a124b94374d1ca11e221f1 | 1 + .../7d8887c3a4a0465ae7007ce7e715994f | 1 + .../88c99871ce958b0384c81fe215a66080 | 1 + .../918b415f111b6a486f6dea9c7b00cdea | 1 + .../983e15b363d520b72dfb7e126479342c | 1 + .../9da5744eaad0f2b88589086ddfe85299 | 1 + .../b4903662a38235ed329f524fd51372da | 1 + .../bbfb0ec9b5cabcc8c6a6e2f4d1752985 | 1 + .../c743f6a5ade3177a97bf68cee7110825 | 1 + .../c8c0f1107e8864884392c7c649ecf371 | 1 + .../c9a76ad98ca0d696985e64066f8f0190 | 1 + .../cba64fa0054915b7b8c0507f8b4b40bb | 1 + .../d1fb22ac51c50e3447e98dcc3cb5660c | 1 + .../d443530c0c33ec585ab743b6b8d43b2a | 1 + .../d4ee10075f85cb125620751a48e562e0 | 1 + .../e2fd5dcd81922a6f3cfed665d76c33df | 1 + .../e79cd615872136d63ba5ac6c2ef878b1 | 1 + .../ef13b03f586ed2a4cade7731c448bade | 1 + .../f084af5e5be9be2f99f558470115afed | 1 + .../fb38a89e6cf5990d2da8a93533be8011 | 1 + .phpunit.cache/test-results | 1 + composer.json | 12 +-- phpunit.xml.bak | 35 +++++++++ tests.sh | 3 +- .../Collections/LTreeCollectionTest.php | 60 +++++++-------- tests/functional/Helpers/LTreeHelperTest.php | 25 ++---- tests/functional/Helpers/LTreeNodeTest.php | 54 ++++--------- tests/functional/Models/LTreeModelTest.php | 38 ++++------ .../Providers/LTreeServiceProviderTest.php | 7 +- .../Relations/BelongsToTreelTest.php | 46 +++++------ .../Resources/LTreeResourceTest.php | 5 +- tests/functional/Types/LTreeTypeTest.php | 46 ++++------- 42 files changed, 201 insertions(+), 236 deletions(-) create mode 100644 .phpunit.cache/code-coverage/19b50397c4409d2f6315fa7aa8d2f3dc create mode 100644 .phpunit.cache/code-coverage/20aafa6bd2d68f7d948c6a869cf3432c create mode 100644 .phpunit.cache/code-coverage/29d4f92e407581cca9024adae2f53a5e create mode 100644 .phpunit.cache/code-coverage/34b96ac7d1d191691eb1e06e0a932d81 create mode 100644 .phpunit.cache/code-coverage/34e4ddd1807f6544f974b546f5dfe6de create mode 100644 .phpunit.cache/code-coverage/41c13aa993be93d406ccf7e02984b3f4 create mode 100644 .phpunit.cache/code-coverage/5281e07797756907ebb78da6d6d2e460 create mode 100644 .phpunit.cache/code-coverage/5308e046a70d7b9a39ce83c80da853cf create mode 100644 .phpunit.cache/code-coverage/56e02934c704dfd6ca1b8ddfc90d70c5 create mode 100644 .phpunit.cache/code-coverage/690605eda7a124b94374d1ca11e221f1 create mode 100644 .phpunit.cache/code-coverage/7d8887c3a4a0465ae7007ce7e715994f create mode 100644 .phpunit.cache/code-coverage/88c99871ce958b0384c81fe215a66080 create mode 100644 .phpunit.cache/code-coverage/918b415f111b6a486f6dea9c7b00cdea create mode 100644 .phpunit.cache/code-coverage/983e15b363d520b72dfb7e126479342c create mode 100644 .phpunit.cache/code-coverage/9da5744eaad0f2b88589086ddfe85299 create mode 100644 .phpunit.cache/code-coverage/b4903662a38235ed329f524fd51372da create mode 100644 .phpunit.cache/code-coverage/bbfb0ec9b5cabcc8c6a6e2f4d1752985 create mode 100644 .phpunit.cache/code-coverage/c743f6a5ade3177a97bf68cee7110825 create mode 100644 .phpunit.cache/code-coverage/c8c0f1107e8864884392c7c649ecf371 create mode 100644 .phpunit.cache/code-coverage/c9a76ad98ca0d696985e64066f8f0190 create mode 100644 .phpunit.cache/code-coverage/cba64fa0054915b7b8c0507f8b4b40bb create mode 100644 .phpunit.cache/code-coverage/d1fb22ac51c50e3447e98dcc3cb5660c create mode 100644 .phpunit.cache/code-coverage/d443530c0c33ec585ab743b6b8d43b2a create mode 100644 .phpunit.cache/code-coverage/d4ee10075f85cb125620751a48e562e0 create mode 100644 .phpunit.cache/code-coverage/e2fd5dcd81922a6f3cfed665d76c33df create mode 100644 .phpunit.cache/code-coverage/e79cd615872136d63ba5ac6c2ef878b1 create mode 100644 .phpunit.cache/code-coverage/ef13b03f586ed2a4cade7731c448bade create mode 100644 .phpunit.cache/code-coverage/f084af5e5be9be2f99f558470115afed create mode 100644 .phpunit.cache/code-coverage/fb38a89e6cf5990d2da8a93533be8011 create mode 100644 .phpunit.cache/test-results create mode 100644 phpunit.xml.bak diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8789576..e0fb105 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,10 +13,10 @@ on: env: COVERAGE: '1' - php_extensions: 'apcu, bcmath, ctype, curl, dom, iconv, intl, json, mbstring, opcache, openssl, pdo, pdo_pgsql, pcntl, pcov, posix, redis, session, simplexml, sockets, tokenizer, xml, xmlwriter, zip' + php_extensions: 'apcu, bcmath, ctype, curl, dom, iconv, intl, json, mbstring, opcache, openssl, pdo, pdo_pgsql, pcntl, pcov, posix, redis, session, simplexml, sockets, tokenizer, xml, xmlwriter, zip, xdebug' key: cache-v0.1 DB_USER: 'postgres' - DB_NAME: 'testing' + DB_NAME: 'postgres' DB_PASSWORD: 'postgres' DB_HOST: '127.0.0.1' @@ -26,14 +26,17 @@ jobs: timeout-minutes: 20 strategy: matrix: - operating_system: - - ubuntu-latest - php_versions: - - '7.4' + operating_system: [ubuntu-latest] + experimental: [false] + php_versions: ['8.3'] + include: + - operating_system: 'ubuntu-latest' + php_versions: '8.3' + experimental: true fail-fast: false env: PHP_CS_FIXER_FUTURE_MODE: '0' - name: 'Lint PHP' + name: 'Linter / PHP ${{ matrix.php_versions }} ' steps: - name: 'Checkout' uses: actions/checkout@v2 @@ -63,58 +66,24 @@ jobs: - name: 'Setup problem matchers for PHPUnit' run: 'echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"' - name: 'Install PHP dependencies with Composer' + continue-on-error: ${{ matrix.experimental }} run: COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader working-directory: './' - name: 'Linting PHP source files' + continue-on-error: ${{ matrix.experimental }} run: 'vendor/bin/ecs check --config=ecs.php .' test: strategy: fail-fast: false matrix: - experimental: - - false - operating_system: - - ubuntu-latest - postgres: - - '10' - - '11' - - '12' - php_versions: - - '7.3' - - '7.4' - - '8.0' + experimental: [false] + operating_system: [ubuntu-latest] + postgres: ['10', '11', '12', '13', '14', '15'] + php_versions: ['8.3'] include: - operating_system: ubuntu-latest - postgres: '9.6' - php_versions: '7.3' - experimental: false - - operating_system: ubuntu-latest - postgres: '9.6' - php_versions: '7.4' - experimental: false - - operating_system: ubuntu-latest - postgres: '10' - php_versions: '8.0' - experimental: true - - operating_system: ubuntu-latest - postgres: '11' - php_versions: '8.0' - experimental: true - - operating_system: ubuntu-latest - postgres: '12' - php_versions: '8.0' - experimental: true - - operating_system: ubuntu-latest - postgres: '13' - php_versions: '8.0' - experimental: true - - operating_system: ubuntu-latest - postgres: '14' - php_versions: '8.1' - experimental: true - - operating_system: ubuntu-latest - postgres: '15' - php_versions: '8.2' + postgres: '16' + php_versions: '8.4' experimental: true runs-on: '${{ matrix.operating_system }}' services: @@ -158,10 +127,11 @@ jobs: with: php-version: ${{ matrix.php_versions }} extensions: ${{ env.php_extensions }} - ini-values: 'pcov.directory=src, date.timezone=UTC, upload_max_filesize=20M, post_max_size=20M, memory_limit=512M, short_open_tag=Off' - coverage: pcov + ini-values: 'date.timezone=UTC, upload_max_filesize=20M, post_max_size=20M, memory_limit=512M, short_open_tag=Off, xdebug.mode="develop,coverage"' + coverage: xdebug tools: 'phpunit' - name: 'Install PHP dependencies with Composer' + continue-on-error: ${{ matrix.experimental }} run: COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader working-directory: './' - name: 'Run Unit Tests with PHPUnit' @@ -172,9 +142,11 @@ jobs: -e "s/\${DATABASE}/${{ env.DB_NAME }}/" \ -e "s/\${HOST}/${{ env.DB_HOST }}/" \ phpunit.xml.dist > phpunit.xml + ./vendor/bin/phpunit -c phpunit.xml --migrate-configuration ./vendor/bin/phpunit \ --stderr \ - --coverage-clover build/logs/clover.xml + --coverage-clover build/logs/clover.xml \ + --coverage-text working-directory: './' - name: 'Upload coverage results to Coveralls' if: ${{ !matrix.experimental }} diff --git a/.phpunit.cache/code-coverage/19b50397c4409d2f6315fa7aa8d2f3dc b/.phpunit.cache/code-coverage/19b50397c4409d2f6315fa7aa8d2f3dc new file mode 100644 index 0000000..1f4c96b --- /dev/null +++ b/.phpunit.cache/code-coverage/19b50397c4409d2f6315fa7aa8d2f3dc @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:50:"Umbrellio\LTree\Relations\BelongsToDescendantsTree";a:6:{s:4:"name";s:24:"BelongsToDescendantsTree";s:14:"namespacedName";s:50:"Umbrellio\LTree\Relations\BelongsToDescendantsTree";s:9:"namespace";s:25:"Umbrellio\LTree\Relations";s:9:"startLine";i:12;s:7:"endLine";i:27;s:7:"methods";a:2:{s:11:"modifyQuery";a:6:{s:10:"methodName";s:11:"modifyQuery";s:9:"signature";s:100:"modifyQuery($query, Illuminate\Database\Eloquent\Model $model): Illuminate\Database\Eloquent\Builder";s:10:"visibility";s:9:"protected";s:9:"startLine";i:18;s:7:"endLine";i:21;s:3:"ccn";i:1;}s:11:"getOperator";a:6:{s:10:"methodName";s:11:"getOperator";s:9:"signature";s:21:"getOperator(): string";s:10:"visibility";s:9:"protected";s:9:"startLine";i:23;s:7:"endLine";i:26;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:28;s:18:"commentLinesOfCode";i:4;s:21:"nonCommentLinesOfCode";i:24;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:2:{i:20;i:1;i:25;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/20aafa6bd2d68f7d948c6a869cf3432c b/.phpunit.cache/code-coverage/20aafa6bd2d68f7d948c6a869cf3432c new file mode 100644 index 0000000..c7c1560 --- /dev/null +++ b/.phpunit.cache/code-coverage/20aafa6bd2d68f7d948c6a869cf3432c @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:51:"Umbrellio\LTree\Exceptions\LTreeReflectionException";a:6:{s:4:"name";s:24:"LTreeReflectionException";s:14:"namespacedName";s:51:"Umbrellio\LTree\Exceptions\LTreeReflectionException";s:9:"namespace";s:26:"Umbrellio\LTree\Exceptions";s:9:"startLine";i:9;s:7:"endLine";i:15;s:7:"methods";a:1:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:16:"__construct($id)";s:10:"visibility";s:6:"public";s:9:"startLine";i:11;s:7:"endLine";i:14;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:16;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:16;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:1:{i:13;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/29d4f92e407581cca9024adae2f53a5e b/.phpunit.cache/code-coverage/29d4f92e407581cca9024adae2f53a5e new file mode 100644 index 0000000..ee98ff1 --- /dev/null +++ b/.phpunit.cache/code-coverage/29d4f92e407581cca9024adae2f53a5e @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:54:"Umbrellio\LTree\Exceptions\LTreeUndefinedNodeException";a:6:{s:4:"name";s:27:"LTreeUndefinedNodeException";s:14:"namespacedName";s:54:"Umbrellio\LTree\Exceptions\LTreeUndefinedNodeException";s:9:"namespace";s:26:"Umbrellio\LTree\Exceptions";s:9:"startLine";i:9;s:7:"endLine";i:15;s:7:"methods";a:1:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:16:"__construct($id)";s:10:"visibility";s:6:"public";s:9:"startLine";i:11;s:7:"endLine";i:14;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:16;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:16;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:1:{i:13;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/34b96ac7d1d191691eb1e06e0a932d81 b/.phpunit.cache/code-coverage/34b96ac7d1d191691eb1e06e0a932d81 new file mode 100644 index 0000000..192d71d --- /dev/null +++ b/.phpunit.cache/code-coverage/34b96ac7d1d191691eb1e06e0a932d81 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:39:"Umbrellio\LTree\Resources\LTreeResource";a:6:{s:4:"name";s:13:"LTreeResource";s:14:"namespacedName";s:39:"Umbrellio\LTree\Resources\LTreeResource";s:9:"namespace";s:25:"Umbrellio\LTree\Resources";s:9:"startLine";i:14;s:7:"endLine";i:27;s:7:"methods";a:2:{s:7:"toArray";a:6:{s:10:"methodName";s:7:"toArray";s:9:"signature";s:17:"toArray($request)";s:10:"visibility";s:6:"public";s:9:"startLine";i:16;s:7:"endLine";i:21;s:3:"ccn";i:1;}s:11:"toTreeArray";a:6:{s:10:"methodName";s:11:"toTreeArray";s:9:"signature";s:29:"toTreeArray($request, $model)";s:10:"visibility";s:9:"protected";s:9:"startLine";i:26;s:7:"endLine";i:26;s:3:"ccn";i:0;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:28;s:18:"commentLinesOfCode";i:6;s:21:"nonCommentLinesOfCode";i:22;}s:15:"ignoredLinesFor";a:1:{i:0;i:14;}s:17:"executableLinesIn";a:4:{i:18;i:1;i:19;i:1;i:20;i:1;i:26;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/34e4ddd1807f6544f974b546f5dfe6de b/.phpunit.cache/code-coverage/34e4ddd1807f6544f974b546f5dfe6de new file mode 100644 index 0000000..33388bb --- /dev/null +++ b/.phpunit.cache/code-coverage/34e4ddd1807f6544f974b546f5dfe6de @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:50:"Umbrellio\LTree\Schema\Grammars\LTreeSchemaGrammar";a:6:{s:4:"name";s:18:"LTreeSchemaGrammar";s:14:"namespacedName";s:50:"Umbrellio\LTree\Schema\Grammars\LTreeSchemaGrammar";s:9:"namespace";s:31:"Umbrellio\LTree\Schema\Grammars";s:9:"startLine";i:10;s:7:"endLine";i:18;s:7:"methods";a:1:{s:9:"typeLtree";a:6:{s:10:"methodName";s:9:"typeLtree";s:9:"signature";s:11:"typeLtree()";s:10:"visibility";s:9:"protected";s:9:"startLine";i:12;s:7:"endLine";i:17;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:19;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:19;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:3:{i:14;i:1;i:16;i:1;i:15;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/41c13aa993be93d406ccf7e02984b3f4 b/.phpunit.cache/code-coverage/41c13aa993be93d406ccf7e02984b3f4 new file mode 100644 index 0000000..ef690a9 --- /dev/null +++ b/.phpunit.cache/code-coverage/41c13aa993be93d406ccf7e02984b3f4 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:30:"Umbrellio\LTree\LTreeExtension";a:6:{s:4:"name";s:14:"LTreeExtension";s:14:"namespacedName";s:30:"Umbrellio\LTree\LTreeExtension";s:9:"namespace";s:15:"Umbrellio\LTree";s:9:"startLine";i:14;s:7:"endLine";i:37;s:7:"methods";a:3:{s:9:"getMixins";a:6:{s:10:"methodName";s:9:"getMixins";s:9:"signature";s:18:"getMixins(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:18;s:7:"endLine";i:24;s:3:"ccn";i:1;}s:7:"getName";a:6:{s:10:"methodName";s:7:"getName";s:9:"signature";s:17:"getName(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:26;s:7:"endLine";i:29;s:3:"ccn";i:1;}s:8:"getTypes";a:6:{s:10:"methodName";s:8:"getTypes";s:9:"signature";s:17:"getTypes(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:31;s:7:"endLine";i:36;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:38;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:38;}s:15:"ignoredLinesFor";a:1:{i:0;i:14;}s:17:"executableLinesIn";a:8:{i:20;i:2;i:21;i:2;i:22;i:2;i:23;i:2;i:28;i:3;i:33;i:4;i:34;i:4;i:35;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/5281e07797756907ebb78da6d6d2e460 b/.phpunit.cache/code-coverage/5281e07797756907ebb78da6d6d2e460 new file mode 100644 index 0000000..9dd3de4 --- /dev/null +++ b/.phpunit.cache/code-coverage/5281e07797756907ebb78da6d6d2e460 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:0:{}s:8:"traitsIn";a:1:{s:43:"Umbrellio\LTree\Traits\HasTreeRelationships";a:6:{s:4:"name";s:20:"HasTreeRelationships";s:14:"namespacedName";s:43:"Umbrellio\LTree\Traits\HasTreeRelationships";s:9:"namespace";s:22:"Umbrellio\LTree\Traits";s:9:"startLine";i:20;s:7:"endLine";i:73;s:7:"methods";a:3:{s:22:"belongsToAncestorsTree";a:6:{s:10:"methodName";s:22:"belongsToAncestorsTree";s:9:"signature";s:94:"belongsToAncestorsTree(string $related, string $throwRelation, ?string $foreignKey, $ownerKey)";s:10:"visibility";s:9:"protected";s:9:"startLine";i:22;s:7:"endLine";i:29;s:3:"ccn";i:1;}s:24:"belongsToDescendantsTree";a:6:{s:10:"methodName";s:24:"belongsToDescendantsTree";s:9:"signature";s:96:"belongsToDescendantsTree(string $related, string $throwRelation, ?string $foreignKey, $ownerKey)";s:10:"visibility";s:9:"protected";s:9:"startLine";i:32;s:7:"endLine";i:45;s:3:"ccn";i:1;}s:13:"belongsToTree";a:6:{s:10:"methodName";s:13:"belongsToTree";s:9:"signature";s:157:"belongsToTree(string $relationClass, string $related, string $throwRelation, ?string $foreignKey, $ownerKey): Umbrellio\LTree\Relations\AbstractBelongsToTree";s:10:"visibility";s:9:"protected";s:9:"startLine";i:47;s:7:"endLine";i:72;s:3:"ccn";i:4;}}}}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:74;s:18:"commentLinesOfCode";i:5;s:21:"nonCommentLinesOfCode";i:69;}s:15:"ignoredLinesFor";a:1:{i:0;i:20;}s:17:"executableLinesIn";a:20:{i:28;i:1;i:38;i:2;i:39;i:2;i:40;i:2;i:41;i:2;i:42;i:2;i:43;i:2;i:44;i:2;i:54;i:3;i:56;i:4;i:60;i:6;i:57;i:6;i:58;i:6;i:59;i:6;i:63;i:7;i:64;i:8;i:65;i:8;i:66;i:8;i:69;i:9;i:71;i:10;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/5308e046a70d7b9a39ce83c80da853cf b/.phpunit.cache/code-coverage/5308e046a70d7b9a39ce83c80da853cf new file mode 100644 index 0000000..fbf421c --- /dev/null +++ b/.phpunit.cache/code-coverage/5308e046a70d7b9a39ce83c80da853cf @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:49:"Umbrellio\LTree\Resources\LTreeResourceCollection";a:6:{s:4:"name";s:23:"LTreeResourceCollection";s:14:"namespacedName";s:49:"Umbrellio\LTree\Resources\LTreeResourceCollection";s:9:"namespace";s:25:"Umbrellio\LTree\Resources";s:9:"startLine";i:11;s:7:"endLine";i:26;s:7:"methods";a:1:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:65:"__construct($resource, $sort, bool $usingSort, bool $loadMissing)";s:10:"visibility";s:6:"public";s:9:"startLine";i:16;s:7:"endLine";i:25;s:3:"ccn";i:2;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:27;s:18:"commentLinesOfCode";i:3;s:21:"nonCommentLinesOfCode";i:24;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:4:{i:18;i:1;i:20;i:2;i:21;i:3;i:24;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/56e02934c704dfd6ca1b8ddfc90d70c5 b/.phpunit.cache/code-coverage/56e02934c704dfd6ca1b8ddfc90d70c5 new file mode 100644 index 0000000..246d62f --- /dev/null +++ b/.phpunit.cache/code-coverage/56e02934c704dfd6ca1b8ddfc90d70c5 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:0:{}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:21;s:18:"commentLinesOfCode";i:3;s:21:"nonCommentLinesOfCode";i:18;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:0:{}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/690605eda7a124b94374d1ca11e221f1 b/.phpunit.cache/code-coverage/690605eda7a124b94374d1ca11e221f1 new file mode 100644 index 0000000..1476d73 --- /dev/null +++ b/.phpunit.cache/code-coverage/690605eda7a124b94374d1ca11e221f1 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:0:{}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:18;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:18;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:0:{}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/7d8887c3a4a0465ae7007ce7e715994f b/.phpunit.cache/code-coverage/7d8887c3a4a0465ae7007ce7e715994f new file mode 100644 index 0000000..30564a3 --- /dev/null +++ b/.phpunit.cache/code-coverage/7d8887c3a4a0465ae7007ce7e715994f @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:37:"Umbrellio\LTree\Schema\LTreeBlueprint";a:6:{s:4:"name";s:14:"LTreeBlueprint";s:14:"namespacedName";s:37:"Umbrellio\LTree\Schema\LTreeBlueprint";s:9:"namespace";s:22:"Umbrellio\LTree\Schema";s:9:"startLine";i:11;s:7:"endLine";i:19;s:7:"methods";a:1:{s:5:"ltree";a:6:{s:10:"methodName";s:5:"ltree";s:9:"signature";s:7:"ltree()";s:10:"visibility";s:6:"public";s:9:"startLine";i:13;s:7:"endLine";i:18;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:20;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:20;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:3:{i:15;i:1;i:17;i:1;i:16;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/88c99871ce958b0384c81fe215a66080 b/.phpunit.cache/code-coverage/88c99871ce958b0384c81fe215a66080 new file mode 100644 index 0000000..4ddefca --- /dev/null +++ b/.phpunit.cache/code-coverage/88c99871ce958b0384c81fe215a66080 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:0:{}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:17;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:17;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:0:{}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/918b415f111b6a486f6dea9c7b00cdea b/.phpunit.cache/code-coverage/918b415f111b6a486f6dea9c7b00cdea new file mode 100644 index 0000000..052e3d0 --- /dev/null +++ b/.phpunit.cache/code-coverage/918b415f111b6a486f6dea9c7b00cdea @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:0:{}s:8:"traitsIn";a:1:{s:38:"Umbrellio\LTree\Traits\LTreeModelTrait";a:6:{s:4:"name";s:15:"LTreeModelTrait";s:14:"namespacedName";s:38:"Umbrellio\LTree\Traits\LTreeModelTrait";s:9:"namespace";s:22:"Umbrellio\LTree\Traits";s:9:"startLine";i:21;s:7:"endLine";i:105;s:7:"methods";a:13:{s:13:"newCollection";a:6:{s:10:"methodName";s:13:"newCollection";s:9:"signature";s:73:"newCollection(array $models): Umbrellio\LTree\Collections\LTreeCollection";s:10:"visibility";s:6:"public";s:9:"startLine";i:25;s:7:"endLine";i:28;s:3:"ccn";i:1;}s:11:"ltreeParent";a:6:{s:10:"methodName";s:11:"ltreeParent";s:9:"signature";s:63:"ltreeParent(): Illuminate\Database\Eloquent\Relations\BelongsTo";s:10:"visibility";s:6:"public";s:9:"startLine";i:30;s:7:"endLine";i:33;s:3:"ccn";i:1;}s:13:"ltreeChildren";a:6:{s:10:"methodName";s:13:"ltreeChildren";s:9:"signature";s:63:"ltreeChildren(): Illuminate\Database\Eloquent\Relations\HasMany";s:10:"visibility";s:6:"public";s:9:"startLine";i:35;s:7:"endLine";i:38;s:3:"ccn";i:1;}s:10:"isParentOf";a:6:{s:10:"methodName";s:10:"isParentOf";s:9:"signature";s:25:"isParentOf(int $id): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:40;s:7:"endLine";i:43;s:3:"ccn";i:1;}s:14:"scopeParentsOf";a:6:{s:10:"methodName";s:14:"scopeParentsOf";s:9:"signature";s:111:"scopeParentsOf(Illuminate\Database\Eloquent\Builder $query, array $paths): Illuminate\Database\Eloquent\Builder";s:10:"visibility";s:6:"public";s:9:"startLine";i:45;s:7:"endLine";i:52;s:3:"ccn";i:1;}s:9:"scopeRoot";a:6:{s:10:"methodName";s:9:"scopeRoot";s:9:"signature";s:92:"scopeRoot(Illuminate\Database\Eloquent\Builder $query): Illuminate\Database\Eloquent\Builder";s:10:"visibility";s:6:"public";s:9:"startLine";i:54;s:7:"endLine";i:57;s:3:"ccn";i:1;}s:18:"scopeDescendantsOf";a:6:{s:10:"methodName";s:18:"scopeDescendantsOf";s:9:"signature";s:171:"scopeDescendantsOf(Illuminate\Database\Eloquent\Builder $query, Umbrellio\LTree\Interfaces\LTreeModelInterface $model, bool $reverse): Illuminate\Database\Eloquent\Builder";s:10:"visibility";s:6:"public";s:9:"startLine";i:59;s:7:"endLine";i:66;s:3:"ccn";i:2;}s:16:"scopeAncestorsOf";a:6:{s:10:"methodName";s:16:"scopeAncestorsOf";s:9:"signature";s:169:"scopeAncestorsOf(Illuminate\Database\Eloquent\Builder $query, Umbrellio\LTree\Interfaces\LTreeModelInterface $model, bool $reverse): Illuminate\Database\Eloquent\Builder";s:10:"visibility";s:6:"public";s:9:"startLine";i:68;s:7:"endLine";i:75;s:3:"ccn";i:2;}s:16:"scopeWithoutSelf";a:6:{s:10:"methodName";s:16:"scopeWithoutSelf";s:9:"signature";s:108:"scopeWithoutSelf(Illuminate\Database\Eloquent\Builder $query, int $id): Illuminate\Database\Eloquent\Builder";s:10:"visibility";s:6:"public";s:9:"startLine";i:77;s:7:"endLine";i:80;s:3:"ccn";i:1;}s:26:"getLtreeProxyUpdateColumns";a:6:{s:10:"methodName";s:26:"getLtreeProxyUpdateColumns";s:9:"signature";s:35:"getLtreeProxyUpdateColumns(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:82;s:7:"endLine";i:85;s:3:"ccn";i:1;}s:26:"getLtreeProxyDeleteColumns";a:6:{s:10:"methodName";s:26:"getLtreeProxyDeleteColumns";s:9:"signature";s:35:"getLtreeProxyDeleteColumns(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:87;s:7:"endLine";i:90;s:3:"ccn";i:1;}s:18:"getAncestorByLevel";a:6:{s:10:"methodName";s:18:"getAncestorByLevel";s:9:"signature";s:30:"getAncestorByLevel(int $level)";s:10:"visibility";s:6:"public";s:9:"startLine";i:92;s:7:"endLine";i:95;s:3:"ccn";i:1;}s:20:"scopeAncestorByLevel";a:6:{s:10:"methodName";s:20:"scopeAncestorByLevel";s:9:"signature";s:130:"scopeAncestorByLevel(Illuminate\Database\Eloquent\Builder $query, int $level, ?string $path): Illuminate\Database\Eloquent\Builder";s:10:"visibility";s:6:"public";s:9:"startLine";i:97;s:7:"endLine";i:104;s:3:"ccn";i:2;}}}}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:106;s:18:"commentLinesOfCode";i:6;s:21:"nonCommentLinesOfCode";i:100;}s:15:"ignoredLinesFor";a:1:{i:0;i:21;}s:17:"executableLinesIn";a:29:{i:27;i:3;i:32;i:4;i:37;i:5;i:42;i:6;i:47;i:7;i:48;i:7;i:49;i:7;i:50;i:7;i:51;i:7;i:56;i:8;i:61;i:9;i:62;i:9;i:63;i:9;i:64;i:9;i:65;i:9;i:70;i:10;i:71;i:10;i:72;i:10;i:73;i:10;i:74;i:10;i:79;i:11;i:84;i:12;i:89;i:13;i:94;i:14;i:99;i:15;i:100;i:15;i:101;i:15;i:102;i:15;i:103;i:15;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/983e15b363d520b72dfb7e126479342c b/.phpunit.cache/code-coverage/983e15b363d520b72dfb7e126479342c new file mode 100644 index 0000000..571f735 --- /dev/null +++ b/.phpunit.cache/code-coverage/983e15b363d520b72dfb7e126479342c @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:31:"Umbrellio\LTree\Types\LTreeType";a:6:{s:4:"name";s:9:"LTreeType";s:14:"namespacedName";s:31:"Umbrellio\LTree\Types\LTreeType";s:9:"namespace";s:21:"Umbrellio\LTree\Types";s:9:"startLine";i:10;s:7:"endLine";i:50;s:7:"methods";a:4:{s:17:"getSQLDeclaration";a:6:{s:10:"methodName";s:17:"getSQLDeclaration";s:9:"signature";s:102:"getSQLDeclaration(array $fieldDeclaration, Doctrine\DBAL\Platforms\AbstractPlatform $platform): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:15;s:7:"endLine";i:18;s:3:"ccn";i:1;}s:17:"convertToPHPValue";a:6:{s:10:"methodName";s:17:"convertToPHPValue";s:9:"signature";s:85:"convertToPHPValue($value, Doctrine\DBAL\Platforms\AbstractPlatform $platform): ?array";s:10:"visibility";s:6:"public";s:9:"startLine";i:20;s:7:"endLine";i:31;s:3:"ccn";i:2;}s:22:"convertToDatabaseValue";a:6:{s:10:"methodName";s:22:"convertToDatabaseValue";s:9:"signature";s:91:"convertToDatabaseValue($value, Doctrine\DBAL\Platforms\AbstractPlatform $platform): ?string";s:10:"visibility";s:6:"public";s:9:"startLine";i:33;s:7:"endLine";i:44;s:3:"ccn";i:3;}s:7:"getName";a:6:{s:10:"methodName";s:7:"getName";s:9:"signature";s:17:"getName(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:46;s:7:"endLine";i:49;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:51;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:51;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:14:{i:17;i:3;i:22;i:4;i:23;i:5;i:26;i:6;i:27;i:6;i:29;i:6;i:30;i:6;i:28;i:7;i:35;i:8;i:36;i:9;i:39;i:10;i:40;i:11;i:43;i:12;i:48;i:13;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/9da5744eaad0f2b88589086ddfe85299 b/.phpunit.cache/code-coverage/9da5744eaad0f2b88589086ddfe85299 new file mode 100644 index 0000000..e38c04d --- /dev/null +++ b/.phpunit.cache/code-coverage/9da5744eaad0f2b88589086ddfe85299 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:0:{}s:8:"traitsIn";a:1:{s:33:"Umbrellio\LTree\Traits\LTreeTrait";a:6:{s:4:"name";s:10:"LTreeTrait";s:14:"namespacedName";s:33:"Umbrellio\LTree\Traits\LTreeTrait";s:9:"namespace";s:22:"Umbrellio\LTree\Traits";s:9:"startLine";i:15;s:7:"endLine";i:46;s:7:"methods";a:5:{s:20:"getLtreeParentColumn";a:6:{s:10:"methodName";s:20:"getLtreeParentColumn";s:9:"signature";s:30:"getLtreeParentColumn(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:17;s:7:"endLine";i:20;s:3:"ccn";i:1;}s:18:"getLtreePathColumn";a:6:{s:10:"methodName";s:18:"getLtreePathColumn";s:9:"signature";s:28:"getLtreePathColumn(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:22;s:7:"endLine";i:25;s:3:"ccn";i:1;}s:16:"getLtreeParentId";a:6:{s:10:"methodName";s:16:"getLtreeParentId";s:9:"signature";s:24:"getLtreeParentId(): ?int";s:10:"visibility";s:6:"public";s:9:"startLine";i:27;s:7:"endLine";i:31;s:3:"ccn";i:2;}s:12:"getLtreePath";a:6:{s:10:"methodName";s:12:"getLtreePath";s:9:"signature";s:19:"getLtreePath($mode)";s:10:"visibility";s:6:"public";s:9:"startLine";i:33;s:7:"endLine";i:40;s:3:"ccn";i:3;}s:13:"getLtreeLevel";a:6:{s:10:"methodName";s:13:"getLtreeLevel";s:9:"signature";s:20:"getLtreeLevel(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:42;s:7:"endLine";i:45;s:3:"ccn";i:2;}}}}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:47;s:18:"commentLinesOfCode";i:3;s:21:"nonCommentLinesOfCode";i:44;}s:15:"ignoredLinesFor";a:1:{i:0;i:15;}s:17:"executableLinesIn";a:9:{i:19;i:1;i:24;i:2;i:29;i:3;i:30;i:4;i:35;i:6;i:36;i:7;i:37;i:8;i:39;i:9;i:44;i:10;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/b4903662a38235ed329f524fd51372da b/.phpunit.cache/code-coverage/b4903662a38235ed329f524fd51372da new file mode 100644 index 0000000..3110111 --- /dev/null +++ b/.phpunit.cache/code-coverage/b4903662a38235ed329f524fd51372da @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:48:"Umbrellio\LTree\Relations\BelongsToAncestorsTree";a:6:{s:4:"name";s:22:"BelongsToAncestorsTree";s:14:"namespacedName";s:48:"Umbrellio\LTree\Relations\BelongsToAncestorsTree";s:9:"namespace";s:25:"Umbrellio\LTree\Relations";s:9:"startLine";i:12;s:7:"endLine";i:27;s:7:"methods";a:2:{s:11:"modifyQuery";a:6:{s:10:"methodName";s:11:"modifyQuery";s:9:"signature";s:100:"modifyQuery($query, Illuminate\Database\Eloquent\Model $model): Illuminate\Database\Eloquent\Builder";s:10:"visibility";s:9:"protected";s:9:"startLine";i:18;s:7:"endLine";i:21;s:3:"ccn";i:1;}s:11:"getOperator";a:6:{s:10:"methodName";s:11:"getOperator";s:9:"signature";s:21:"getOperator(): string";s:10:"visibility";s:9:"protected";s:9:"startLine";i:23;s:7:"endLine";i:26;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:28;s:18:"commentLinesOfCode";i:4;s:21:"nonCommentLinesOfCode";i:24;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:2:{i:20;i:1;i:25;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/bbfb0ec9b5cabcc8c6a6e2f4d1752985 b/.phpunit.cache/code-coverage/bbfb0ec9b5cabcc8c6a6e2f4d1752985 new file mode 100644 index 0000000..53969a2 --- /dev/null +++ b/.phpunit.cache/code-coverage/bbfb0ec9b5cabcc8c6a6e2f4d1752985 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:48:"Umbrellio\LTree\Providers\LTreeExtensionProvider";a:6:{s:4:"name";s:22:"LTreeExtensionProvider";s:14:"namespacedName";s:48:"Umbrellio\LTree\Providers\LTreeExtensionProvider";s:9:"namespace";s:25:"Umbrellio\LTree\Providers";s:9:"startLine";i:11;s:7:"endLine";i:17;s:7:"methods";a:1:{s:8:"register";a:6:{s:10:"methodName";s:8:"register";s:9:"signature";s:16:"register(): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:13;s:7:"endLine";i:16;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:18;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:18;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:1:{i:15;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/c743f6a5ade3177a97bf68cee7110825 b/.phpunit.cache/code-coverage/c743f6a5ade3177a97bf68cee7110825 new file mode 100644 index 0000000..59560a7 --- /dev/null +++ b/.phpunit.cache/code-coverage/c743f6a5ade3177a97bf68cee7110825 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:35:"Umbrellio\LTree\Helpers\LTreeHelper";a:6:{s:4:"name";s:11:"LTreeHelper";s:14:"namespacedName";s:35:"Umbrellio\LTree\Helpers\LTreeHelper";s:9:"namespace";s:23:"Umbrellio\LTree\Helpers";s:9:"startLine";i:13;s:7:"endLine";i:94;s:7:"methods";a:4:{s:9:"buildPath";a:6:{s:10:"methodName";s:9:"buildPath";s:9:"signature";s:23:"buildPath($model): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:18;s:7:"endLine";i:35;s:3:"ccn";i:2;}s:8:"moveNode";a:6:{s:10:"methodName";s:8:"moveNode";s:9:"signature";s:43:"moveNode($model, $to, array $columns): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:41;s:7:"endLine";i:59;s:3:"ccn";i:2;}s:15:"dropDescendants";a:6:{s:10:"methodName";s:15:"dropDescendants";s:9:"signature";s:45:"dropDescendants($model, array $columns): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:64;s:7:"endLine";i:75;s:3:"ccn";i:1;}s:15:"wrapExpressions";a:6:{s:10:"methodName";s:15:"wrapExpressions";s:9:"signature";s:38:"wrapExpressions(array $columns): array";s:10:"visibility";s:7:"private";s:9:"startLine";i:77;s:7:"endLine";i:93;s:3:"ccn";i:5;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:95;s:18:"commentLinesOfCode";i:10;s:21:"nonCommentLinesOfCode";i:85;}s:15:"ignoredLinesFor";a:1:{i:0;i:13;}s:17:"executableLinesIn";a:48:{i:20;i:1;i:21;i:2;i:22;i:3;i:23;i:4;i:25;i:5;i:26;i:6;i:27;i:6;i:28;i:6;i:29;i:6;i:30;i:6;i:31;i:6;i:32;i:6;i:33;i:6;i:34;i:7;i:43;i:9;i:44;i:10;i:45;i:11;i:46;i:12;i:47;i:13;i:48;i:13;i:49;i:13;i:51;i:14;i:52;i:14;i:53;i:14;i:54;i:14;i:55;i:14;i:56;i:14;i:57;i:14;i:58;i:15;i:66;i:17;i:67;i:17;i:68;i:17;i:69;i:17;i:70;i:17;i:71;i:17;i:72;i:17;i:73;i:18;i:74;i:19;i:79;i:20;i:80;i:21;i:82;i:22;i:83;i:23;i:84;i:24;i:85;i:25;i:86;i:26;i:87;i:27;i:89;i:28;i:92;i:29;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/c8c0f1107e8864884392c7c649ecf371 b/.phpunit.cache/code-coverage/c8c0f1107e8864884392c7c649ecf371 new file mode 100644 index 0000000..bca13fe --- /dev/null +++ b/.phpunit.cache/code-coverage/c8c0f1107e8864884392c7c649ecf371 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:43:"Umbrellio\LTree\Collections\LTreeCollection";a:6:{s:4:"name";s:15:"LTreeCollection";s:14:"namespacedName";s:43:"Umbrellio\LTree\Collections\LTreeCollection";s:9:"namespace";s:27:"Umbrellio\LTree\Collections";s:9:"startLine";i:20;s:7:"endLine";i:111;s:7:"methods";a:6:{s:6:"toTree";a:6:{s:10:"methodName";s:6:"toTree";s:9:"signature";s:77:"toTree(bool $usingSort, bool $loadMissing): Umbrellio\LTree\Helpers\LTreeNode";s:10:"visibility";s:6:"public";s:9:"startLine";i:24;s:7:"endLine";i:45;s:3:"ccn";i:4;}s:10:"withLeaves";a:6:{s:10:"methodName";s:10:"withLeaves";s:9:"signature";s:29:"withLeaves(bool $state): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:47;s:7:"endLine";i:52;s:3:"ccn";i:1;}s:16:"loadMissingNodes";a:6:{s:10:"methodName";s:16:"loadMissingNodes";s:9:"signature";s:30:"loadMissingNodes($model): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:54;s:7:"endLine";i:61;s:3:"ccn";i:2;}s:13:"excludeLeaves";a:6:{s:10:"methodName";s:13:"excludeLeaves";s:9:"signature";s:21:"excludeLeaves(): void";s:10:"visibility";s:7:"private";s:9:"startLine";i:63;s:7:"endLine";i:71;s:3:"ccn";i:3;}s:15:"hasMissingNodes";a:6:{s:10:"methodName";s:15:"hasMissingNodes";s:9:"signature";s:29:"hasMissingNodes($model): bool";s:10:"visibility";s:7:"private";s:9:"startLine";i:76;s:7:"endLine";i:88;s:3:"ccn";i:2;}s:15:"appendAncestors";a:6:{s:10:"methodName";s:15:"appendAncestors";s:9:"signature";s:29:"appendAncestors($model): void";s:10:"visibility";s:7:"private";s:9:"startLine";i:93;s:7:"endLine";i:110;s:3:"ccn";i:2;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:112;s:18:"commentLinesOfCode";i:12;s:21:"nonCommentLinesOfCode";i:100;}s:15:"ignoredLinesFor";a:1:{i:0;i:20;}s:17:"executableLinesIn";a:38:{i:26;i:2;i:27;i:3;i:30;i:4;i:31;i:5;i:34;i:6;i:35;i:7;i:38;i:8;i:39;i:8;i:40;i:8;i:41;i:8;i:42;i:8;i:44;i:9;i:49;i:10;i:51;i:11;i:56;i:12;i:57;i:13;i:60;i:14;i:65;i:15;i:67;i:16;i:68;i:17;i:78;i:18;i:80;i:19;i:81;i:20;i:84;i:21;i:85;i:21;i:86;i:21;i:87;i:21;i:95;i:22;i:96;i:22;i:97;i:22;i:98;i:23;i:99;i:23;i:100;i:23;i:103;i:24;i:104;i:24;i:105;i:24;i:107;i:25;i:108;i:26;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/c9a76ad98ca0d696985e64066f8f0190 b/.phpunit.cache/code-coverage/c9a76ad98ca0d696985e64066f8f0190 new file mode 100644 index 0000000..65acf2d --- /dev/null +++ b/.phpunit.cache/code-coverage/c9a76ad98ca0d696985e64066f8f0190 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:47:"Umbrellio\LTree\Relations\AbstractBelongsToTree";a:6:{s:4:"name";s:21:"AbstractBelongsToTree";s:14:"namespacedName";s:47:"Umbrellio\LTree\Relations\AbstractBelongsToTree";s:9:"namespace";s:25:"Umbrellio\LTree\Relations";s:9:"startLine";i:15;s:7:"endLine";i:158;s:7:"methods";a:11:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:166:"__construct(Illuminate\Database\Eloquent\Builder $query, Illuminate\Database\Eloquent\Model $child, string $throughRelationName, string $foreignKey, string $ownerKey)";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:33;s:3:"ccn";i:1;}s:14:"addConstraints";a:6:{s:10:"methodName";s:14:"addConstraints";s:9:"signature";s:22:"addConstraints(): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:35;s:7:"endLine";i:47;s:3:"ccn";i:3;}s:19:"addEagerConstraints";a:6:{s:10:"methodName";s:19:"addEagerConstraints";s:9:"signature";s:40:"addEagerConstraints(array $models): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:49;s:7:"endLine";i:80;s:3:"ccn";i:1;}s:5:"match";a:6:{s:10:"methodName";s:5:"match";s:9:"signature";s:81:"match(array $models, Illuminate\Database\Eloquent\Collection $results, $relation)";s:10:"visibility";s:6:"public";s:9:"startLine";i:82;s:7:"endLine";i:99;s:3:"ccn";i:5;}s:10:"getResults";a:6:{s:10:"methodName";s:10:"getResults";s:9:"signature";s:12:"getResults()";s:10:"visibility";s:6:"public";s:9:"startLine";i:101;s:7:"endLine";i:106;s:3:"ccn";i:2;}s:12:"initRelation";a:6:{s:10:"methodName";s:12:"initRelation";s:9:"signature";s:38:"initRelation(array $models, $relation)";s:10:"visibility";s:6:"public";s:9:"startLine";i:115;s:7:"endLine";i:122;s:3:"ccn";i:2;}s:11:"modifyQuery";a:6:{s:10:"methodName";s:11:"modifyQuery";s:9:"signature";s:100:"modifyQuery($query, Illuminate\Database\Eloquent\Model $model): Illuminate\Database\Eloquent\Builder";s:10:"visibility";s:9:"protected";s:9:"startLine";i:127;s:7:"endLine";i:127;s:3:"ccn";i:0;}s:11:"getOperator";a:6:{s:10:"methodName";s:11:"getOperator";s:9:"signature";s:21:"getOperator(): string";s:10:"visibility";s:9:"protected";s:9:"startLine";i:129;s:7:"endLine";i:129;s:3:"ccn";i:0;}s:17:"getEagerModelKeys";a:6:{s:10:"methodName";s:17:"getEagerModelKeys";s:9:"signature";s:32:"getEagerModelKeys(array $models)";s:10:"visibility";s:9:"protected";s:9:"startLine";i:131;s:7:"endLine";i:144;s:3:"ccn";i:3;}s:15:"getLTreeRelated";a:6:{s:10:"methodName";s:15:"getLTreeRelated";s:9:"signature";s:65:"getLTreeRelated(): Umbrellio\LTree\Interfaces\LTreeModelInterface";s:10:"visibility";s:7:"private";s:9:"startLine";i:146;s:7:"endLine";i:152;s:3:"ccn";i:1;}s:12:"getParentKey";a:6:{s:10:"methodName";s:12:"getParentKey";s:9:"signature";s:14:"getParentKey()";s:10:"visibility";s:7:"private";s:9:"startLine";i:154;s:7:"endLine";i:157;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:159;s:18:"commentLinesOfCode";i:10;s:21:"nonCommentLinesOfCode";i:149;}s:15:"ignoredLinesFor";a:1:{i:0;i:15;}s:17:"executableLinesIn";a:59:{i:28;i:4;i:29;i:5;i:30;i:6;i:32;i:7;i:37;i:8;i:39;i:9;i:41;i:10;i:42;i:11;i:43;i:11;i:44;i:11;i:51;i:12;i:53;i:13;i:55;i:14;i:57;i:15;i:58;i:15;i:59;i:15;i:60;i:16;i:62;i:17;i:64;i:18;i:65;i:18;i:66;i:18;i:74;i:18;i:75;i:18;i:67;i:19;i:68;i:19;i:69;i:19;i:70;i:19;i:71;i:19;i:72;i:19;i:73;i:19;i:77;i:20;i:79;i:21;i:84;i:22;i:86;i:23;i:87;i:24;i:90;i:25;i:91;i:26;i:92;i:27;i:93;i:28;i:98;i:29;i:103;i:30;i:104;i:31;i:105;i:32;i:117;i:33;i:118;i:34;i:121;i:35;i:127;i:36;i:129;i:37;i:133;i:38;i:135;i:39;i:136;i:40;i:137;i:41;i:141;i:42;i:143;i:43;i:148;i:44;i:149;i:44;i:150;i:44;i:151;i:44;i:156;i:45;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/cba64fa0054915b7b8c0507f8b4b40bb b/.phpunit.cache/code-coverage/cba64fa0054915b7b8c0507f8b4b40bb new file mode 100644 index 0000000..a70beb2 --- /dev/null +++ b/.phpunit.cache/code-coverage/cba64fa0054915b7b8c0507f8b4b40bb @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:46:"Umbrellio\LTree\Providers\LTreeServiceProvider";a:6:{s:4:"name";s:20:"LTreeServiceProvider";s:14:"namespacedName";s:46:"Umbrellio\LTree\Providers\LTreeServiceProvider";s:9:"namespace";s:25:"Umbrellio\LTree\Providers";s:9:"startLine";i:11;s:7:"endLine";i:17;s:7:"methods";a:1:{s:8:"register";a:6:{s:10:"methodName";s:8:"register";s:9:"signature";s:10:"register()";s:10:"visibility";s:6:"public";s:9:"startLine";i:13;s:7:"endLine";i:16;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:18;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:18;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:1:{i:15;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/d1fb22ac51c50e3447e98dcc3cb5660c b/.phpunit.cache/code-coverage/d1fb22ac51c50e3447e98dcc3cb5660c new file mode 100644 index 0000000..198bf06 --- /dev/null +++ b/.phpunit.cache/code-coverage/d1fb22ac51c50e3447e98dcc3cb5660c @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:52:"Umbrellio\LTree\Exceptions\InconsistentTreeException";a:6:{s:4:"name";s:25:"InconsistentTreeException";s:14:"namespacedName";s:52:"Umbrellio\LTree\Exceptions\InconsistentTreeException";s:9:"namespace";s:26:"Umbrellio\LTree\Exceptions";s:9:"startLine";i:9;s:7:"endLine";i:11;s:7:"methods";a:0:{}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:12;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:12;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:0:{}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/d443530c0c33ec585ab743b6b8d43b2a b/.phpunit.cache/code-coverage/d443530c0c33ec585ab743b6b8d43b2a new file mode 100644 index 0000000..39c1c39 --- /dev/null +++ b/.phpunit.cache/code-coverage/d443530c0c33ec585ab743b6b8d43b2a @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:0:{}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:15;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:15;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:0:{}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/d4ee10075f85cb125620751a48e562e0 b/.phpunit.cache/code-coverage/d4ee10075f85cb125620751a48e562e0 new file mode 100644 index 0000000..4f71342 --- /dev/null +++ b/.phpunit.cache/code-coverage/d4ee10075f85cb125620751a48e562e0 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:36:"Umbrellio\LTree\Helpers\LTreeBuilder";a:6:{s:4:"name";s:12:"LTreeBuilder";s:14:"namespacedName";s:36:"Umbrellio\LTree\Helpers\LTreeBuilder";s:9:"namespace";s:23:"Umbrellio\LTree\Helpers";s:9:"startLine";i:11;s:7:"endLine";i:86;s:7:"methods";a:5:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:70:"__construct(string $pathField, string $idField, string $parentIdField)";s:10:"visibility";s:6:"public";s:9:"startLine";i:19;s:7:"endLine";i:24;s:3:"ccn";i:1;}s:5:"build";a:6:{s:10:"methodName";s:5:"build";s:9:"signature";s:109:"build(Umbrellio\LTree\Collections\LTreeCollection $items, bool $usingSort): Umbrellio\LTree\Helpers\LTreeNode";s:10:"visibility";s:6:"public";s:9:"startLine";i:26;s:7:"endLine";i:47;s:3:"ccn";i:4;}s:10:"getNodeIds";a:6:{s:10:"methodName";s:10:"getNodeIds";s:9:"signature";s:24:"getNodeIds($item): array";s:10:"visibility";s:7:"private";s:9:"startLine";i:49;s:7:"endLine";i:59;s:3:"ccn";i:2;}s:7:"getNode";a:6:{s:10:"methodName";s:7:"getNode";s:9:"signature";s:81:"getNode(int $id, string $path, ?int $parentId): Umbrellio\LTree\Helpers\LTreeNode";s:10:"visibility";s:7:"private";s:9:"startLine";i:61;s:7:"endLine";i:70;s:3:"ccn";i:4;}s:17:"hasNoMissingNodes";a:6:{s:10:"methodName";s:17:"hasNoMissingNodes";s:9:"signature";s:46:"hasNoMissingNodes(int $id, string $path): bool";s:10:"visibility";s:7:"private";s:9:"startLine";i:72;s:7:"endLine";i:85;s:3:"ccn";i:4;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:87;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:87;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:34:{i:21;i:6;i:22;i:7;i:23;i:8;i:28;i:9;i:29;i:10;i:32;i:11;i:34;i:12;i:35;i:13;i:36;i:14;i:37;i:15;i:40;i:16;i:41;i:17;i:42;i:18;i:43;i:19;i:44;i:20;i:46;i:21;i:51;i:22;i:52;i:23;i:53;i:24;i:55;i:25;i:56;i:26;i:58;i:27;i:63;i:28;i:64;i:29;i:66;i:30;i:67;i:31;i:69;i:32;i:74;i:33;i:75;i:34;i:77;i:35;i:78;i:36;i:79;i:37;i:80;i:38;i:84;i:39;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/e2fd5dcd81922a6f3cfed665d76c33df b/.phpunit.cache/code-coverage/e2fd5dcd81922a6f3cfed665d76c33df new file mode 100644 index 0000000..fbd0102 --- /dev/null +++ b/.phpunit.cache/code-coverage/e2fd5dcd81922a6f3cfed665d76c33df @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:0:{}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:15;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:15;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:0:{}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/e79cd615872136d63ba5ac6c2ef878b1 b/.phpunit.cache/code-coverage/e79cd615872136d63ba5ac6c2ef878b1 new file mode 100644 index 0000000..adf26db --- /dev/null +++ b/.phpunit.cache/code-coverage/e79cd615872136d63ba5ac6c2ef878b1 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:53:"Umbrellio\LTree\Exceptions\InvalidTraitInjectionClass";a:6:{s:4:"name";s:26:"InvalidTraitInjectionClass";s:14:"namespacedName";s:53:"Umbrellio\LTree\Exceptions\InvalidTraitInjectionClass";s:9:"namespace";s:26:"Umbrellio\LTree\Exceptions";s:9:"startLine";i:9;s:7:"endLine";i:11;s:7:"methods";a:0:{}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:12;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:12;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:0:{}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/ef13b03f586ed2a4cade7731c448bade b/.phpunit.cache/code-coverage/ef13b03f586ed2a4cade7731c448bade new file mode 100644 index 0000000..a01e762 --- /dev/null +++ b/.phpunit.cache/code-coverage/ef13b03f586ed2a4cade7731c448bade @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:37:"Umbrellio\LTree\Services\LTreeService";a:6:{s:4:"name";s:12:"LTreeService";s:14:"namespacedName";s:37:"Umbrellio\LTree\Services\LTreeService";s:9:"namespace";s:24:"Umbrellio\LTree\Services";s:9:"startLine";i:12;s:7:"endLine";i:46;s:7:"methods";a:4:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:56:"__construct(Umbrellio\LTree\Helpers\LTreeHelper $helper)";s:10:"visibility";s:6:"public";s:9:"startLine";i:16;s:7:"endLine";i:19;s:3:"ccn";i:1;}s:10:"createPath";a:6:{s:10:"methodName";s:10:"createPath";s:9:"signature";s:71:"createPath(Umbrellio\LTree\Interfaces\LTreeModelInterface $model): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:24;s:3:"ccn";i:1;}s:10:"updatePath";a:6:{s:10:"methodName";s:10:"updatePath";s:9:"signature";s:71:"updatePath(Umbrellio\LTree\Interfaces\LTreeModelInterface $model): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:29;s:7:"endLine";i:35;s:3:"ccn";i:1;}s:15:"dropDescendants";a:6:{s:10:"methodName";s:15:"dropDescendants";s:9:"signature";s:76:"dropDescendants(Umbrellio\LTree\Interfaces\LTreeModelInterface $model): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:40;s:7:"endLine";i:45;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:47;s:18:"commentLinesOfCode";i:6;s:21:"nonCommentLinesOfCode";i:41;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:7:{i:18;i:2;i:23;i:3;i:31;i:4;i:33;i:5;i:34;i:6;i:42;i:7;i:44;i:8;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/f084af5e5be9be2f99f558470115afed b/.phpunit.cache/code-coverage/f084af5e5be9be2f99f558470115afed new file mode 100644 index 0000000..d4841fc --- /dev/null +++ b/.phpunit.cache/code-coverage/f084af5e5be9be2f99f558470115afed @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:0:{}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:12;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:12;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:0:{}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/fb38a89e6cf5990d2da8a93533be8011 b/.phpunit.cache/code-coverage/fb38a89e6cf5990d2da8a93533be8011 new file mode 100644 index 0000000..37db352 --- /dev/null +++ b/.phpunit.cache/code-coverage/fb38a89e6cf5990d2da8a93533be8011 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:33:"Umbrellio\LTree\Helpers\LTreeNode";a:6:{s:4:"name";s:9:"LTreeNode";s:14:"namespacedName";s:33:"Umbrellio\LTree\Helpers\LTreeNode";s:9:"namespace";s:23:"Umbrellio\LTree\Helpers";s:9:"startLine";i:18;s:7:"endLine";i:167;s:7:"methods";a:15:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:19:"__construct($model)";s:10:"visibility";s:6:"public";s:9:"startLine";i:23;s:7:"endLine";i:26;s:3:"ccn";i:1;}s:6:"isRoot";a:6:{s:10:"methodName";s:6:"isRoot";s:9:"signature";s:14:"isRoot(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:28;s:7:"endLine";i:31;s:3:"ccn";i:1;}s:9:"getParent";a:6:{s:10:"methodName";s:9:"getParent";s:9:"signature";s:18:"getParent(): ?self";s:10:"visibility";s:6:"public";s:9:"startLine";i:33;s:7:"endLine";i:36;s:3:"ccn";i:1;}s:9:"setParent";a:6:{s:10:"methodName";s:9:"setParent";s:9:"signature";s:30:"setParent(?self $parent): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:38;s:7:"endLine";i:41;s:3:"ccn";i:1;}s:8:"addChild";a:6:{s:10:"methodName";s:8:"addChild";s:9:"signature";s:26:"addChild(self $node): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:43;s:7:"endLine";i:49;s:3:"ccn";i:1;}s:11:"getChildren";a:6:{s:10:"methodName";s:11:"getChildren";s:9:"signature";s:54:"getChildren(): Illuminate\Database\Eloquent\Collection";s:10:"visibility";s:6:"public";s:9:"startLine";i:51;s:7:"endLine";i:57;s:3:"ccn";i:2;}s:16:"countDescendants";a:6:{s:10:"methodName";s:16:"countDescendants";s:9:"signature";s:23:"countDescendants(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:59;s:7:"endLine";i:71;s:3:"ccn";i:1;}s:10:"findInTree";a:6:{s:10:"methodName";s:10:"findInTree";s:9:"signature";s:26:"findInTree(int $id): ?self";s:10:"visibility";s:6:"public";s:9:"startLine";i:73;s:7:"endLine";i:85;s:3:"ccn";i:5;}s:4:"each";a:6:{s:10:"methodName";s:4:"each";s:9:"signature";s:30:"each(callable $callback): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:87;s:7:"endLine";i:97;s:3:"ccn";i:2;}s:12:"toCollection";a:6:{s:10:"methodName";s:12:"toCollection";s:9:"signature";s:59:"toCollection(): Umbrellio\LTree\Collections\LTreeCollection";s:10:"visibility";s:6:"public";s:9:"startLine";i:99;s:7:"endLine";i:106;s:3:"ccn";i:1;}s:12:"pathAsString";a:6:{s:10:"methodName";s:12:"pathAsString";s:9:"signature";s:14:"pathAsString()";s:10:"visibility";s:6:"public";s:9:"startLine";i:108;s:7:"endLine";i:111;s:3:"ccn";i:2;}s:11:"toTreeArray";a:6:{s:10:"methodName";s:11:"toTreeArray";s:9:"signature";s:31:"toTreeArray(callable $callback)";s:10:"visibility";s:6:"public";s:9:"startLine";i:113;s:7:"endLine";i:116;s:3:"ccn";i:1;}s:8:"sortTree";a:6:{s:10:"methodName";s:8:"sortTree";s:9:"signature";s:18:"sortTree($options)";s:10:"visibility";s:6:"public";s:9:"startLine";i:123;s:7:"endLine";i:137;s:3:"ccn";i:2;}s:13:"fillTreeArray";a:6:{s:10:"methodName";s:13:"fillTreeArray";s:9:"signature";s:50:"fillTreeArray(iterable $nodes, callable $callback)";s:10:"visibility";s:7:"private";s:9:"startLine";i:139;s:7:"endLine";i:149;s:3:"ccn";i:2;}s:17:"optionsToCallback";a:6:{s:10:"methodName";s:17:"optionsToCallback";s:9:"signature";s:43:"optionsToCallback(array $options): callable";s:10:"visibility";s:7:"private";s:9:"startLine";i:151;s:7:"endLine";i:166;s:3:"ccn";i:5;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:168;s:18:"commentLinesOfCode";i:9;s:21:"nonCommentLinesOfCode";i:159;}s:15:"ignoredLinesFor";a:1:{i:0;i:18;}s:17:"executableLinesIn";a:69:{i:25;i:3;i:30;i:4;i:35;i:5;i:40;i:6;i:45;i:7;i:46;i:7;i:47;i:7;i:48;i:8;i:53;i:9;i:54;i:10;i:56;i:11;i:61;i:12;i:62;i:12;i:63;i:12;i:64;i:12;i:66;i:12;i:67;i:12;i:68;i:12;i:69;i:12;i:70;i:12;i:65;i:13;i:75;i:14;i:76;i:15;i:78;i:16;i:79;i:17;i:80;i:18;i:81;i:19;i:84;i:20;i:89;i:21;i:90;i:22;i:92;i:23;i:93;i:23;i:94;i:23;i:96;i:23;i:95;i:24;i:101;i:25;i:102;i:26;i:104;i:26;i:103;i:27;i:105;i:28;i:110;i:29;i:115;i:30;i:125;i:31;i:126;i:32;i:127;i:33;i:128;i:34;i:130;i:35;i:133;i:35;i:132;i:36;i:134;i:37;i:135;i:37;i:136;i:37;i:141;i:38;i:142;i:39;i:143;i:40;i:144;i:41;i:145;i:42;i:146;i:43;i:148;i:44;i:153;i:45;i:165;i:45;i:154;i:46;i:155;i:47;i:156;i:48;i:158;i:49;i:159;i:50;i:160;i:51;i:161;i:52;i:164;i:53;}} \ No newline at end of file diff --git a/.phpunit.cache/test-results b/.phpunit.cache/test-results new file mode 100644 index 0000000..ae19468 --- /dev/null +++ b/.phpunit.cache/test-results @@ -0,0 +1 @@ +{"version":1,"defects":{"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::collectionCanBeConvertedIntoTree":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::createViaServiceRoot":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::moveSubtrees":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::proxyColumns":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::deleteRoot":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::deleteSubtree":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::deleteViaServiceSubtree":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::nodeCantHaveUnknownParent":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::nodeCantBeParentToItself":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::findSuccess":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::countDescendants":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::each":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::toTreeOnEmptyCollection":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::toCollection":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::toTreeArray":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::nodePresenter":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::sortFail":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::sort":8,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::root":8,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::ancestors":8,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::getAncestorByLevel":8,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::children":8,"Umbrellio\\LTree\\tests\\functional\\Providers\\LTreeServiceProviderTest::providerInit":8,"Umbrellio\\LTree\\tests\\functional\\Relations\\BelongsToTreelTest::missingParentsLtreeModel":8,"Umbrellio\\LTree\\tests\\functional\\Types\\LTreeTypeTest::getSQLDeclaration":8,"Umbrellio\\LTree\\tests\\functional\\Types\\LTreeTypeTest::getTypeName":8,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::loadMissingNodes#consistent":8,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::withoutLoadMissingForPartialTree#partial with single branch without single nodes":8,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::withoutLoadMissingForPartialTree#partial with single branch without more nodes":8,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::withoutLoadMissingForPartialTree#partial with more branches":8,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::withoutLoadMissingNodes#non_consistent_without_loading":8,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::parentsOf#single_as_array":8,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::parentsOf#all_as_array":8,"Umbrellio\\LTree\\tests\\functional\\Relations\\BelongsToTreelTest::getBelongsToParentsTree#two_levels":8,"Umbrellio\\LTree\\tests\\functional\\Relations\\BelongsToTreelTest::getBelongsToParentsTree#three_levels":8,"Umbrellio\\LTree\\tests\\functional\\Relations\\BelongsToTreelTest::getBelongsToDescendantsTree#with_descendants":8},"times":{"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::collectionCanBeConvertedIntoTree":0.075,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::createViaServiceRoot":0.013,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::moveSubtrees":0.032,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::proxyColumns":0.034,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::deleteRoot":0.017,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::deleteSubtree":0.015,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::deleteViaServiceSubtree":0.019,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::nodeCantHaveUnknownParent":0.018,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::nodeCantBeParentToItself":0.019,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::findSuccess":0.019,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::countDescendants":0.019,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::each":0.017,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::toTreeOnEmptyCollection":0.009,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::toCollection":0.022,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::toTreeArray":0.014,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::nodePresenter":0.015,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::sortFail":0.016,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::sort":0.014,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::root":0.013,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::ancestors":0.019,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::getAncestorByLevel":0.036,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::children":0.011,"Umbrellio\\LTree\\tests\\functional\\Providers\\LTreeServiceProviderTest::providerInit":0.004,"Umbrellio\\LTree\\tests\\functional\\Relations\\BelongsToTreelTest::missingParentsLtreeModel":0.015,"Umbrellio\\LTree\\tests\\functional\\Types\\LTreeTypeTest::getSQLDeclaration":0.006,"Umbrellio\\LTree\\tests\\functional\\Types\\LTreeTypeTest::getTypeName":0.004,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::loadMissingNodes#non_consistent_with_loading":0.015,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::loadMissingNodes#consistent":0.011,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::withoutLoadMissingForPartialTree#partial with single branch without single nodes":0.013,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::withoutLoadMissingForPartialTree#partial with single branch without more nodes":0.012,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::withoutLoadMissingForPartialTree#partial with more branches":0.011,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::withoutLeaves#without_leaves":0.026,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::withoutLoadMissingNodes#non_consistent_without_loading":0.013,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::findFail#-1":0.018,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::findFail#0":0.018,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::findFail#999":0.016,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::getLtreeLevel#root":0.01,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::getLtreeLevel#second-level":0.012,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::getLtreeLevel#third-level":0.01,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::parentsOf#single_as_array":0.012,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::parentsOf#all_as_array":0.009,"Umbrellio\\LTree\\tests\\functional\\Relations\\BelongsToTreelTest::getBelongsToParentsTree#two_levels":0.031,"Umbrellio\\LTree\\tests\\functional\\Relations\\BelongsToTreelTest::getBelongsToParentsTree#three_levels":0.026,"Umbrellio\\LTree\\tests\\functional\\Relations\\BelongsToTreelTest::getBelongsToDescendantsTree#with_descendants":0.028,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeResourceTest::resources":0.023,"Umbrellio\\LTree\\tests\\functional\\Types\\LTreeTypeTest::convertToPHPValue#0":0.006,"Umbrellio\\LTree\\tests\\functional\\Types\\LTreeTypeTest::convertToPHPValue#1":0.004,"Umbrellio\\LTree\\tests\\functional\\Types\\LTreeTypeTest::convertToPHPValue#2":0.006,"Umbrellio\\LTree\\tests\\functional\\Types\\LTreeTypeTest::convertToPHPValue#3":0.004,"Umbrellio\\LTree\\tests\\functional\\Types\\LTreeTypeTest::convertToDatabaseValue#0":0.005,"Umbrellio\\LTree\\tests\\functional\\Types\\LTreeTypeTest::convertToDatabaseValue#1":0.004,"Umbrellio\\LTree\\tests\\functional\\Types\\LTreeTypeTest::convertToDatabaseValue#2":0.005}} \ No newline at end of file diff --git a/composer.json b/composer.json index 059496b..8c25b8b 100644 --- a/composer.json +++ b/composer.json @@ -21,15 +21,15 @@ ], "license": "MIT", "require": { - "php": "^7.3|^7.4|^8.0|^8.1|^8.2", - "laravel/framework": "^5.8|^6.20.26|^7.0|^8.40|^9.0|^10.0|^11.0", - "doctrine/dbal": "^2.9|^3.0", - "umbrellio/laravel-pg-extensions": "^5.0|^6.0", - "umbrellio/laravel-common-objects": "^2.3" + "php": "^8.3|^8.4", + "laravel/framework": "^11.0", + "doctrine/dbal": "^3.0", + "umbrellio/laravel-pg-extensions": "^7.0", + "umbrellio/laravel-common-objects": "*" }, "require-dev": { "umbrellio/code-style-php": "^1.0", - "orchestra/testbench": "^3.5|^6.0|^4.0|^7.0|^8.0|^9.0", + "orchestra/testbench": "^9.0", "php-coveralls/php-coveralls": "^2.1", "squizlabs/php_codesniffer": "^3.5" }, diff --git a/phpunit.xml.bak b/phpunit.xml.bak new file mode 100644 index 0000000..58315cf --- /dev/null +++ b/phpunit.xml.bak @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + ./src + + ./src/.meta.php + + + + + + ./tests + + + diff --git a/tests.sh b/tests.sh index 7e1eb8c..17d8fe1 100755 --- a/tests.sh +++ b/tests.sh @@ -8,4 +8,5 @@ sed -e "s/\${USERNAME}/postgres/" \ phpunit.xml.dist > phpunit.xml COMPOSER_MEMORY_LIMIT=-1 composer update composer lint -php -d pcov.directory='.' vendor/bin/phpunit --coverage-html build --coverage-text +php vendor/bin/phpunit -c phpunit.xml --migrate-configuration +php -d xdebug.mode=coverage -d memory_limit=-1 vendor/bin/phpunit --coverage-html build --coverage-text diff --git a/tests/functional/Collections/LTreeCollectionTest.php b/tests/functional/Collections/LTreeCollectionTest.php index 443fd8a..f2ef403 100644 --- a/tests/functional/Collections/LTreeCollectionTest.php +++ b/tests/functional/Collections/LTreeCollectionTest.php @@ -5,6 +5,8 @@ namespace Umbrellio\LTree\tests\functional\Resources; use Generator; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\Test; use Umbrellio\LTree\Exceptions\LTreeUndefinedNodeException; use Umbrellio\LTree\Interfaces\LTreeModelInterface; use Umbrellio\LTree\tests\_data\Models\CategoryStub; @@ -12,9 +14,7 @@ class LTreeCollectionTest extends LTreeBaseTestCase { - /** - * @test - */ + #[Test] public function collectionCanBeConvertedIntoTree() { $tree = $this @@ -26,15 +26,13 @@ public function collectionCanBeConvertedIntoTree() $this->assertSame($tree, $tree->getChildren()[0]->getParent()); } - /** - * @test - * @dataProvider provideNoConstencyTree - */ - public function loadMissingNodes(array $ids, array $expected): void + #[Test] + #[DataProvider('provideNoConstencyTree')] + public function loadMissingNodes(array $items, array $expected): void { $this->assertSame( CategoryStub::query() - ->whereKey($ids) + ->whereKey($items) ->get() ->toTree() ->toCollection() @@ -47,15 +45,13 @@ public function loadMissingNodes(array $ids, array $expected): void ); } - /** - * @test - * @dataProvider providePartialConstencyTree - */ - public function withoutLoadMissingForPartialTree(array $ids, array $expected): void + #[Test] + #[DataProvider('providePartialConstencyTree')] + public function withoutLoadMissingForPartialTree(array $items, array $expected): void { $this->assertSame( CategoryStub::query() - ->whereKey($ids) + ->whereKey($items) ->get() ->toTree(true, false) ->toCollection() @@ -68,23 +64,21 @@ public function withoutLoadMissingForPartialTree(array $ids, array $expected): v ); } - public function provideTreeWithoutLeaves(): Generator + public static function provideTreeWithoutLeaves(): Generator { yield 'without_leaves' => [ - 'ids' => [10, 7, 12], + 'items' => [10, 7, 12], 'expected' => [1, 3, 6, 11], ]; } - /** - * @test - * @dataProvider provideTreeWithoutLeaves - */ - public function withoutLeaves(array $ids, array $expected): void + #[Test] + #[DataProvider('provideTreeWithoutLeaves')] + public function withoutLeaves(array $items, array $expected): void { $this->assertSame( CategoryStub::query() - ->whereKey($ids) + ->whereKey($items) ->get() ->withLeaves(false) ->toTree() @@ -98,25 +92,23 @@ public function withoutLeaves(array $ids, array $expected): void ); } - public function provideNoConstency(): Generator + public static function provideNoConstency(): Generator { yield 'non_consistent_without_loading' => [ - 'ids' => [1, 6, 8], + 'items' => [1, 6, 8], 'expected' => [1, 6, 8], 'loadMissing' => false, ]; } - /** - * @test - * @dataProvider provideNoConstency - */ - public function withoutLoadMissingNodes(array $ids, array $expected): void + #[Test] + #[DataProvider('provideNoConstency')] + public function withoutLoadMissingNodes(array $items, array $expected, bool $loadMissing): void { $this->expectException(LTreeUndefinedNodeException::class); $this->assertSame( CategoryStub::query() - ->whereKey($ids) + ->whereKey($items) ->get() ->toTree(true, false) ->toCollection() @@ -129,10 +121,10 @@ public function withoutLoadMissingNodes(array $ids, array $expected): void ); } - public function provideNoConstencyTree(): Generator + public static function provideNoConstencyTree(): Generator { yield 'non_consistent_with_loading' => [ - 'ids' => [7, 3, 12], + 'items' => [7, 3, 12], 'expected' => [1, 3, 7, 11, 12], ]; yield 'consistent' => [ @@ -140,7 +132,7 @@ public function provideNoConstencyTree(): Generator 'expected' => [1, 3, 7], ]; } - public function providePartialConstencyTree(): Generator + public static function providePartialConstencyTree(): Generator { yield 'partial with single branch without single nodes' => [ 'items' => [3, 6, 7, 8, 9, 10], diff --git a/tests/functional/Helpers/LTreeHelperTest.php b/tests/functional/Helpers/LTreeHelperTest.php index 3e74254..9a843af 100644 --- a/tests/functional/Helpers/LTreeHelperTest.php +++ b/tests/functional/Helpers/LTreeHelperTest.php @@ -4,15 +4,14 @@ namespace Umbrellio\LTree\tests\functional\Helpers; +use PHPUnit\Framework\Attributes\Test; use Umbrellio\LTree\Interfaces\LTreeModelInterface; use Umbrellio\LTree\tests\_data\Models\CategoryStub; use Umbrellio\LTree\tests\LTreeBaseTestCase; class LTreeHelperTest extends LTreeBaseTestCase { - /** - * @test - */ + #[Test] public function createViaServiceRoot(): void { $node = $this->createCategory([ @@ -25,9 +24,7 @@ public function createViaServiceRoot(): void $this->assertSame('15', $node->getLtreePath(LTreeModelInterface::AS_STRING)); } - /** - * @test - */ + #[Test] public function moveSubtrees(): void { $nodes = $this->getCategories(); @@ -44,9 +41,7 @@ public function moveSubtrees(): void $this->assertSame(11, $root->getLtreeParentId()); } - /** - * @test - */ + #[Test] public function proxyColumns(): void { $nodeMoscow = $this->findNodeByPath('1.3'); @@ -69,9 +64,7 @@ public function proxyColumns(): void $this->assertNull($nodeMoscow->name); } - /** - * @test - */ + #[Test] public function deleteRoot(): void { $root = $this->getRoot(); @@ -81,9 +74,7 @@ public function deleteRoot(): void $this->assertFalse($root::descendantsOf($root)->exists()); } - /** - * @test - */ + #[Test] public function deleteSubtree(): void { $root = $this->getRoot(); @@ -94,9 +85,7 @@ public function deleteSubtree(): void $this->assertSame(1, $root::descendantsOf($root)->count()); } - /** - * @test - */ + #[Test] public function deleteViaServiceSubtree(): void { $root = $this->getRoot(); diff --git a/tests/functional/Helpers/LTreeNodeTest.php b/tests/functional/Helpers/LTreeNodeTest.php index 13531ec..c1e1927 100644 --- a/tests/functional/Helpers/LTreeNodeTest.php +++ b/tests/functional/Helpers/LTreeNodeTest.php @@ -7,6 +7,8 @@ use Generator; use Illuminate\Database\Eloquent\Model; use InvalidArgumentException; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\Test; use Umbrellio\LTree\Collections\LTreeCollection; use Umbrellio\LTree\Exceptions\LTreeReflectionException; use Umbrellio\LTree\Exceptions\LTreeUndefinedNodeException; @@ -17,9 +19,7 @@ class LTreeNodeTest extends LTreeBaseTestCase { private $hits; - /** - * @test - */ + #[Test] public function nodeCantHaveUnknownParent() { $this->expectException(LTreeUndefinedNodeException::class); @@ -28,9 +28,7 @@ public function nodeCantHaveUnknownParent() ->toTree(); } - /** - * @test - */ + #[Test] public function nodeCantBeParentToItself() { $this->expectException(LTreeReflectionException::class); @@ -39,9 +37,7 @@ public function nodeCantBeParentToItself() ->toTree(); } - /** - * @test - */ + #[Test] public function findSuccess(): void { $tree = $this @@ -58,10 +54,8 @@ public function findSuccess(): void $this->assertNotNull($tree->findInTree(1)->findInTree(2)); } - /** - * @test - * @dataProvider provideUnknownNodes - */ + #[Test] + #[DataProvider('provideUnknownNodes')] public function findFail($node): void { $tree = $this @@ -70,7 +64,7 @@ public function findFail($node): void $this->assertNull($tree->findInTree($node)); } - public function provideUnknownNodes(): Generator + public static function provideUnknownNodes(): Generator { yield '-1' => [ 'node' => -1, @@ -83,9 +77,7 @@ public function provideUnknownNodes(): Generator ]; } - /** - * @test - */ + #[Test] public function countDescendants(): void { $tree = $this @@ -99,9 +91,7 @@ public function countDescendants(): void $this->assertSame(1, $tree->findInTree(11)->countDescendants()); } - /** - * @test - */ + #[Test] public function each() { $tree = $this @@ -120,18 +110,14 @@ public function each() $this->assertCount(0, $collection); } - /** - * @test - */ + #[Test] public function toTreeOnEmptyCollection(): void { $collection = new LTreeCollection(); $this->assertInstanceOf(LTreeNode::class, $collection->toTree()); } - /** - * @test - */ + #[Test] public function toCollection(): void { $tree = $this @@ -147,9 +133,7 @@ public function toCollection(): void } } - /** - * @test - */ + #[Test] public function toTreeArray(): void { $formatter = static function ($item) { @@ -177,9 +161,7 @@ public function toTreeArray(): void $this->assertArrayNotHasKey('id', $node); } - /** - * @test - */ + #[Test] public function nodePresenter() { $tree = $this @@ -194,9 +176,7 @@ public function nodePresenter() $this->assertNotNull($node->model->getTable()); } - /** - * @test - */ + #[Test] public function sortFail(): void { $tree = $this @@ -206,9 +186,7 @@ public function sortFail(): void $tree->sortTree(['name']); } - /** - * @test - */ + #[Test] public function sort() { $tree = $this diff --git a/tests/functional/Models/LTreeModelTest.php b/tests/functional/Models/LTreeModelTest.php index 45d3105..2dfa330 100644 --- a/tests/functional/Models/LTreeModelTest.php +++ b/tests/functional/Models/LTreeModelTest.php @@ -5,21 +5,21 @@ namespace Umbrellio\LTree\tests\functional\Models; use Generator; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\Test; use Umbrellio\LTree\tests\_data\Models\CategoryStub; use Umbrellio\LTree\tests\LTreeBaseTestCase; class LTreeModelTest extends LTreeBaseTestCase { - /** - * @test - * @dataProvider provideLevels - */ + #[Test] + #[DataProvider('provideLevels')] public function getLtreeLevel(string $path, int $level): void { $this->assertSame($level, $this ->findNodeByPath($path) ->getLtreeLevel()); } - public function provideLevels(): Generator + public static function provideLevels(): Generator { yield 'root' => [ 'path' => '1', @@ -35,30 +35,26 @@ public function provideLevels(): Generator ]; } - /** - * @test - * @dataProvider providePaths - */ + #[Test] + #[DataProvider('providePaths')] public function parentsOf(array $paths, int $expectedCount): void { $this->assertCount($expectedCount, CategoryStub::parentsOf($paths)->get()); } - public function providePaths(): Generator + public static function providePaths(): Generator { yield 'single_as_array' => [ 'paths' => ['11.12'], - 'expected' => 2, + 'expectedCount' => 2, ]; yield 'all_as_array' => [ 'paths' => ['11.12', '1.2.5'], - 'expected' => 5, + 'expectedCount' => 5, ]; } - /** - * @test - */ + #[Test] public function root(): void { $node = $this->findNodeByPath('1.2.5'); @@ -68,9 +64,7 @@ public function root(): void } } - /** - * @test - */ + #[Test] public function ancestors(): void { $root = $this->getRoot(); @@ -80,9 +74,7 @@ public function ancestors(): void $this->assertTrue($node2->isParentOf(5)); } - /** - * @test - */ + #[Test] public function getAncestorByLevel(): void { $root = $this->getRoot(); @@ -100,9 +92,7 @@ public function getAncestorByLevel(): void $this->assertSame($node8->getAncestorByLevel(3)->getKey(), $node6->getKey()); } - /** - * @test - */ + #[Test] public function children(): void { $node11 = $this->findNodeByPath('11'); diff --git a/tests/functional/Providers/LTreeServiceProviderTest.php b/tests/functional/Providers/LTreeServiceProviderTest.php index 5eb7761..1e2e613 100644 --- a/tests/functional/Providers/LTreeServiceProviderTest.php +++ b/tests/functional/Providers/LTreeServiceProviderTest.php @@ -5,16 +5,15 @@ namespace Umbrellio\LTree\tests\functional\Providers; use Illuminate\Support\Facades\App; +use PHPUnit\Framework\Attributes\Test; use Umbrellio\LTree\Interfaces\LTreeServiceInterface; use Umbrellio\LTree\Services\LTreeService; use Umbrellio\LTree\tests\FunctionalTestCase; class LTreeServiceProviderTest extends FunctionalTestCase { - /** - * @test - */ - public function testProviderInit(): void + #[Test] + public function providerInit(): void { $service = App::make(LTreeServiceInterface::class); $this->assertInstanceOf(LTreeService::class, $service); diff --git a/tests/functional/Relations/BelongsToTreelTest.php b/tests/functional/Relations/BelongsToTreelTest.php index 8c31b05..d788bcb 100644 --- a/tests/functional/Relations/BelongsToTreelTest.php +++ b/tests/functional/Relations/BelongsToTreelTest.php @@ -5,6 +5,8 @@ namespace Umbrellio\LTree\tests\functional\Relations; use Generator; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\Test; use Umbrellio\LTree\Exceptions\InvalidTraitInjectionClass; use Umbrellio\LTree\tests\_data\Models\CategorySomeStub; use Umbrellio\LTree\tests\_data\Models\ProductStub; @@ -12,42 +14,40 @@ class BelongsToTreelTest extends LTreeBaseTestCase { - public function provideBelongsParentsTree(): Generator + public static function provideBelongsParentsTree(): Generator { yield 'two_levels' => [ 'path' => '11.12', 'count' => 2, - 'expected1' => 11, - 'expected2' => 12, - 'expected3' => null, + 'level1' => 11, + 'level2' => 12, + 'level3' => null, ]; yield 'three_levels' => [ 'path' => '1.2.5', 'count' => 3, - 'expected1' => 1, - 'expected2' => 2, - 'expected3' => 5, + 'level1' => 1, + 'level2' => 2, + 'level3' => 5, ]; } - public function provideBelongsDescendantsTree(): Generator + public static function provideBelongsDescendantsTree(): Generator { yield 'with_descendants' => [ 'path' => '1.3', 'count' => 6, - 'expected1' => 3, - 'expected2' => 6, - 'expected3' => 10, - 'expected4' => 8, - 'expected5' => 9, - 'expected6' => 7, + 'level1' => 3, + 'level2' => 6, + 'level3' => 10, + 'level4' => 8, + 'level5' => 9, + 'level6' => 7, ]; } - /** - * @test - * @dataProvider provideBelongsParentsTree - */ + #[Test] + #[DataProvider('provideBelongsParentsTree')] public function getBelongsToParentsTree($path, $count, $level1, $level2, $level3) { $product = $this->createProduct([]); @@ -70,10 +70,8 @@ public function getBelongsToParentsTree($path, $count, $level1, $level2, $level3 $this->assertSame($level3, optional($itemWith->categoryAncestorsTree->get(2))->getKey()); } - /** - * @test - * @dataProvider provideBelongsDescendantsTree - */ + #[Test] + #[DataProvider('provideBelongsDescendantsTree')] public function getBelongsToDescendantsTree($path, $count, $level1, $level2, $level3, $level4, $level5, $level6) { $product = $this->createProduct([]); @@ -103,9 +101,7 @@ public function getBelongsToDescendantsTree($path, $count, $level1, $level2, $le $this->assertSame($level6, optional($itemWith->categoryDescendantsTree->get(5))->getKey()); } - /** - * @test - */ + #[Test] public function missingParentsLtreeModel(): void { $rootSome = $this->getCategorySome([ diff --git a/tests/functional/Resources/LTreeResourceTest.php b/tests/functional/Resources/LTreeResourceTest.php index 8c551a2..30ed1dc 100644 --- a/tests/functional/Resources/LTreeResourceTest.php +++ b/tests/functional/Resources/LTreeResourceTest.php @@ -5,15 +5,14 @@ namespace Umbrellio\LTree\tests\functional\Resources; use Illuminate\Http\Request; +use PHPUnit\Framework\Attributes\Test; use Umbrellio\LTree\tests\_data\Models\CategoryStub; use Umbrellio\LTree\tests\_data\Models\CategoryStubResourceCollection; use Umbrellio\LTree\tests\LTreeBaseTestCase; class LTreeResourceTest extends LTreeBaseTestCase { - /** - * @test - */ + #[Test] public function resources(): void { $resource = new CategoryStubResourceCollection( diff --git a/tests/functional/Types/LTreeTypeTest.php b/tests/functional/Types/LTreeTypeTest.php index 0d580f8..73f5860 100644 --- a/tests/functional/Types/LTreeTypeTest.php +++ b/tests/functional/Types/LTreeTypeTest.php @@ -5,68 +5,54 @@ namespace Umbrellio\LTree\tests\functional\Types; use Doctrine\DBAL\Platforms\AbstractPlatform; +use Doctrine\DBAL\Platforms\PostgreSQLPlatform; use Generator; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\Test; use Umbrellio\LTree\tests\FunctionalTestCase; use Umbrellio\LTree\Types\LTreeType; class LTreeTypeTest extends FunctionalTestCase { - /** - * @var AbstractPlatform - */ - private $abstractPlatform; - - /** - * @var LTreeType - */ - private $type; + private AbstractPlatform $abstractPlatform; + private LTreeType $type; protected function setUp(): void { parent::setUp(); - $this->type = $this - ->getMockBuilder(LTreeType::class) - ->disableOriginalConstructor() - ->getMockForAbstractClass(); - - $this->abstractPlatform = $this->getMockForAbstractClass(AbstractPlatform::class); + $this->type = new LTreeType(); + $this->abstractPlatform = new PostgreSQLPlatform(); } - /** - * @test - */ + #[Test] public function getSQLDeclaration(): void { $this->assertSame(LTreeType::TYPE_NAME, $this->type->getSQLDeclaration([], $this->abstractPlatform)); } - /** - * @dataProvider providePHPValues - * @test - */ + #[Test] + #[DataProvider('providePHPValues')] public function convertToPHPValue($value, $expected): void { $this->assertSame($expected, $this->type->convertToDatabaseValue($value, $this->abstractPlatform)); } - public function provideDatabaseValues(): Generator + public static function provideDatabaseValues(): Generator { yield [null, null]; yield ['1.2.3', [1, 2, 3]]; yield [1, [1]]; } - /** - * @dataProvider provideDatabaseValues - * @test - */ + #[Test] + #[DataProvider('provideDatabaseValues')] public function convertToDatabaseValue($value, $expected): void { $this->assertSame($expected, $this->type->convertToPHPValue($value, $this->abstractPlatform)); } - public function providePHPValues(): Generator + public static function providePHPValues(): Generator { yield [null, null]; yield [1, '1']; @@ -74,9 +60,7 @@ public function providePHPValues(): Generator yield [[1, 2, 3], '1.2.3']; } - /** - * @test - */ + #[Test] public function getTypeName(): void { $this->assertSame(LTreeType::TYPE_NAME, $this->type->getName()); From ac0b5b4c6aacad62f1f58ef186efa70bd30f82d1 Mon Sep 17 00:00:00 2001 From: Korben Date: Fri, 3 May 2024 00:06:59 +0200 Subject: [PATCH 2/5] fix linter php8.4 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e0fb105..3dcc318 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: php_versions: ['8.3'] include: - operating_system: 'ubuntu-latest' - php_versions: '8.3' + php_versions: '8.4' experimental: true fail-fast: false env: From 818196f923e790ee3ed257fa26f17cc7f3f8b261 Mon Sep 17 00:00:00 2001 From: Korben Date: Fri, 3 May 2024 00:12:03 +0200 Subject: [PATCH 3/5] remove cash --- .phpunit.cache/code-coverage/19b50397c4409d2f6315fa7aa8d2f3dc | 1 - .phpunit.cache/code-coverage/20aafa6bd2d68f7d948c6a869cf3432c | 1 - .phpunit.cache/code-coverage/29d4f92e407581cca9024adae2f53a5e | 1 - .phpunit.cache/code-coverage/34b96ac7d1d191691eb1e06e0a932d81 | 1 - .phpunit.cache/code-coverage/34e4ddd1807f6544f974b546f5dfe6de | 1 - .phpunit.cache/code-coverage/41c13aa993be93d406ccf7e02984b3f4 | 1 - .phpunit.cache/code-coverage/5281e07797756907ebb78da6d6d2e460 | 1 - .phpunit.cache/code-coverage/5308e046a70d7b9a39ce83c80da853cf | 1 - .phpunit.cache/code-coverage/56e02934c704dfd6ca1b8ddfc90d70c5 | 1 - .phpunit.cache/code-coverage/690605eda7a124b94374d1ca11e221f1 | 1 - .phpunit.cache/code-coverage/7d8887c3a4a0465ae7007ce7e715994f | 1 - .phpunit.cache/code-coverage/88c99871ce958b0384c81fe215a66080 | 1 - .phpunit.cache/code-coverage/918b415f111b6a486f6dea9c7b00cdea | 1 - .phpunit.cache/code-coverage/983e15b363d520b72dfb7e126479342c | 1 - .phpunit.cache/code-coverage/9da5744eaad0f2b88589086ddfe85299 | 1 - .phpunit.cache/code-coverage/b4903662a38235ed329f524fd51372da | 1 - .phpunit.cache/code-coverage/bbfb0ec9b5cabcc8c6a6e2f4d1752985 | 1 - .phpunit.cache/code-coverage/c743f6a5ade3177a97bf68cee7110825 | 1 - .phpunit.cache/code-coverage/c8c0f1107e8864884392c7c649ecf371 | 1 - .phpunit.cache/code-coverage/c9a76ad98ca0d696985e64066f8f0190 | 1 - .phpunit.cache/code-coverage/cba64fa0054915b7b8c0507f8b4b40bb | 1 - .phpunit.cache/code-coverage/d1fb22ac51c50e3447e98dcc3cb5660c | 1 - .phpunit.cache/code-coverage/d443530c0c33ec585ab743b6b8d43b2a | 1 - .phpunit.cache/code-coverage/d4ee10075f85cb125620751a48e562e0 | 1 - .phpunit.cache/code-coverage/e2fd5dcd81922a6f3cfed665d76c33df | 1 - .phpunit.cache/code-coverage/e79cd615872136d63ba5ac6c2ef878b1 | 1 - .phpunit.cache/code-coverage/ef13b03f586ed2a4cade7731c448bade | 1 - .phpunit.cache/code-coverage/f084af5e5be9be2f99f558470115afed | 1 - .phpunit.cache/code-coverage/fb38a89e6cf5990d2da8a93533be8011 | 1 - .phpunit.cache/test-results | 1 - 30 files changed, 30 deletions(-) delete mode 100644 .phpunit.cache/code-coverage/19b50397c4409d2f6315fa7aa8d2f3dc delete mode 100644 .phpunit.cache/code-coverage/20aafa6bd2d68f7d948c6a869cf3432c delete mode 100644 .phpunit.cache/code-coverage/29d4f92e407581cca9024adae2f53a5e delete mode 100644 .phpunit.cache/code-coverage/34b96ac7d1d191691eb1e06e0a932d81 delete mode 100644 .phpunit.cache/code-coverage/34e4ddd1807f6544f974b546f5dfe6de delete mode 100644 .phpunit.cache/code-coverage/41c13aa993be93d406ccf7e02984b3f4 delete mode 100644 .phpunit.cache/code-coverage/5281e07797756907ebb78da6d6d2e460 delete mode 100644 .phpunit.cache/code-coverage/5308e046a70d7b9a39ce83c80da853cf delete mode 100644 .phpunit.cache/code-coverage/56e02934c704dfd6ca1b8ddfc90d70c5 delete mode 100644 .phpunit.cache/code-coverage/690605eda7a124b94374d1ca11e221f1 delete mode 100644 .phpunit.cache/code-coverage/7d8887c3a4a0465ae7007ce7e715994f delete mode 100644 .phpunit.cache/code-coverage/88c99871ce958b0384c81fe215a66080 delete mode 100644 .phpunit.cache/code-coverage/918b415f111b6a486f6dea9c7b00cdea delete mode 100644 .phpunit.cache/code-coverage/983e15b363d520b72dfb7e126479342c delete mode 100644 .phpunit.cache/code-coverage/9da5744eaad0f2b88589086ddfe85299 delete mode 100644 .phpunit.cache/code-coverage/b4903662a38235ed329f524fd51372da delete mode 100644 .phpunit.cache/code-coverage/bbfb0ec9b5cabcc8c6a6e2f4d1752985 delete mode 100644 .phpunit.cache/code-coverage/c743f6a5ade3177a97bf68cee7110825 delete mode 100644 .phpunit.cache/code-coverage/c8c0f1107e8864884392c7c649ecf371 delete mode 100644 .phpunit.cache/code-coverage/c9a76ad98ca0d696985e64066f8f0190 delete mode 100644 .phpunit.cache/code-coverage/cba64fa0054915b7b8c0507f8b4b40bb delete mode 100644 .phpunit.cache/code-coverage/d1fb22ac51c50e3447e98dcc3cb5660c delete mode 100644 .phpunit.cache/code-coverage/d443530c0c33ec585ab743b6b8d43b2a delete mode 100644 .phpunit.cache/code-coverage/d4ee10075f85cb125620751a48e562e0 delete mode 100644 .phpunit.cache/code-coverage/e2fd5dcd81922a6f3cfed665d76c33df delete mode 100644 .phpunit.cache/code-coverage/e79cd615872136d63ba5ac6c2ef878b1 delete mode 100644 .phpunit.cache/code-coverage/ef13b03f586ed2a4cade7731c448bade delete mode 100644 .phpunit.cache/code-coverage/f084af5e5be9be2f99f558470115afed delete mode 100644 .phpunit.cache/code-coverage/fb38a89e6cf5990d2da8a93533be8011 delete mode 100644 .phpunit.cache/test-results diff --git a/.phpunit.cache/code-coverage/19b50397c4409d2f6315fa7aa8d2f3dc b/.phpunit.cache/code-coverage/19b50397c4409d2f6315fa7aa8d2f3dc deleted file mode 100644 index 1f4c96b..0000000 --- a/.phpunit.cache/code-coverage/19b50397c4409d2f6315fa7aa8d2f3dc +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:50:"Umbrellio\LTree\Relations\BelongsToDescendantsTree";a:6:{s:4:"name";s:24:"BelongsToDescendantsTree";s:14:"namespacedName";s:50:"Umbrellio\LTree\Relations\BelongsToDescendantsTree";s:9:"namespace";s:25:"Umbrellio\LTree\Relations";s:9:"startLine";i:12;s:7:"endLine";i:27;s:7:"methods";a:2:{s:11:"modifyQuery";a:6:{s:10:"methodName";s:11:"modifyQuery";s:9:"signature";s:100:"modifyQuery($query, Illuminate\Database\Eloquent\Model $model): Illuminate\Database\Eloquent\Builder";s:10:"visibility";s:9:"protected";s:9:"startLine";i:18;s:7:"endLine";i:21;s:3:"ccn";i:1;}s:11:"getOperator";a:6:{s:10:"methodName";s:11:"getOperator";s:9:"signature";s:21:"getOperator(): string";s:10:"visibility";s:9:"protected";s:9:"startLine";i:23;s:7:"endLine";i:26;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:28;s:18:"commentLinesOfCode";i:4;s:21:"nonCommentLinesOfCode";i:24;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:2:{i:20;i:1;i:25;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/20aafa6bd2d68f7d948c6a869cf3432c b/.phpunit.cache/code-coverage/20aafa6bd2d68f7d948c6a869cf3432c deleted file mode 100644 index c7c1560..0000000 --- a/.phpunit.cache/code-coverage/20aafa6bd2d68f7d948c6a869cf3432c +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:51:"Umbrellio\LTree\Exceptions\LTreeReflectionException";a:6:{s:4:"name";s:24:"LTreeReflectionException";s:14:"namespacedName";s:51:"Umbrellio\LTree\Exceptions\LTreeReflectionException";s:9:"namespace";s:26:"Umbrellio\LTree\Exceptions";s:9:"startLine";i:9;s:7:"endLine";i:15;s:7:"methods";a:1:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:16:"__construct($id)";s:10:"visibility";s:6:"public";s:9:"startLine";i:11;s:7:"endLine";i:14;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:16;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:16;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:1:{i:13;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/29d4f92e407581cca9024adae2f53a5e b/.phpunit.cache/code-coverage/29d4f92e407581cca9024adae2f53a5e deleted file mode 100644 index ee98ff1..0000000 --- a/.phpunit.cache/code-coverage/29d4f92e407581cca9024adae2f53a5e +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:54:"Umbrellio\LTree\Exceptions\LTreeUndefinedNodeException";a:6:{s:4:"name";s:27:"LTreeUndefinedNodeException";s:14:"namespacedName";s:54:"Umbrellio\LTree\Exceptions\LTreeUndefinedNodeException";s:9:"namespace";s:26:"Umbrellio\LTree\Exceptions";s:9:"startLine";i:9;s:7:"endLine";i:15;s:7:"methods";a:1:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:16:"__construct($id)";s:10:"visibility";s:6:"public";s:9:"startLine";i:11;s:7:"endLine";i:14;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:16;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:16;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:1:{i:13;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/34b96ac7d1d191691eb1e06e0a932d81 b/.phpunit.cache/code-coverage/34b96ac7d1d191691eb1e06e0a932d81 deleted file mode 100644 index 192d71d..0000000 --- a/.phpunit.cache/code-coverage/34b96ac7d1d191691eb1e06e0a932d81 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:39:"Umbrellio\LTree\Resources\LTreeResource";a:6:{s:4:"name";s:13:"LTreeResource";s:14:"namespacedName";s:39:"Umbrellio\LTree\Resources\LTreeResource";s:9:"namespace";s:25:"Umbrellio\LTree\Resources";s:9:"startLine";i:14;s:7:"endLine";i:27;s:7:"methods";a:2:{s:7:"toArray";a:6:{s:10:"methodName";s:7:"toArray";s:9:"signature";s:17:"toArray($request)";s:10:"visibility";s:6:"public";s:9:"startLine";i:16;s:7:"endLine";i:21;s:3:"ccn";i:1;}s:11:"toTreeArray";a:6:{s:10:"methodName";s:11:"toTreeArray";s:9:"signature";s:29:"toTreeArray($request, $model)";s:10:"visibility";s:9:"protected";s:9:"startLine";i:26;s:7:"endLine";i:26;s:3:"ccn";i:0;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:28;s:18:"commentLinesOfCode";i:6;s:21:"nonCommentLinesOfCode";i:22;}s:15:"ignoredLinesFor";a:1:{i:0;i:14;}s:17:"executableLinesIn";a:4:{i:18;i:1;i:19;i:1;i:20;i:1;i:26;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/34e4ddd1807f6544f974b546f5dfe6de b/.phpunit.cache/code-coverage/34e4ddd1807f6544f974b546f5dfe6de deleted file mode 100644 index 33388bb..0000000 --- a/.phpunit.cache/code-coverage/34e4ddd1807f6544f974b546f5dfe6de +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:50:"Umbrellio\LTree\Schema\Grammars\LTreeSchemaGrammar";a:6:{s:4:"name";s:18:"LTreeSchemaGrammar";s:14:"namespacedName";s:50:"Umbrellio\LTree\Schema\Grammars\LTreeSchemaGrammar";s:9:"namespace";s:31:"Umbrellio\LTree\Schema\Grammars";s:9:"startLine";i:10;s:7:"endLine";i:18;s:7:"methods";a:1:{s:9:"typeLtree";a:6:{s:10:"methodName";s:9:"typeLtree";s:9:"signature";s:11:"typeLtree()";s:10:"visibility";s:9:"protected";s:9:"startLine";i:12;s:7:"endLine";i:17;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:19;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:19;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:3:{i:14;i:1;i:16;i:1;i:15;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/41c13aa993be93d406ccf7e02984b3f4 b/.phpunit.cache/code-coverage/41c13aa993be93d406ccf7e02984b3f4 deleted file mode 100644 index ef690a9..0000000 --- a/.phpunit.cache/code-coverage/41c13aa993be93d406ccf7e02984b3f4 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:30:"Umbrellio\LTree\LTreeExtension";a:6:{s:4:"name";s:14:"LTreeExtension";s:14:"namespacedName";s:30:"Umbrellio\LTree\LTreeExtension";s:9:"namespace";s:15:"Umbrellio\LTree";s:9:"startLine";i:14;s:7:"endLine";i:37;s:7:"methods";a:3:{s:9:"getMixins";a:6:{s:10:"methodName";s:9:"getMixins";s:9:"signature";s:18:"getMixins(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:18;s:7:"endLine";i:24;s:3:"ccn";i:1;}s:7:"getName";a:6:{s:10:"methodName";s:7:"getName";s:9:"signature";s:17:"getName(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:26;s:7:"endLine";i:29;s:3:"ccn";i:1;}s:8:"getTypes";a:6:{s:10:"methodName";s:8:"getTypes";s:9:"signature";s:17:"getTypes(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:31;s:7:"endLine";i:36;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:38;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:38;}s:15:"ignoredLinesFor";a:1:{i:0;i:14;}s:17:"executableLinesIn";a:8:{i:20;i:2;i:21;i:2;i:22;i:2;i:23;i:2;i:28;i:3;i:33;i:4;i:34;i:4;i:35;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/5281e07797756907ebb78da6d6d2e460 b/.phpunit.cache/code-coverage/5281e07797756907ebb78da6d6d2e460 deleted file mode 100644 index 9dd3de4..0000000 --- a/.phpunit.cache/code-coverage/5281e07797756907ebb78da6d6d2e460 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:0:{}s:8:"traitsIn";a:1:{s:43:"Umbrellio\LTree\Traits\HasTreeRelationships";a:6:{s:4:"name";s:20:"HasTreeRelationships";s:14:"namespacedName";s:43:"Umbrellio\LTree\Traits\HasTreeRelationships";s:9:"namespace";s:22:"Umbrellio\LTree\Traits";s:9:"startLine";i:20;s:7:"endLine";i:73;s:7:"methods";a:3:{s:22:"belongsToAncestorsTree";a:6:{s:10:"methodName";s:22:"belongsToAncestorsTree";s:9:"signature";s:94:"belongsToAncestorsTree(string $related, string $throwRelation, ?string $foreignKey, $ownerKey)";s:10:"visibility";s:9:"protected";s:9:"startLine";i:22;s:7:"endLine";i:29;s:3:"ccn";i:1;}s:24:"belongsToDescendantsTree";a:6:{s:10:"methodName";s:24:"belongsToDescendantsTree";s:9:"signature";s:96:"belongsToDescendantsTree(string $related, string $throwRelation, ?string $foreignKey, $ownerKey)";s:10:"visibility";s:9:"protected";s:9:"startLine";i:32;s:7:"endLine";i:45;s:3:"ccn";i:1;}s:13:"belongsToTree";a:6:{s:10:"methodName";s:13:"belongsToTree";s:9:"signature";s:157:"belongsToTree(string $relationClass, string $related, string $throwRelation, ?string $foreignKey, $ownerKey): Umbrellio\LTree\Relations\AbstractBelongsToTree";s:10:"visibility";s:9:"protected";s:9:"startLine";i:47;s:7:"endLine";i:72;s:3:"ccn";i:4;}}}}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:74;s:18:"commentLinesOfCode";i:5;s:21:"nonCommentLinesOfCode";i:69;}s:15:"ignoredLinesFor";a:1:{i:0;i:20;}s:17:"executableLinesIn";a:20:{i:28;i:1;i:38;i:2;i:39;i:2;i:40;i:2;i:41;i:2;i:42;i:2;i:43;i:2;i:44;i:2;i:54;i:3;i:56;i:4;i:60;i:6;i:57;i:6;i:58;i:6;i:59;i:6;i:63;i:7;i:64;i:8;i:65;i:8;i:66;i:8;i:69;i:9;i:71;i:10;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/5308e046a70d7b9a39ce83c80da853cf b/.phpunit.cache/code-coverage/5308e046a70d7b9a39ce83c80da853cf deleted file mode 100644 index fbf421c..0000000 --- a/.phpunit.cache/code-coverage/5308e046a70d7b9a39ce83c80da853cf +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:49:"Umbrellio\LTree\Resources\LTreeResourceCollection";a:6:{s:4:"name";s:23:"LTreeResourceCollection";s:14:"namespacedName";s:49:"Umbrellio\LTree\Resources\LTreeResourceCollection";s:9:"namespace";s:25:"Umbrellio\LTree\Resources";s:9:"startLine";i:11;s:7:"endLine";i:26;s:7:"methods";a:1:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:65:"__construct($resource, $sort, bool $usingSort, bool $loadMissing)";s:10:"visibility";s:6:"public";s:9:"startLine";i:16;s:7:"endLine";i:25;s:3:"ccn";i:2;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:27;s:18:"commentLinesOfCode";i:3;s:21:"nonCommentLinesOfCode";i:24;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:4:{i:18;i:1;i:20;i:2;i:21;i:3;i:24;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/56e02934c704dfd6ca1b8ddfc90d70c5 b/.phpunit.cache/code-coverage/56e02934c704dfd6ca1b8ddfc90d70c5 deleted file mode 100644 index 246d62f..0000000 --- a/.phpunit.cache/code-coverage/56e02934c704dfd6ca1b8ddfc90d70c5 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:0:{}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:21;s:18:"commentLinesOfCode";i:3;s:21:"nonCommentLinesOfCode";i:18;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:0:{}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/690605eda7a124b94374d1ca11e221f1 b/.phpunit.cache/code-coverage/690605eda7a124b94374d1ca11e221f1 deleted file mode 100644 index 1476d73..0000000 --- a/.phpunit.cache/code-coverage/690605eda7a124b94374d1ca11e221f1 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:0:{}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:18;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:18;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:0:{}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/7d8887c3a4a0465ae7007ce7e715994f b/.phpunit.cache/code-coverage/7d8887c3a4a0465ae7007ce7e715994f deleted file mode 100644 index 30564a3..0000000 --- a/.phpunit.cache/code-coverage/7d8887c3a4a0465ae7007ce7e715994f +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:37:"Umbrellio\LTree\Schema\LTreeBlueprint";a:6:{s:4:"name";s:14:"LTreeBlueprint";s:14:"namespacedName";s:37:"Umbrellio\LTree\Schema\LTreeBlueprint";s:9:"namespace";s:22:"Umbrellio\LTree\Schema";s:9:"startLine";i:11;s:7:"endLine";i:19;s:7:"methods";a:1:{s:5:"ltree";a:6:{s:10:"methodName";s:5:"ltree";s:9:"signature";s:7:"ltree()";s:10:"visibility";s:6:"public";s:9:"startLine";i:13;s:7:"endLine";i:18;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:20;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:20;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:3:{i:15;i:1;i:17;i:1;i:16;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/88c99871ce958b0384c81fe215a66080 b/.phpunit.cache/code-coverage/88c99871ce958b0384c81fe215a66080 deleted file mode 100644 index 4ddefca..0000000 --- a/.phpunit.cache/code-coverage/88c99871ce958b0384c81fe215a66080 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:0:{}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:17;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:17;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:0:{}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/918b415f111b6a486f6dea9c7b00cdea b/.phpunit.cache/code-coverage/918b415f111b6a486f6dea9c7b00cdea deleted file mode 100644 index 052e3d0..0000000 --- a/.phpunit.cache/code-coverage/918b415f111b6a486f6dea9c7b00cdea +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:0:{}s:8:"traitsIn";a:1:{s:38:"Umbrellio\LTree\Traits\LTreeModelTrait";a:6:{s:4:"name";s:15:"LTreeModelTrait";s:14:"namespacedName";s:38:"Umbrellio\LTree\Traits\LTreeModelTrait";s:9:"namespace";s:22:"Umbrellio\LTree\Traits";s:9:"startLine";i:21;s:7:"endLine";i:105;s:7:"methods";a:13:{s:13:"newCollection";a:6:{s:10:"methodName";s:13:"newCollection";s:9:"signature";s:73:"newCollection(array $models): Umbrellio\LTree\Collections\LTreeCollection";s:10:"visibility";s:6:"public";s:9:"startLine";i:25;s:7:"endLine";i:28;s:3:"ccn";i:1;}s:11:"ltreeParent";a:6:{s:10:"methodName";s:11:"ltreeParent";s:9:"signature";s:63:"ltreeParent(): Illuminate\Database\Eloquent\Relations\BelongsTo";s:10:"visibility";s:6:"public";s:9:"startLine";i:30;s:7:"endLine";i:33;s:3:"ccn";i:1;}s:13:"ltreeChildren";a:6:{s:10:"methodName";s:13:"ltreeChildren";s:9:"signature";s:63:"ltreeChildren(): Illuminate\Database\Eloquent\Relations\HasMany";s:10:"visibility";s:6:"public";s:9:"startLine";i:35;s:7:"endLine";i:38;s:3:"ccn";i:1;}s:10:"isParentOf";a:6:{s:10:"methodName";s:10:"isParentOf";s:9:"signature";s:25:"isParentOf(int $id): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:40;s:7:"endLine";i:43;s:3:"ccn";i:1;}s:14:"scopeParentsOf";a:6:{s:10:"methodName";s:14:"scopeParentsOf";s:9:"signature";s:111:"scopeParentsOf(Illuminate\Database\Eloquent\Builder $query, array $paths): Illuminate\Database\Eloquent\Builder";s:10:"visibility";s:6:"public";s:9:"startLine";i:45;s:7:"endLine";i:52;s:3:"ccn";i:1;}s:9:"scopeRoot";a:6:{s:10:"methodName";s:9:"scopeRoot";s:9:"signature";s:92:"scopeRoot(Illuminate\Database\Eloquent\Builder $query): Illuminate\Database\Eloquent\Builder";s:10:"visibility";s:6:"public";s:9:"startLine";i:54;s:7:"endLine";i:57;s:3:"ccn";i:1;}s:18:"scopeDescendantsOf";a:6:{s:10:"methodName";s:18:"scopeDescendantsOf";s:9:"signature";s:171:"scopeDescendantsOf(Illuminate\Database\Eloquent\Builder $query, Umbrellio\LTree\Interfaces\LTreeModelInterface $model, bool $reverse): Illuminate\Database\Eloquent\Builder";s:10:"visibility";s:6:"public";s:9:"startLine";i:59;s:7:"endLine";i:66;s:3:"ccn";i:2;}s:16:"scopeAncestorsOf";a:6:{s:10:"methodName";s:16:"scopeAncestorsOf";s:9:"signature";s:169:"scopeAncestorsOf(Illuminate\Database\Eloquent\Builder $query, Umbrellio\LTree\Interfaces\LTreeModelInterface $model, bool $reverse): Illuminate\Database\Eloquent\Builder";s:10:"visibility";s:6:"public";s:9:"startLine";i:68;s:7:"endLine";i:75;s:3:"ccn";i:2;}s:16:"scopeWithoutSelf";a:6:{s:10:"methodName";s:16:"scopeWithoutSelf";s:9:"signature";s:108:"scopeWithoutSelf(Illuminate\Database\Eloquent\Builder $query, int $id): Illuminate\Database\Eloquent\Builder";s:10:"visibility";s:6:"public";s:9:"startLine";i:77;s:7:"endLine";i:80;s:3:"ccn";i:1;}s:26:"getLtreeProxyUpdateColumns";a:6:{s:10:"methodName";s:26:"getLtreeProxyUpdateColumns";s:9:"signature";s:35:"getLtreeProxyUpdateColumns(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:82;s:7:"endLine";i:85;s:3:"ccn";i:1;}s:26:"getLtreeProxyDeleteColumns";a:6:{s:10:"methodName";s:26:"getLtreeProxyDeleteColumns";s:9:"signature";s:35:"getLtreeProxyDeleteColumns(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:87;s:7:"endLine";i:90;s:3:"ccn";i:1;}s:18:"getAncestorByLevel";a:6:{s:10:"methodName";s:18:"getAncestorByLevel";s:9:"signature";s:30:"getAncestorByLevel(int $level)";s:10:"visibility";s:6:"public";s:9:"startLine";i:92;s:7:"endLine";i:95;s:3:"ccn";i:1;}s:20:"scopeAncestorByLevel";a:6:{s:10:"methodName";s:20:"scopeAncestorByLevel";s:9:"signature";s:130:"scopeAncestorByLevel(Illuminate\Database\Eloquent\Builder $query, int $level, ?string $path): Illuminate\Database\Eloquent\Builder";s:10:"visibility";s:6:"public";s:9:"startLine";i:97;s:7:"endLine";i:104;s:3:"ccn";i:2;}}}}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:106;s:18:"commentLinesOfCode";i:6;s:21:"nonCommentLinesOfCode";i:100;}s:15:"ignoredLinesFor";a:1:{i:0;i:21;}s:17:"executableLinesIn";a:29:{i:27;i:3;i:32;i:4;i:37;i:5;i:42;i:6;i:47;i:7;i:48;i:7;i:49;i:7;i:50;i:7;i:51;i:7;i:56;i:8;i:61;i:9;i:62;i:9;i:63;i:9;i:64;i:9;i:65;i:9;i:70;i:10;i:71;i:10;i:72;i:10;i:73;i:10;i:74;i:10;i:79;i:11;i:84;i:12;i:89;i:13;i:94;i:14;i:99;i:15;i:100;i:15;i:101;i:15;i:102;i:15;i:103;i:15;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/983e15b363d520b72dfb7e126479342c b/.phpunit.cache/code-coverage/983e15b363d520b72dfb7e126479342c deleted file mode 100644 index 571f735..0000000 --- a/.phpunit.cache/code-coverage/983e15b363d520b72dfb7e126479342c +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:31:"Umbrellio\LTree\Types\LTreeType";a:6:{s:4:"name";s:9:"LTreeType";s:14:"namespacedName";s:31:"Umbrellio\LTree\Types\LTreeType";s:9:"namespace";s:21:"Umbrellio\LTree\Types";s:9:"startLine";i:10;s:7:"endLine";i:50;s:7:"methods";a:4:{s:17:"getSQLDeclaration";a:6:{s:10:"methodName";s:17:"getSQLDeclaration";s:9:"signature";s:102:"getSQLDeclaration(array $fieldDeclaration, Doctrine\DBAL\Platforms\AbstractPlatform $platform): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:15;s:7:"endLine";i:18;s:3:"ccn";i:1;}s:17:"convertToPHPValue";a:6:{s:10:"methodName";s:17:"convertToPHPValue";s:9:"signature";s:85:"convertToPHPValue($value, Doctrine\DBAL\Platforms\AbstractPlatform $platform): ?array";s:10:"visibility";s:6:"public";s:9:"startLine";i:20;s:7:"endLine";i:31;s:3:"ccn";i:2;}s:22:"convertToDatabaseValue";a:6:{s:10:"methodName";s:22:"convertToDatabaseValue";s:9:"signature";s:91:"convertToDatabaseValue($value, Doctrine\DBAL\Platforms\AbstractPlatform $platform): ?string";s:10:"visibility";s:6:"public";s:9:"startLine";i:33;s:7:"endLine";i:44;s:3:"ccn";i:3;}s:7:"getName";a:6:{s:10:"methodName";s:7:"getName";s:9:"signature";s:17:"getName(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:46;s:7:"endLine";i:49;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:51;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:51;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:14:{i:17;i:3;i:22;i:4;i:23;i:5;i:26;i:6;i:27;i:6;i:29;i:6;i:30;i:6;i:28;i:7;i:35;i:8;i:36;i:9;i:39;i:10;i:40;i:11;i:43;i:12;i:48;i:13;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/9da5744eaad0f2b88589086ddfe85299 b/.phpunit.cache/code-coverage/9da5744eaad0f2b88589086ddfe85299 deleted file mode 100644 index e38c04d..0000000 --- a/.phpunit.cache/code-coverage/9da5744eaad0f2b88589086ddfe85299 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:0:{}s:8:"traitsIn";a:1:{s:33:"Umbrellio\LTree\Traits\LTreeTrait";a:6:{s:4:"name";s:10:"LTreeTrait";s:14:"namespacedName";s:33:"Umbrellio\LTree\Traits\LTreeTrait";s:9:"namespace";s:22:"Umbrellio\LTree\Traits";s:9:"startLine";i:15;s:7:"endLine";i:46;s:7:"methods";a:5:{s:20:"getLtreeParentColumn";a:6:{s:10:"methodName";s:20:"getLtreeParentColumn";s:9:"signature";s:30:"getLtreeParentColumn(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:17;s:7:"endLine";i:20;s:3:"ccn";i:1;}s:18:"getLtreePathColumn";a:6:{s:10:"methodName";s:18:"getLtreePathColumn";s:9:"signature";s:28:"getLtreePathColumn(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:22;s:7:"endLine";i:25;s:3:"ccn";i:1;}s:16:"getLtreeParentId";a:6:{s:10:"methodName";s:16:"getLtreeParentId";s:9:"signature";s:24:"getLtreeParentId(): ?int";s:10:"visibility";s:6:"public";s:9:"startLine";i:27;s:7:"endLine";i:31;s:3:"ccn";i:2;}s:12:"getLtreePath";a:6:{s:10:"methodName";s:12:"getLtreePath";s:9:"signature";s:19:"getLtreePath($mode)";s:10:"visibility";s:6:"public";s:9:"startLine";i:33;s:7:"endLine";i:40;s:3:"ccn";i:3;}s:13:"getLtreeLevel";a:6:{s:10:"methodName";s:13:"getLtreeLevel";s:9:"signature";s:20:"getLtreeLevel(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:42;s:7:"endLine";i:45;s:3:"ccn";i:2;}}}}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:47;s:18:"commentLinesOfCode";i:3;s:21:"nonCommentLinesOfCode";i:44;}s:15:"ignoredLinesFor";a:1:{i:0;i:15;}s:17:"executableLinesIn";a:9:{i:19;i:1;i:24;i:2;i:29;i:3;i:30;i:4;i:35;i:6;i:36;i:7;i:37;i:8;i:39;i:9;i:44;i:10;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/b4903662a38235ed329f524fd51372da b/.phpunit.cache/code-coverage/b4903662a38235ed329f524fd51372da deleted file mode 100644 index 3110111..0000000 --- a/.phpunit.cache/code-coverage/b4903662a38235ed329f524fd51372da +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:48:"Umbrellio\LTree\Relations\BelongsToAncestorsTree";a:6:{s:4:"name";s:22:"BelongsToAncestorsTree";s:14:"namespacedName";s:48:"Umbrellio\LTree\Relations\BelongsToAncestorsTree";s:9:"namespace";s:25:"Umbrellio\LTree\Relations";s:9:"startLine";i:12;s:7:"endLine";i:27;s:7:"methods";a:2:{s:11:"modifyQuery";a:6:{s:10:"methodName";s:11:"modifyQuery";s:9:"signature";s:100:"modifyQuery($query, Illuminate\Database\Eloquent\Model $model): Illuminate\Database\Eloquent\Builder";s:10:"visibility";s:9:"protected";s:9:"startLine";i:18;s:7:"endLine";i:21;s:3:"ccn";i:1;}s:11:"getOperator";a:6:{s:10:"methodName";s:11:"getOperator";s:9:"signature";s:21:"getOperator(): string";s:10:"visibility";s:9:"protected";s:9:"startLine";i:23;s:7:"endLine";i:26;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:28;s:18:"commentLinesOfCode";i:4;s:21:"nonCommentLinesOfCode";i:24;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:2:{i:20;i:1;i:25;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/bbfb0ec9b5cabcc8c6a6e2f4d1752985 b/.phpunit.cache/code-coverage/bbfb0ec9b5cabcc8c6a6e2f4d1752985 deleted file mode 100644 index 53969a2..0000000 --- a/.phpunit.cache/code-coverage/bbfb0ec9b5cabcc8c6a6e2f4d1752985 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:48:"Umbrellio\LTree\Providers\LTreeExtensionProvider";a:6:{s:4:"name";s:22:"LTreeExtensionProvider";s:14:"namespacedName";s:48:"Umbrellio\LTree\Providers\LTreeExtensionProvider";s:9:"namespace";s:25:"Umbrellio\LTree\Providers";s:9:"startLine";i:11;s:7:"endLine";i:17;s:7:"methods";a:1:{s:8:"register";a:6:{s:10:"methodName";s:8:"register";s:9:"signature";s:16:"register(): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:13;s:7:"endLine";i:16;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:18;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:18;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:1:{i:15;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/c743f6a5ade3177a97bf68cee7110825 b/.phpunit.cache/code-coverage/c743f6a5ade3177a97bf68cee7110825 deleted file mode 100644 index 59560a7..0000000 --- a/.phpunit.cache/code-coverage/c743f6a5ade3177a97bf68cee7110825 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:35:"Umbrellio\LTree\Helpers\LTreeHelper";a:6:{s:4:"name";s:11:"LTreeHelper";s:14:"namespacedName";s:35:"Umbrellio\LTree\Helpers\LTreeHelper";s:9:"namespace";s:23:"Umbrellio\LTree\Helpers";s:9:"startLine";i:13;s:7:"endLine";i:94;s:7:"methods";a:4:{s:9:"buildPath";a:6:{s:10:"methodName";s:9:"buildPath";s:9:"signature";s:23:"buildPath($model): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:18;s:7:"endLine";i:35;s:3:"ccn";i:2;}s:8:"moveNode";a:6:{s:10:"methodName";s:8:"moveNode";s:9:"signature";s:43:"moveNode($model, $to, array $columns): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:41;s:7:"endLine";i:59;s:3:"ccn";i:2;}s:15:"dropDescendants";a:6:{s:10:"methodName";s:15:"dropDescendants";s:9:"signature";s:45:"dropDescendants($model, array $columns): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:64;s:7:"endLine";i:75;s:3:"ccn";i:1;}s:15:"wrapExpressions";a:6:{s:10:"methodName";s:15:"wrapExpressions";s:9:"signature";s:38:"wrapExpressions(array $columns): array";s:10:"visibility";s:7:"private";s:9:"startLine";i:77;s:7:"endLine";i:93;s:3:"ccn";i:5;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:95;s:18:"commentLinesOfCode";i:10;s:21:"nonCommentLinesOfCode";i:85;}s:15:"ignoredLinesFor";a:1:{i:0;i:13;}s:17:"executableLinesIn";a:48:{i:20;i:1;i:21;i:2;i:22;i:3;i:23;i:4;i:25;i:5;i:26;i:6;i:27;i:6;i:28;i:6;i:29;i:6;i:30;i:6;i:31;i:6;i:32;i:6;i:33;i:6;i:34;i:7;i:43;i:9;i:44;i:10;i:45;i:11;i:46;i:12;i:47;i:13;i:48;i:13;i:49;i:13;i:51;i:14;i:52;i:14;i:53;i:14;i:54;i:14;i:55;i:14;i:56;i:14;i:57;i:14;i:58;i:15;i:66;i:17;i:67;i:17;i:68;i:17;i:69;i:17;i:70;i:17;i:71;i:17;i:72;i:17;i:73;i:18;i:74;i:19;i:79;i:20;i:80;i:21;i:82;i:22;i:83;i:23;i:84;i:24;i:85;i:25;i:86;i:26;i:87;i:27;i:89;i:28;i:92;i:29;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/c8c0f1107e8864884392c7c649ecf371 b/.phpunit.cache/code-coverage/c8c0f1107e8864884392c7c649ecf371 deleted file mode 100644 index bca13fe..0000000 --- a/.phpunit.cache/code-coverage/c8c0f1107e8864884392c7c649ecf371 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:43:"Umbrellio\LTree\Collections\LTreeCollection";a:6:{s:4:"name";s:15:"LTreeCollection";s:14:"namespacedName";s:43:"Umbrellio\LTree\Collections\LTreeCollection";s:9:"namespace";s:27:"Umbrellio\LTree\Collections";s:9:"startLine";i:20;s:7:"endLine";i:111;s:7:"methods";a:6:{s:6:"toTree";a:6:{s:10:"methodName";s:6:"toTree";s:9:"signature";s:77:"toTree(bool $usingSort, bool $loadMissing): Umbrellio\LTree\Helpers\LTreeNode";s:10:"visibility";s:6:"public";s:9:"startLine";i:24;s:7:"endLine";i:45;s:3:"ccn";i:4;}s:10:"withLeaves";a:6:{s:10:"methodName";s:10:"withLeaves";s:9:"signature";s:29:"withLeaves(bool $state): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:47;s:7:"endLine";i:52;s:3:"ccn";i:1;}s:16:"loadMissingNodes";a:6:{s:10:"methodName";s:16:"loadMissingNodes";s:9:"signature";s:30:"loadMissingNodes($model): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:54;s:7:"endLine";i:61;s:3:"ccn";i:2;}s:13:"excludeLeaves";a:6:{s:10:"methodName";s:13:"excludeLeaves";s:9:"signature";s:21:"excludeLeaves(): void";s:10:"visibility";s:7:"private";s:9:"startLine";i:63;s:7:"endLine";i:71;s:3:"ccn";i:3;}s:15:"hasMissingNodes";a:6:{s:10:"methodName";s:15:"hasMissingNodes";s:9:"signature";s:29:"hasMissingNodes($model): bool";s:10:"visibility";s:7:"private";s:9:"startLine";i:76;s:7:"endLine";i:88;s:3:"ccn";i:2;}s:15:"appendAncestors";a:6:{s:10:"methodName";s:15:"appendAncestors";s:9:"signature";s:29:"appendAncestors($model): void";s:10:"visibility";s:7:"private";s:9:"startLine";i:93;s:7:"endLine";i:110;s:3:"ccn";i:2;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:112;s:18:"commentLinesOfCode";i:12;s:21:"nonCommentLinesOfCode";i:100;}s:15:"ignoredLinesFor";a:1:{i:0;i:20;}s:17:"executableLinesIn";a:38:{i:26;i:2;i:27;i:3;i:30;i:4;i:31;i:5;i:34;i:6;i:35;i:7;i:38;i:8;i:39;i:8;i:40;i:8;i:41;i:8;i:42;i:8;i:44;i:9;i:49;i:10;i:51;i:11;i:56;i:12;i:57;i:13;i:60;i:14;i:65;i:15;i:67;i:16;i:68;i:17;i:78;i:18;i:80;i:19;i:81;i:20;i:84;i:21;i:85;i:21;i:86;i:21;i:87;i:21;i:95;i:22;i:96;i:22;i:97;i:22;i:98;i:23;i:99;i:23;i:100;i:23;i:103;i:24;i:104;i:24;i:105;i:24;i:107;i:25;i:108;i:26;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/c9a76ad98ca0d696985e64066f8f0190 b/.phpunit.cache/code-coverage/c9a76ad98ca0d696985e64066f8f0190 deleted file mode 100644 index 65acf2d..0000000 --- a/.phpunit.cache/code-coverage/c9a76ad98ca0d696985e64066f8f0190 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:47:"Umbrellio\LTree\Relations\AbstractBelongsToTree";a:6:{s:4:"name";s:21:"AbstractBelongsToTree";s:14:"namespacedName";s:47:"Umbrellio\LTree\Relations\AbstractBelongsToTree";s:9:"namespace";s:25:"Umbrellio\LTree\Relations";s:9:"startLine";i:15;s:7:"endLine";i:158;s:7:"methods";a:11:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:166:"__construct(Illuminate\Database\Eloquent\Builder $query, Illuminate\Database\Eloquent\Model $child, string $throughRelationName, string $foreignKey, string $ownerKey)";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:33;s:3:"ccn";i:1;}s:14:"addConstraints";a:6:{s:10:"methodName";s:14:"addConstraints";s:9:"signature";s:22:"addConstraints(): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:35;s:7:"endLine";i:47;s:3:"ccn";i:3;}s:19:"addEagerConstraints";a:6:{s:10:"methodName";s:19:"addEagerConstraints";s:9:"signature";s:40:"addEagerConstraints(array $models): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:49;s:7:"endLine";i:80;s:3:"ccn";i:1;}s:5:"match";a:6:{s:10:"methodName";s:5:"match";s:9:"signature";s:81:"match(array $models, Illuminate\Database\Eloquent\Collection $results, $relation)";s:10:"visibility";s:6:"public";s:9:"startLine";i:82;s:7:"endLine";i:99;s:3:"ccn";i:5;}s:10:"getResults";a:6:{s:10:"methodName";s:10:"getResults";s:9:"signature";s:12:"getResults()";s:10:"visibility";s:6:"public";s:9:"startLine";i:101;s:7:"endLine";i:106;s:3:"ccn";i:2;}s:12:"initRelation";a:6:{s:10:"methodName";s:12:"initRelation";s:9:"signature";s:38:"initRelation(array $models, $relation)";s:10:"visibility";s:6:"public";s:9:"startLine";i:115;s:7:"endLine";i:122;s:3:"ccn";i:2;}s:11:"modifyQuery";a:6:{s:10:"methodName";s:11:"modifyQuery";s:9:"signature";s:100:"modifyQuery($query, Illuminate\Database\Eloquent\Model $model): Illuminate\Database\Eloquent\Builder";s:10:"visibility";s:9:"protected";s:9:"startLine";i:127;s:7:"endLine";i:127;s:3:"ccn";i:0;}s:11:"getOperator";a:6:{s:10:"methodName";s:11:"getOperator";s:9:"signature";s:21:"getOperator(): string";s:10:"visibility";s:9:"protected";s:9:"startLine";i:129;s:7:"endLine";i:129;s:3:"ccn";i:0;}s:17:"getEagerModelKeys";a:6:{s:10:"methodName";s:17:"getEagerModelKeys";s:9:"signature";s:32:"getEagerModelKeys(array $models)";s:10:"visibility";s:9:"protected";s:9:"startLine";i:131;s:7:"endLine";i:144;s:3:"ccn";i:3;}s:15:"getLTreeRelated";a:6:{s:10:"methodName";s:15:"getLTreeRelated";s:9:"signature";s:65:"getLTreeRelated(): Umbrellio\LTree\Interfaces\LTreeModelInterface";s:10:"visibility";s:7:"private";s:9:"startLine";i:146;s:7:"endLine";i:152;s:3:"ccn";i:1;}s:12:"getParentKey";a:6:{s:10:"methodName";s:12:"getParentKey";s:9:"signature";s:14:"getParentKey()";s:10:"visibility";s:7:"private";s:9:"startLine";i:154;s:7:"endLine";i:157;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:159;s:18:"commentLinesOfCode";i:10;s:21:"nonCommentLinesOfCode";i:149;}s:15:"ignoredLinesFor";a:1:{i:0;i:15;}s:17:"executableLinesIn";a:59:{i:28;i:4;i:29;i:5;i:30;i:6;i:32;i:7;i:37;i:8;i:39;i:9;i:41;i:10;i:42;i:11;i:43;i:11;i:44;i:11;i:51;i:12;i:53;i:13;i:55;i:14;i:57;i:15;i:58;i:15;i:59;i:15;i:60;i:16;i:62;i:17;i:64;i:18;i:65;i:18;i:66;i:18;i:74;i:18;i:75;i:18;i:67;i:19;i:68;i:19;i:69;i:19;i:70;i:19;i:71;i:19;i:72;i:19;i:73;i:19;i:77;i:20;i:79;i:21;i:84;i:22;i:86;i:23;i:87;i:24;i:90;i:25;i:91;i:26;i:92;i:27;i:93;i:28;i:98;i:29;i:103;i:30;i:104;i:31;i:105;i:32;i:117;i:33;i:118;i:34;i:121;i:35;i:127;i:36;i:129;i:37;i:133;i:38;i:135;i:39;i:136;i:40;i:137;i:41;i:141;i:42;i:143;i:43;i:148;i:44;i:149;i:44;i:150;i:44;i:151;i:44;i:156;i:45;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/cba64fa0054915b7b8c0507f8b4b40bb b/.phpunit.cache/code-coverage/cba64fa0054915b7b8c0507f8b4b40bb deleted file mode 100644 index a70beb2..0000000 --- a/.phpunit.cache/code-coverage/cba64fa0054915b7b8c0507f8b4b40bb +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:46:"Umbrellio\LTree\Providers\LTreeServiceProvider";a:6:{s:4:"name";s:20:"LTreeServiceProvider";s:14:"namespacedName";s:46:"Umbrellio\LTree\Providers\LTreeServiceProvider";s:9:"namespace";s:25:"Umbrellio\LTree\Providers";s:9:"startLine";i:11;s:7:"endLine";i:17;s:7:"methods";a:1:{s:8:"register";a:6:{s:10:"methodName";s:8:"register";s:9:"signature";s:10:"register()";s:10:"visibility";s:6:"public";s:9:"startLine";i:13;s:7:"endLine";i:16;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:18;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:18;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:1:{i:15;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/d1fb22ac51c50e3447e98dcc3cb5660c b/.phpunit.cache/code-coverage/d1fb22ac51c50e3447e98dcc3cb5660c deleted file mode 100644 index 198bf06..0000000 --- a/.phpunit.cache/code-coverage/d1fb22ac51c50e3447e98dcc3cb5660c +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:52:"Umbrellio\LTree\Exceptions\InconsistentTreeException";a:6:{s:4:"name";s:25:"InconsistentTreeException";s:14:"namespacedName";s:52:"Umbrellio\LTree\Exceptions\InconsistentTreeException";s:9:"namespace";s:26:"Umbrellio\LTree\Exceptions";s:9:"startLine";i:9;s:7:"endLine";i:11;s:7:"methods";a:0:{}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:12;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:12;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:0:{}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/d443530c0c33ec585ab743b6b8d43b2a b/.phpunit.cache/code-coverage/d443530c0c33ec585ab743b6b8d43b2a deleted file mode 100644 index 39c1c39..0000000 --- a/.phpunit.cache/code-coverage/d443530c0c33ec585ab743b6b8d43b2a +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:0:{}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:15;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:15;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:0:{}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/d4ee10075f85cb125620751a48e562e0 b/.phpunit.cache/code-coverage/d4ee10075f85cb125620751a48e562e0 deleted file mode 100644 index 4f71342..0000000 --- a/.phpunit.cache/code-coverage/d4ee10075f85cb125620751a48e562e0 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:36:"Umbrellio\LTree\Helpers\LTreeBuilder";a:6:{s:4:"name";s:12:"LTreeBuilder";s:14:"namespacedName";s:36:"Umbrellio\LTree\Helpers\LTreeBuilder";s:9:"namespace";s:23:"Umbrellio\LTree\Helpers";s:9:"startLine";i:11;s:7:"endLine";i:86;s:7:"methods";a:5:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:70:"__construct(string $pathField, string $idField, string $parentIdField)";s:10:"visibility";s:6:"public";s:9:"startLine";i:19;s:7:"endLine";i:24;s:3:"ccn";i:1;}s:5:"build";a:6:{s:10:"methodName";s:5:"build";s:9:"signature";s:109:"build(Umbrellio\LTree\Collections\LTreeCollection $items, bool $usingSort): Umbrellio\LTree\Helpers\LTreeNode";s:10:"visibility";s:6:"public";s:9:"startLine";i:26;s:7:"endLine";i:47;s:3:"ccn";i:4;}s:10:"getNodeIds";a:6:{s:10:"methodName";s:10:"getNodeIds";s:9:"signature";s:24:"getNodeIds($item): array";s:10:"visibility";s:7:"private";s:9:"startLine";i:49;s:7:"endLine";i:59;s:3:"ccn";i:2;}s:7:"getNode";a:6:{s:10:"methodName";s:7:"getNode";s:9:"signature";s:81:"getNode(int $id, string $path, ?int $parentId): Umbrellio\LTree\Helpers\LTreeNode";s:10:"visibility";s:7:"private";s:9:"startLine";i:61;s:7:"endLine";i:70;s:3:"ccn";i:4;}s:17:"hasNoMissingNodes";a:6:{s:10:"methodName";s:17:"hasNoMissingNodes";s:9:"signature";s:46:"hasNoMissingNodes(int $id, string $path): bool";s:10:"visibility";s:7:"private";s:9:"startLine";i:72;s:7:"endLine";i:85;s:3:"ccn";i:4;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:87;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:87;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:34:{i:21;i:6;i:22;i:7;i:23;i:8;i:28;i:9;i:29;i:10;i:32;i:11;i:34;i:12;i:35;i:13;i:36;i:14;i:37;i:15;i:40;i:16;i:41;i:17;i:42;i:18;i:43;i:19;i:44;i:20;i:46;i:21;i:51;i:22;i:52;i:23;i:53;i:24;i:55;i:25;i:56;i:26;i:58;i:27;i:63;i:28;i:64;i:29;i:66;i:30;i:67;i:31;i:69;i:32;i:74;i:33;i:75;i:34;i:77;i:35;i:78;i:36;i:79;i:37;i:80;i:38;i:84;i:39;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/e2fd5dcd81922a6f3cfed665d76c33df b/.phpunit.cache/code-coverage/e2fd5dcd81922a6f3cfed665d76c33df deleted file mode 100644 index fbd0102..0000000 --- a/.phpunit.cache/code-coverage/e2fd5dcd81922a6f3cfed665d76c33df +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:0:{}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:15;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:15;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:0:{}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/e79cd615872136d63ba5ac6c2ef878b1 b/.phpunit.cache/code-coverage/e79cd615872136d63ba5ac6c2ef878b1 deleted file mode 100644 index adf26db..0000000 --- a/.phpunit.cache/code-coverage/e79cd615872136d63ba5ac6c2ef878b1 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:53:"Umbrellio\LTree\Exceptions\InvalidTraitInjectionClass";a:6:{s:4:"name";s:26:"InvalidTraitInjectionClass";s:14:"namespacedName";s:53:"Umbrellio\LTree\Exceptions\InvalidTraitInjectionClass";s:9:"namespace";s:26:"Umbrellio\LTree\Exceptions";s:9:"startLine";i:9;s:7:"endLine";i:11;s:7:"methods";a:0:{}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:12;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:12;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:0:{}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/ef13b03f586ed2a4cade7731c448bade b/.phpunit.cache/code-coverage/ef13b03f586ed2a4cade7731c448bade deleted file mode 100644 index a01e762..0000000 --- a/.phpunit.cache/code-coverage/ef13b03f586ed2a4cade7731c448bade +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:37:"Umbrellio\LTree\Services\LTreeService";a:6:{s:4:"name";s:12:"LTreeService";s:14:"namespacedName";s:37:"Umbrellio\LTree\Services\LTreeService";s:9:"namespace";s:24:"Umbrellio\LTree\Services";s:9:"startLine";i:12;s:7:"endLine";i:46;s:7:"methods";a:4:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:56:"__construct(Umbrellio\LTree\Helpers\LTreeHelper $helper)";s:10:"visibility";s:6:"public";s:9:"startLine";i:16;s:7:"endLine";i:19;s:3:"ccn";i:1;}s:10:"createPath";a:6:{s:10:"methodName";s:10:"createPath";s:9:"signature";s:71:"createPath(Umbrellio\LTree\Interfaces\LTreeModelInterface $model): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:24;s:3:"ccn";i:1;}s:10:"updatePath";a:6:{s:10:"methodName";s:10:"updatePath";s:9:"signature";s:71:"updatePath(Umbrellio\LTree\Interfaces\LTreeModelInterface $model): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:29;s:7:"endLine";i:35;s:3:"ccn";i:1;}s:15:"dropDescendants";a:6:{s:10:"methodName";s:15:"dropDescendants";s:9:"signature";s:76:"dropDescendants(Umbrellio\LTree\Interfaces\LTreeModelInterface $model): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:40;s:7:"endLine";i:45;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:47;s:18:"commentLinesOfCode";i:6;s:21:"nonCommentLinesOfCode";i:41;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:7:{i:18;i:2;i:23;i:3;i:31;i:4;i:33;i:5;i:34;i:6;i:42;i:7;i:44;i:8;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/f084af5e5be9be2f99f558470115afed b/.phpunit.cache/code-coverage/f084af5e5be9be2f99f558470115afed deleted file mode 100644 index d4841fc..0000000 --- a/.phpunit.cache/code-coverage/f084af5e5be9be2f99f558470115afed +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:0:{}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:12;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:12;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:0:{}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/fb38a89e6cf5990d2da8a93533be8011 b/.phpunit.cache/code-coverage/fb38a89e6cf5990d2da8a93533be8011 deleted file mode 100644 index 37db352..0000000 --- a/.phpunit.cache/code-coverage/fb38a89e6cf5990d2da8a93533be8011 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:33:"Umbrellio\LTree\Helpers\LTreeNode";a:6:{s:4:"name";s:9:"LTreeNode";s:14:"namespacedName";s:33:"Umbrellio\LTree\Helpers\LTreeNode";s:9:"namespace";s:23:"Umbrellio\LTree\Helpers";s:9:"startLine";i:18;s:7:"endLine";i:167;s:7:"methods";a:15:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:19:"__construct($model)";s:10:"visibility";s:6:"public";s:9:"startLine";i:23;s:7:"endLine";i:26;s:3:"ccn";i:1;}s:6:"isRoot";a:6:{s:10:"methodName";s:6:"isRoot";s:9:"signature";s:14:"isRoot(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:28;s:7:"endLine";i:31;s:3:"ccn";i:1;}s:9:"getParent";a:6:{s:10:"methodName";s:9:"getParent";s:9:"signature";s:18:"getParent(): ?self";s:10:"visibility";s:6:"public";s:9:"startLine";i:33;s:7:"endLine";i:36;s:3:"ccn";i:1;}s:9:"setParent";a:6:{s:10:"methodName";s:9:"setParent";s:9:"signature";s:30:"setParent(?self $parent): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:38;s:7:"endLine";i:41;s:3:"ccn";i:1;}s:8:"addChild";a:6:{s:10:"methodName";s:8:"addChild";s:9:"signature";s:26:"addChild(self $node): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:43;s:7:"endLine";i:49;s:3:"ccn";i:1;}s:11:"getChildren";a:6:{s:10:"methodName";s:11:"getChildren";s:9:"signature";s:54:"getChildren(): Illuminate\Database\Eloquent\Collection";s:10:"visibility";s:6:"public";s:9:"startLine";i:51;s:7:"endLine";i:57;s:3:"ccn";i:2;}s:16:"countDescendants";a:6:{s:10:"methodName";s:16:"countDescendants";s:9:"signature";s:23:"countDescendants(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:59;s:7:"endLine";i:71;s:3:"ccn";i:1;}s:10:"findInTree";a:6:{s:10:"methodName";s:10:"findInTree";s:9:"signature";s:26:"findInTree(int $id): ?self";s:10:"visibility";s:6:"public";s:9:"startLine";i:73;s:7:"endLine";i:85;s:3:"ccn";i:5;}s:4:"each";a:6:{s:10:"methodName";s:4:"each";s:9:"signature";s:30:"each(callable $callback): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:87;s:7:"endLine";i:97;s:3:"ccn";i:2;}s:12:"toCollection";a:6:{s:10:"methodName";s:12:"toCollection";s:9:"signature";s:59:"toCollection(): Umbrellio\LTree\Collections\LTreeCollection";s:10:"visibility";s:6:"public";s:9:"startLine";i:99;s:7:"endLine";i:106;s:3:"ccn";i:1;}s:12:"pathAsString";a:6:{s:10:"methodName";s:12:"pathAsString";s:9:"signature";s:14:"pathAsString()";s:10:"visibility";s:6:"public";s:9:"startLine";i:108;s:7:"endLine";i:111;s:3:"ccn";i:2;}s:11:"toTreeArray";a:6:{s:10:"methodName";s:11:"toTreeArray";s:9:"signature";s:31:"toTreeArray(callable $callback)";s:10:"visibility";s:6:"public";s:9:"startLine";i:113;s:7:"endLine";i:116;s:3:"ccn";i:1;}s:8:"sortTree";a:6:{s:10:"methodName";s:8:"sortTree";s:9:"signature";s:18:"sortTree($options)";s:10:"visibility";s:6:"public";s:9:"startLine";i:123;s:7:"endLine";i:137;s:3:"ccn";i:2;}s:13:"fillTreeArray";a:6:{s:10:"methodName";s:13:"fillTreeArray";s:9:"signature";s:50:"fillTreeArray(iterable $nodes, callable $callback)";s:10:"visibility";s:7:"private";s:9:"startLine";i:139;s:7:"endLine";i:149;s:3:"ccn";i:2;}s:17:"optionsToCallback";a:6:{s:10:"methodName";s:17:"optionsToCallback";s:9:"signature";s:43:"optionsToCallback(array $options): callable";s:10:"visibility";s:7:"private";s:9:"startLine";i:151;s:7:"endLine";i:166;s:3:"ccn";i:5;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:168;s:18:"commentLinesOfCode";i:9;s:21:"nonCommentLinesOfCode";i:159;}s:15:"ignoredLinesFor";a:1:{i:0;i:18;}s:17:"executableLinesIn";a:69:{i:25;i:3;i:30;i:4;i:35;i:5;i:40;i:6;i:45;i:7;i:46;i:7;i:47;i:7;i:48;i:8;i:53;i:9;i:54;i:10;i:56;i:11;i:61;i:12;i:62;i:12;i:63;i:12;i:64;i:12;i:66;i:12;i:67;i:12;i:68;i:12;i:69;i:12;i:70;i:12;i:65;i:13;i:75;i:14;i:76;i:15;i:78;i:16;i:79;i:17;i:80;i:18;i:81;i:19;i:84;i:20;i:89;i:21;i:90;i:22;i:92;i:23;i:93;i:23;i:94;i:23;i:96;i:23;i:95;i:24;i:101;i:25;i:102;i:26;i:104;i:26;i:103;i:27;i:105;i:28;i:110;i:29;i:115;i:30;i:125;i:31;i:126;i:32;i:127;i:33;i:128;i:34;i:130;i:35;i:133;i:35;i:132;i:36;i:134;i:37;i:135;i:37;i:136;i:37;i:141;i:38;i:142;i:39;i:143;i:40;i:144;i:41;i:145;i:42;i:146;i:43;i:148;i:44;i:153;i:45;i:165;i:45;i:154;i:46;i:155;i:47;i:156;i:48;i:158;i:49;i:159;i:50;i:160;i:51;i:161;i:52;i:164;i:53;}} \ No newline at end of file diff --git a/.phpunit.cache/test-results b/.phpunit.cache/test-results deleted file mode 100644 index ae19468..0000000 --- a/.phpunit.cache/test-results +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"defects":{"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::collectionCanBeConvertedIntoTree":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::createViaServiceRoot":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::moveSubtrees":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::proxyColumns":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::deleteRoot":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::deleteSubtree":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::deleteViaServiceSubtree":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::nodeCantHaveUnknownParent":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::nodeCantBeParentToItself":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::findSuccess":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::countDescendants":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::each":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::toTreeOnEmptyCollection":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::toCollection":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::toTreeArray":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::nodePresenter":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::sortFail":8,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::sort":8,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::root":8,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::ancestors":8,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::getAncestorByLevel":8,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::children":8,"Umbrellio\\LTree\\tests\\functional\\Providers\\LTreeServiceProviderTest::providerInit":8,"Umbrellio\\LTree\\tests\\functional\\Relations\\BelongsToTreelTest::missingParentsLtreeModel":8,"Umbrellio\\LTree\\tests\\functional\\Types\\LTreeTypeTest::getSQLDeclaration":8,"Umbrellio\\LTree\\tests\\functional\\Types\\LTreeTypeTest::getTypeName":8,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::loadMissingNodes#consistent":8,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::withoutLoadMissingForPartialTree#partial with single branch without single nodes":8,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::withoutLoadMissingForPartialTree#partial with single branch without more nodes":8,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::withoutLoadMissingForPartialTree#partial with more branches":8,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::withoutLoadMissingNodes#non_consistent_without_loading":8,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::parentsOf#single_as_array":8,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::parentsOf#all_as_array":8,"Umbrellio\\LTree\\tests\\functional\\Relations\\BelongsToTreelTest::getBelongsToParentsTree#two_levels":8,"Umbrellio\\LTree\\tests\\functional\\Relations\\BelongsToTreelTest::getBelongsToParentsTree#three_levels":8,"Umbrellio\\LTree\\tests\\functional\\Relations\\BelongsToTreelTest::getBelongsToDescendantsTree#with_descendants":8},"times":{"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::collectionCanBeConvertedIntoTree":0.075,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::createViaServiceRoot":0.013,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::moveSubtrees":0.032,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::proxyColumns":0.034,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::deleteRoot":0.017,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::deleteSubtree":0.015,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeHelperTest::deleteViaServiceSubtree":0.019,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::nodeCantHaveUnknownParent":0.018,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::nodeCantBeParentToItself":0.019,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::findSuccess":0.019,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::countDescendants":0.019,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::each":0.017,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::toTreeOnEmptyCollection":0.009,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::toCollection":0.022,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::toTreeArray":0.014,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::nodePresenter":0.015,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::sortFail":0.016,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::sort":0.014,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::root":0.013,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::ancestors":0.019,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::getAncestorByLevel":0.036,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::children":0.011,"Umbrellio\\LTree\\tests\\functional\\Providers\\LTreeServiceProviderTest::providerInit":0.004,"Umbrellio\\LTree\\tests\\functional\\Relations\\BelongsToTreelTest::missingParentsLtreeModel":0.015,"Umbrellio\\LTree\\tests\\functional\\Types\\LTreeTypeTest::getSQLDeclaration":0.006,"Umbrellio\\LTree\\tests\\functional\\Types\\LTreeTypeTest::getTypeName":0.004,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::loadMissingNodes#non_consistent_with_loading":0.015,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::loadMissingNodes#consistent":0.011,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::withoutLoadMissingForPartialTree#partial with single branch without single nodes":0.013,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::withoutLoadMissingForPartialTree#partial with single branch without more nodes":0.012,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::withoutLoadMissingForPartialTree#partial with more branches":0.011,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::withoutLeaves#without_leaves":0.026,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeCollectionTest::withoutLoadMissingNodes#non_consistent_without_loading":0.013,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::findFail#-1":0.018,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::findFail#0":0.018,"Umbrellio\\LTree\\tests\\functional\\Helpers\\LTreeNodeTest::findFail#999":0.016,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::getLtreeLevel#root":0.01,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::getLtreeLevel#second-level":0.012,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::getLtreeLevel#third-level":0.01,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::parentsOf#single_as_array":0.012,"Umbrellio\\LTree\\tests\\functional\\Models\\LTreeModelTest::parentsOf#all_as_array":0.009,"Umbrellio\\LTree\\tests\\functional\\Relations\\BelongsToTreelTest::getBelongsToParentsTree#two_levels":0.031,"Umbrellio\\LTree\\tests\\functional\\Relations\\BelongsToTreelTest::getBelongsToParentsTree#three_levels":0.026,"Umbrellio\\LTree\\tests\\functional\\Relations\\BelongsToTreelTest::getBelongsToDescendantsTree#with_descendants":0.028,"Umbrellio\\LTree\\tests\\functional\\Resources\\LTreeResourceTest::resources":0.023,"Umbrellio\\LTree\\tests\\functional\\Types\\LTreeTypeTest::convertToPHPValue#0":0.006,"Umbrellio\\LTree\\tests\\functional\\Types\\LTreeTypeTest::convertToPHPValue#1":0.004,"Umbrellio\\LTree\\tests\\functional\\Types\\LTreeTypeTest::convertToPHPValue#2":0.006,"Umbrellio\\LTree\\tests\\functional\\Types\\LTreeTypeTest::convertToPHPValue#3":0.004,"Umbrellio\\LTree\\tests\\functional\\Types\\LTreeTypeTest::convertToDatabaseValue#0":0.005,"Umbrellio\\LTree\\tests\\functional\\Types\\LTreeTypeTest::convertToDatabaseValue#1":0.004,"Umbrellio\\LTree\\tests\\functional\\Types\\LTreeTypeTest::convertToDatabaseValue#2":0.005}} \ No newline at end of file From d558f041ca179b137a42883b41e7d777ceea462a Mon Sep 17 00:00:00 2001 From: Korben Date: Fri, 3 May 2024 00:12:21 +0200 Subject: [PATCH 4/5] gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index d838c5a..d63bde6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,10 @@ /vendor /.idea .ecs_cache +.phpunit.cache phpunit.xml /build/* .phpunit.result.cache .DS_Store composer.lock + From 3b2e383eb46bc0ce480c569133930b94d86fcd40 Mon Sep 17 00:00:00 2001 From: Korben Date: Fri, 3 May 2024 00:20:02 +0200 Subject: [PATCH 5/5] gitignore --- .gitignore | 2 +- phpunit.xml.bak | 35 ----------------------------------- 2 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 phpunit.xml.bak diff --git a/.gitignore b/.gitignore index d63bde6..d222f26 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,7 @@ .ecs_cache .phpunit.cache phpunit.xml -/build/* +/build .phpunit.result.cache .DS_Store composer.lock diff --git a/phpunit.xml.bak b/phpunit.xml.bak deleted file mode 100644 index 58315cf..0000000 --- a/phpunit.xml.bak +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - ./src - - ./src/.meta.php - - - - - - ./tests - - -