Defect #347

Super-type is collected as test unexpectedly.

Added by Atsuhiro KUBO 7 months ago. Updated 7 months ago.

Status:Closed Start date:
Priority:Normal Due date:
Assignee:Atsuhiro KUBO % Done:

100%

Category:-
Target version:2.20.0
Tags:#collecting
Votes: 0

Description

For example, the $superTypes field is defined as follows:

1protected $superTypes = array(
2    'PHPSpec\Specification\ExampleGroup',
3    'PHPSpec\Context',
4);

then the type PHPSpec\Context is treated as a test class.


Resources

Associated revisions

Revision 24671fe0
Added by Atsuhiro KUBO 7 months ago

Fixed a defect that caused super-type to be collected as test unexpectedly. (Issue #347)

Revision 2362b643
Added by Atsuhiro KUBO 7 months ago

Replaced code to check whether a type should treat as a test with a CollectingType object. (Issue #347)

History

Updated by Atsuhiro KUBO 7 months ago

  • Status changed from New to Assigned

Updated by Atsuhiro KUBO 7 months ago

  • Subject changed from Supertype is collected as test unexpectedly. to Super- type is collected as test unexpectedly.
  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Updated by Atsuhiro KUBO 7 months ago

  • Subject changed from Super- type is collected as test unexpectedly. to Super-type is collected as test unexpectedly.

Also available in: Atom PDF