Skip to content

MissingDependency in phpunit dependencies #80

@celosauro

Description

@celosauro

The following error occours:

ERROR: MissingDependency - tests/myTest.php - PHPUnit\Framework\MockObject\Builder\InvocationMocker depends on class or interface phpunit\framework\mockobject\builder\parametersmatch that does not exist (see https://psalm.dev/157)
        $aMock->expects($this->never())

The components from error

vendor/phpunit/phpunit/src/Framework/MockObject/Builder/
├── Identity.php
├── InvocationMocker.php
├── InvocationStubber.php
├── Match.php
├── MethodNameMatch.php
├── ParametersMatch.php
└── Stub.php

0 directories, 7 files

Psalm.xml config

    <projectFiles>
        <directory name="src"/>
        <directory name="tests"/>
        <ignoreFiles>
            <directory name="vendor"/>
        </ignoreFiles>
    </projectFiles>
    <plugins>
        <pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
    </plugins>

Info

  • Psalm version: Psalm 3.12.2@7c7ebd068f8acaba211d4a2c707c4ba90874fa26
  • PHPUnit version: "phpunit/phpunit": "^9.1.4"
  • PHPUnit plugin psalm: "psalm/plugin-phpunit": "^0.10.1"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions