Skip to content

Commit

Permalink
Merge branch '6.x' into 7.x
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Aug 10, 2023
2 parents 1540149 + 1f2de86 commit 0c817dc
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 13 deletions.
1 change: 0 additions & 1 deletion .coveralls.yml

This file was deleted.

4 changes: 1 addition & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

# Ignore following folder/file.
/.github export-ignore
/build export-ignore
/docs export-ignore
/tests export-ignore
/.coveralls.yml export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/phpstan-baseline.neon export-ignore
/phpstan.neon.dist export-ignore
/phpunit.xml export-ignore
/pint.json export-ignore
/CHANGELOG-*.md export-ignore
/CODE_OF_CONDUCT.md export-ignore
/CONTRIBUTING.md export-ignore
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG-6.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench-browser-kit`.

## 6.18.0

Released: 2023-08-10

### Changes

* Update minimum support for Testbench v6.29.2+. ([v6.24.1...v6.29.2](https://github.com/orchestral/testbench/compare/v6.24.1...v6.29.2))

## 6.17.3

Released: 2022-02-08
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"require": {
"php": "^8.0",
"laravel/browser-kit-testing": "^6.3",
"orchestra/testbench": "^7.22",
"orchestra/testbench": "^7.26.2",
"symfony/dom-crawler": "^6.0.9"
},
"require-dev": {
Expand Down
5 changes: 4 additions & 1 deletion pint.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"strict": true
},
"no_superfluous_phpdoc_tags": false,
"php_unit_method_casing": false
"php_unit_method_casing": false,
"nullable_type_declaration_for_default_null_value": {
"use_nullable_type_declaration": true
}
}
}
21 changes: 14 additions & 7 deletions src/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ protected function tearDown(): void
*/
protected function setUpTraits()
{
$uses = array_flip(class_uses_recursive(static::class));

return $this->setUpTheTestEnvironmentTraits($uses);
return $this->setUpTheTestEnvironmentTraits(static::$cachedTestCaseUses);
}

/**
Expand All @@ -79,16 +77,25 @@ protected function refreshApplication()
$this->app = $this->createApplication();
}

/**
* Prepare the testing environment before the running the test case.
*
* @return void
*/
public static function setUpBeforeClass(): void
{
static::setupBeforeClassUsingPHPUnit();
static::setupBeforeClassUsingWorkbench();
}

/**
* Clean up the testing environment before the next test case.
*
* @return void
*/
public static function tearDownAfterClass(): void
{
(function () {
$this->classDocBlocks = [];
$this->methodDocBlocks = [];
})->call(Registry::getInstance());
static::teardownAfterClassUsingWorkbench();
static::teardownAfterClassUsingPHPUnit();
}
}

0 comments on commit 0c817dc

Please sign in to comment.