Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
phpunit
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Oct 2014 at 21:58 UTC
Updated:
22 Oct 2014 at 15:43 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
geerlingguy commentedAttached patch is incomplete; still working my way through all the incorrect
@coversaround test files...Comment #2
geerlingguy commentedAttached patch gets tests working all the way through (with current HEAD).
P.S. current test coverage (PHPUnit only):
Comment #3
dawehnerThis change is confusing, giving that we actually test the __call method, don't we?
Comment #4
geerlingguy commented@dawehner - it looks like for magic methods, the preferred method is to write
@covers ClassName::__call; see https://github.com/sebastianbergmann/phpunit/issues/1005#issuecomment-24....I'll update the patch.
Comment #5
geerlingguy commentedHmm... using the incantation
@covers AccessAwareRouter::__callstill results in a fatal. Is there something I'm missing?Comment #6
geerlingguy commentedApparently I had to use the fully qualified name before PHPUnit was happy... see updated patch.
Comment #7
dawehnerGreat that you solved it!
Comment #8
alexpott#2358657: Wrong @covers definitions in Drupal project and this are dupes and here is almost the same review.
How about just adding a "s"?
Need to add the default class to the test class annotation.
Are there replacements?
Comment #9
alexpottI'm going to mark this one a dupe of #2358657: Wrong @covers definitions in Drupal project since that was at rtbc earlier and has an smaller nid. I'll add a note to the other issue to include changes from this issue that are not there are to credit @geerlingguy.