Skip to content

Dropping PHP versions before 7.1.3 and Symfony versions before 4.3 to fix #61 - #66

Merged
baev merged 8 commits into
allure-framework:masterfrom
remorhaz:master
Feb 24, 2021
Merged

Dropping PHP versions before 7.1.3 and Symfony versions before 4.3 to fix #61#66
baev merged 8 commits into
allure-framework:masterfrom
remorhaz:master

Conversation

@remorhaz

@remorhaz remorhaz commented Jan 28, 2021

Copy link
Copy Markdown
Contributor

This is a necessary evil to move forward and fix #61, I guess.

  • We require symfony/mime to get rid of ugly hacks to make library run in modern environments. Version 4.3 requires PHP 7.1.3 or newer, and version 5 is supported, too.
  • After removing workarounds we don't need symfony/http-foundation anymore. No other changes made to library's code, so backward compatibility is preserved. This code can be released as 1.* without breaking any clients, Composer will take care of dependency compatibilities.
  • PHPUnit is upgraded to versions 8/9. Version 9.3 uses new phpunit.xml structure, so I've created phpunit.legacy.xml to use with older PHPUnit versions.
  • Tests are now run on a range of PHP versions between 7.1.3 and 8.0.

@CLAassistant

CLAassistant commented Jan 28, 2021

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Comment thread phpunit.xml
stopOnFailure="false"
syntaxCheck="false"
>
<phpunit

@remorhaz remorhaz Jan 28, 2021

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only default attribute values were removed.

public function testShouldThrowExceptionForNotImportedAnnotations(): void
{
$instance = new Fixtures\ClassWithIgnoreAnnotation();
$this->expectException(AnnotationException::class);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using annotations to intercept exceptions is deprecated in PHPUnit 8.0 and is removed in 9.0.

$step->setName(self::TEST_STEP_NAME);
$storage->put($step);
$this->assertEquals($storage->getLast()->getName(), self::TEST_STEP_NAME);
$this->assertEquals(self::TEST_STEP_NAME, $storage->getLast()->getName());

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected and actual values were in wrong order.

@remorhaz remorhaz changed the title Dropping PHP versions before 7.2.5 and Symfony versions before 5.1 to fix #61 Dropping PHP versions before 7.1.3 and Symfony versions before 5.1 to fix #61 Jan 29, 2021
@remorhaz remorhaz changed the title Dropping PHP versions before 7.1.3 and Symfony versions before 5.1 to fix #61 Dropping PHP versions before 7.1.3 and Symfony versions before 4.3 to fix #61 Jan 31, 2021
@baev
baev merged commit 07bac2f into allure-framework:master Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Next Symfony release will break allure-php-commons

3 participants