Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow using PHPUnit 9.3 #343

Merged
merged 1 commit into from
Jul 31, 2020
Merged

Conversation

greg0ire
Copy link
Member

@greg0ire greg0ire commented Jul 31, 2020

That is the only version that is compatible with PHP 8.
Lowering the minimum-stability on the nightly build is necessary until
9.3.0 is published.

@greg0ire greg0ire mentioned this pull request Jul 31, 2020
@greg0ire
Copy link
Member Author

greg0ire commented Jul 31, 2020

@stof the failing test seems indeed to be the one I said in #342 :

public function testClassFileDoesNotExist()
{
/* @var $class ReflectionClass|\PHPUnit_Framework_MockObject_MockObject */
$class = $this->getMockBuilder(ReflectionClass::class)
->disableOriginalConstructor()
->getMock();
$class->expects($this->once())
->method('getFilename')
->will($this->returnValue('/valid/class/Fake.php(35) : eval()d code'));
$parser = new PhpParser();
self::assertEquals([], $parser->parseClass($class));
}

Is that a bug in PHP itself? Or some stub file?

@greg0ire
Copy link
Member Author

Reported at sebastianbergmann/phpunit#4393

@stof
Copy link
Member

stof commented Jul 31, 2020

@greg0ire can you try to set the min stability to dev for the PHP nightly job, so that PHPUnit 9.3@dev gets used ?

@greg0ire
Copy link
Member Author

@stof it looks like that fixed the issue :)

@stof
Copy link
Member

stof commented Jul 31, 2020

I suggest merging the change allowing to use PHP 9.3@dev on nightly then (maybe adding a comment explaining why we change the min stability). This would unlock other PRs working on PHP 8 compat

@stof
Copy link
Member

stof commented Jul 31, 2020

I would not merge --testdox for the CI. When you don't have fatal errors (and so the PHPUnit process does not stop before the end of its reporting), I find the dot-based progress followed by the summary of errors to be much more readable in the CI logs than the testdox output where failures and passing tests are mixed together.

@greg0ire greg0ire changed the title Use testdox format Allow using PHPUnit 9.3 Jul 31, 2020
That is the only version that is compatible with PHP 8.
Lowering the minimum-stability on the nightly build is necessary until
9.3.0 is published.
@greg0ire
Copy link
Member Author

Agree on all counts @stof I dropped the commit and reworded the PR

@greg0ire greg0ire marked this pull request as ready for review July 31, 2020 16:22
@greg0ire greg0ire merged commit 6d89cc5 into doctrine:1.10.x Jul 31, 2020
@greg0ire greg0ire deleted the troubleshoot-php8-build branch July 31, 2020 18:45
@greg0ire greg0ire added this to the 1.10.4 milestone Jul 31, 2020
jkufner added a commit to smalldb/annotations that referenced this pull request Aug 11, 2020
Release [1.10.4](https://github.com/doctrine/annotations/milestone/25)

1.10.4
======

- Total issues resolved: **0**
- Total pull requests resolved: **8**
- Total contributors: **5**

 - [347: Add support for the new PHP 8 tokens for use statements](doctrine#347) thanks to @stof
 - [345: Remove calls to TestCase::at()](doctrine#345) thanks to @greg0ire
 - [343: Allow using PHPUnit 9.3](doctrine#343) thanks to @greg0ire

Improvement
-----------

 - [342: Upgrade phpunit](doctrine#342) thanks to @greg0ire
 - [332: DocParser: Improve private typehints](doctrine#332) thanks to @jkufner

bug
---

 - [341: Make type in phpdoc resolvable](doctrine#341) thanks to @greg0ire

Documentation
-------------

 - [338: update annotation IDE annotation with current links](doctrine#338) thanks to @Haehnchen

Documentation,Improvement
-------------------------

 - [337: Replace "blacklist" terminology with "ignore"](doctrine#337) thanks to @albe
Yurunsoft added a commit to Yurunsoft/doctrine-annotations that referenced this pull request Nov 29, 2020
Release [1.10.4](https://github.com/doctrine/annotations/milestone/25)

1.10.4
======

- Total issues resolved: **0**
- Total pull requests resolved: **8**
- Total contributors: **5**

 - [347: Add support for the new PHP 8 tokens for use statements](doctrine#347) thanks to @stof
 - [345: Remove calls to TestCase::at()](doctrine#345) thanks to @greg0ire
 - [343: Allow using PHPUnit 9.3](doctrine#343) thanks to @greg0ire

Improvement
-----------

 - [342: Upgrade phpunit](doctrine#342) thanks to @greg0ire
 - [332: DocParser: Improve private typehints](doctrine#332) thanks to @jkufner

bug
---

 - [341: Make type in phpdoc resolvable](doctrine#341) thanks to @greg0ire

Documentation
-------------

 - [338: update annotation IDE annotation with current links](doctrine#338) thanks to @Haehnchen

Documentation,Improvement
-------------------------

 - [337: Replace "blacklist" terminology with "ignore"](doctrine#337) thanks to @albe

# gpg: Signature made Tue Aug 11 20:55:32 2020
# gpg:                using DSA key 1BEDEE0A820BC30D858F9F0C2C3A645671828132
# gpg: Can't check signature: No public key

# Conflicts:
#	composer.json
#	lib/Doctrine/Common/Annotations/Annotation/Attributes.php
#	lib/Doctrine/Common/Annotations/DocParser.php
#	tests/Doctrine/Tests/Common/Annotations/AbstractReaderTest.php
#	tests/Doctrine/Tests/Common/Annotations/AnnotationReaderTest.php
#	tests/Doctrine/Tests/Common/Annotations/DocParserTest.php
#	tests/Doctrine/Tests/Common/Annotations/FileCacheReaderTest.php
#	tests/Doctrine/Tests/Common/Annotations/SimpleAnnotationReaderTest.php
#	tests/Doctrine/Tests/Common/Annotations/Ticket/DCOM55Test.php
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.

3 participants