Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php: Add runnable tests #11514

Merged
merged 20 commits into from
May 22, 2024
Merged

Commits on May 7, 2024

  1. Configuration menu
    Copy the full SHA
    6d5115d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fb882a4 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2024

  1. Rename php to phpunit

    RemcoSmitsDev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    c83b74e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    74ea4de View commit details
    Browse the repository at this point in the history
  3. Make regex more strict

    RemcoSmitsDev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    775e21f View commit details
    Browse the repository at this point in the history
  4. Fix render error for multiple targets

    Error: multiple different run targets found on a single line, only the last target will be rendered
    RemcoSmitsDev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    b4f737d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a886047 View commit details
    Browse the repository at this point in the history
  6. Add describe, it and test function call expression to PHP outli…

    …ne scheme
    
    This will allow to run the Pest runnable. Because before this change
    These function call expressions were not recognized as symbols.
    
    This resulted in that the Symbol key inside the task context not being set.
    RemcoSmitsDev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    eaa7d3d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0dcd096 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7c3d96c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    69b8bc3 View commit details
    Browse the repository at this point in the history
  10. Allow multiple chainable methods for Pest runnable

    This allows people to use the following code:
    
    ```php
    it("has a name")
        ->expect(fn() => User::create(["name" => "Nuno Maduro"])->name)
        ->toBe("Nuno Maduro");
    
    --- And ---
    
    describe("tests in describe", function () {
        test("test1", function () {
            expect(true)->toBeTrue();
        });
    
        test("test2", function () {
            expect(true)->toBeTrue();
        });
    })->with(["1", "2"])->group("group1");
    ```
    RemcoSmitsDev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    37ac6a5 View commit details
    Browse the repository at this point in the history
  11. Modify outline scheme for Pest runnable chainable methods

    This allows multiple chainable methods to be run in a single test
    RemcoSmitsDev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    0ef36ff View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    ec94222 View commit details
    Browse the repository at this point in the history
  13. Move Pest runnable query/scheme to single statement

    We have to do this because we cannot specify dynamic child node matching for more than one node.
    
    If you would have more than one chained method the previous version did not work.
    
    NOTE: This will also match test("asdf") inside function/method declarations..
    RemcoSmitsDev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    ef2b3ee View commit details
    Browse the repository at this point in the history

Commits on May 9, 2024

  1. Configuration menu
    Copy the full SHA
    41b304c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2fac4f8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    53b83bc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ea831c2 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2024

  1. Configuration menu
    Copy the full SHA
    ffd0c6b View commit details
    Browse the repository at this point in the history