diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 35833da..0133c94 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -22,6 +22,7 @@ jobs: - '5.4.*' - '6.4.*' - '7.4.*' + - '8.0.*' include: - php: '8.1' symfony: '5.4.*' @@ -29,16 +30,19 @@ jobs: - php: '8.4' symfony: '7.4.*' dependency: '' - - php: '8.5' - symfony: '8.0.*' - dependency: '' exclude: - php: '8.1' symfony: '7.4.*' + - php: '8.1' + symfony: '8.0.*' + - php: '8.2' + symfony: '8.0.*' + - php: '8.3' + symfony: '8.0.*' fail-fast: false steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/README.md b/README.md index f361ce5..daeb7dc 100644 --- a/README.md +++ b/README.md @@ -49,12 +49,17 @@ Basically you will be testing your extension's load method, which will look some ```php load('services.xml'); + $loader = new PhpFileLoader($container, new FileLocator(__DIR__)); + $loader->load('services.php'); // maybe process the configuration values in $config, then: @@ -68,11 +73,12 @@ So in the test case you should test that after loading the container, the parame ```php load(); @@ -87,11 +93,12 @@ To test the effect of different configuration values, use the first argument of ```php load(['my' => ['enabled' => 'false']); @@ -113,6 +120,7 @@ To test a compiler pass, create a test class and extend from [ + 'extensions' => ['twig.extension.foo'] + ], +]); +``` + ```xml @@ -261,15 +281,13 @@ twig: ```php