override fun processPhpCallInstruction()

in src/main/kotlin/com/pestphp/pest/features/snapshotTesting/SnapshotUtil.kt [97:118]


        override fun processPhpCallInstruction(instruction: PhpCallInstruction): Boolean {
            val functionReference = instruction.functionReference

            if (functionReference !is FunctionReferenceImpl) {
                return super.processPhpCallInstruction(instruction)
            }

            if (!functionReference.isSnapshotAssertionCall) {
                return super.processPhpCallInstruction(instruction)
            }
            snapshotCalls++

            if (PsiManager.getInstance(functionReference.project).areElementsEquivalent(
                    functionReference,
                    snapshotFunctionReference
                )
            ) {
                return false
            }

            return super.processPhpCallInstruction(instruction)
        }