Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ protected function setUp(): void
// Normalize intl. configuration settings.
if (\extension_loaded('intl')) {
$this->initialTestCaseUseException = ini_set('intl.use_exceptions', 0);
$this->initialTestCaseErrorLevel = ini_set('intl.error_level', 0);
}

// Since we test against "de_AT", we need the full implementation
Expand All @@ -55,7 +54,6 @@ protected function tearDown(): void

if (\extension_loaded('intl')) {
ini_set('intl.use_exceptions', $this->initialTestCaseUseException);
ini_set('intl.error_level', $this->initialTestCaseErrorLevel);
}
}

Expand Down Expand Up @@ -346,6 +344,7 @@ public function testReverseTransformFiveDigitYearsWithTimestamp()

/**
* @requires extension intl
* @requires PHP < 8.5
*/
public function testReverseTransformWrapsIntlErrorsWithErrorLevel()
{
Expand Down Expand Up @@ -378,6 +377,7 @@ public function testReverseTransformWrapsIntlErrorsWithExceptions()

/**
* @requires extension intl
* @requires PHP < 8.5
*/
public function testReverseTransformWrapsIntlErrorsWithExceptionsAndErrorLevel()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@ class NumberToLocalizedStringTransformerTest extends TestCase
private string $defaultLocale;

private $initialTestCaseUseException;
private $initialTestCaseErrorLevel;

protected function setUp(): void
{
// Normalize intl. configuration settings.
if (\extension_loaded('intl')) {
$this->initialTestCaseUseException = ini_set('intl.use_exceptions', 0);
$this->initialTestCaseErrorLevel = ini_set('intl.error_level', 0);
}

$this->defaultLocale = \Locale::getDefault();
Expand All @@ -41,7 +39,6 @@ protected function tearDown(): void

if (\extension_loaded('intl')) {
ini_set('intl.use_exceptions', $this->initialTestCaseUseException);
ini_set('intl.error_level', $this->initialTestCaseErrorLevel);
}
}

Expand Down Expand Up @@ -664,6 +661,7 @@ public function testReverseTransformENotation($output, $input)

/**
* @requires extension intl
* @requires PHP < 8.5
*/
public function testReverseTransformWrapsIntlErrorsWithErrorLevel()
{
Expand Down Expand Up @@ -696,6 +694,7 @@ public function testReverseTransformWrapsIntlErrorsWithExceptions()

/**
* @requires extension intl
* @requires PHP < 8.5
*/
public function testReverseTransformWrapsIntlErrorsWithExceptionsAndErrorLevel()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@ class PercentToLocalizedStringTransformerTest extends TestCase
private string $defaultLocale;

private $initialTestCaseUseException;
private $initialTestCaseErrorLevel;

protected function setUp(): void
{
// Normalize intl. configuration settings.
if (\extension_loaded('intl')) {
$this->initialTestCaseUseException = ini_set('intl.use_exceptions', 0);
$this->initialTestCaseErrorLevel = ini_set('intl.error_level', 0);
}

$this->defaultLocale = \Locale::getDefault();
Expand All @@ -41,7 +39,6 @@ protected function tearDown(): void

if (\extension_loaded('intl')) {
ini_set('intl.use_exceptions', $this->initialTestCaseUseException);
ini_set('intl.error_level', $this->initialTestCaseErrorLevel);
}
}

Expand Down Expand Up @@ -492,6 +489,7 @@ public function testReverseTransformForHtml5FormatWithScale()

/**
* @requires extension intl
* @requires PHP < 8.5
*/
public function testReverseTransformWrapsIntlErrorsWithErrorLevel()
{
Expand Down Expand Up @@ -524,6 +522,7 @@ public function testReverseTransformWrapsIntlErrorsWithExceptions()

/**
* @requires extension intl
* @requires PHP < 8.5
*/
public function testReverseTransformWrapsIntlErrorsWithExceptionsAndErrorLevel()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ public function reset(): void
foreach ($this->pushedResponses as $url => $response) {
$this->logger?->debug(\sprintf('Unused pushed response: "%s"', $url));
curl_multi_remove_handle($this->handle, $response->handle);
curl_close($response->handle);
}

$this->pushedResponses = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,6 @@ public function validate(mixed $value, Constraint $constraint)

return;
}

imagedestroy($resource);
}
}
}
Loading