Skip to content

Commit

Permalink
Closes #5872
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Oct 7, 2024
1 parent ddfbf3b commit cc9dfca
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ChangeLog-12.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes of the PHPUnit 12.0 release series are documented in this fi

## [12.0.0] - 2025-02-07

### Changed

* [#5872](https://github.com/sebastianbergmann/phpunit/issues/5872): The default value for `shortenArraysForExportThreshold` is now `10` (limit export of arrays to 10 levels) instead of `0` (do not limit export of arrays)

### Removed

* [#5215](https://github.com/sebastianbergmann/phpunit/issues/5215): `TestCase::iniSet()`
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
<xs:attribute name="displayDetailsOnTestsThatTriggerErrors" type="xs:boolean" default="false"/>
<xs:attribute name="displayDetailsOnTestsThatTriggerNotices" type="xs:boolean" default="false"/>
<xs:attribute name="displayDetailsOnTestsThatTriggerWarnings" type="xs:boolean" default="false"/>
<xs:attribute name="shortenArraysForExportThreshold" type="xs:integer" default="0"/>
<xs:attribute name="shortenArraysForExportThreshold" type="xs:integer" default="10"/>
</xs:attributeGroup>
<xs:group name="configGroup">
<xs:all>
Expand Down
2 changes: 1 addition & 1 deletion src/TextUI/Configuration/Xml/DefaultConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public static function create(): self
false,
false,
100,
0,
10,
),
TestSuiteCollection::fromArray([]),
);
Expand Down
2 changes: 1 addition & 1 deletion src/TextUI/Configuration/Xml/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ private function phpunit(string $filename, DOMDocument $document): PHPUnit
$beStrictAboutCoverageMetadata = $this->getBooleanAttribute($document->documentElement, 'beStrictAboutCoverageMetadata', false);
}

$shortenArraysForExportThreshold = $this->getIntegerAttribute($document->documentElement, 'shortenArraysForExportThreshold', 0);
$shortenArraysForExportThreshold = $this->getIntegerAttribute($document->documentElement, 'shortenArraysForExportThreshold', 10);

if ($shortenArraysForExportThreshold < 0) {
$shortenArraysForExportThreshold = 0;
Expand Down

0 comments on commit cc9dfca

Please sign in to comment.