phan / phan/phan

Add unit tests and/or integration tests for language server

Open
#1,482 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

tests
Dominant language
PHP
Stars
5.6k
Forks
365
Avg merge
1h 25m
Merged PRs (30d)
6

Description

To verify that phan properly tracks inheritance, properties, classes, methods, functions, etc. (And has correct types and correct inferences about whether an element exists)

  • Add simple test for Phan
  • Add test of deleting and restoring (or modifying) class without erroneous warnings about duplicate/missing classes in other files
  • Add test of modifying a base class and properly seeing changes in other "modified files" (corresponding to open windows/tabs/panes of a language server client
  • Add test of deleting/removing/modifying global functions

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the existing simple Phan test and the language server test setup. Work through the unchecked checklist scenarios for class changes, base-class changes, and global-function changes; done means the tests verify correct tracking and types without erroneous duplicate, missing, or stale warnings.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
devtools, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.