This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 200404 - Support code navigation in @covers docblock annotations
Summary: Support code navigation in @covers docblock annotations
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0.1
Hardware: All All
: P3 normal with 2 votes (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
: 240021 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-07-26 21:27 UTC by dharkness
Modified: 2014-01-06 12:27 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dharkness 2011-07-26 21:27:42 UTC
When using PHPUnit you can mark which classes/methods a test method is designed to exercise using @covers docblock annotations on classes and methods. It would be great to get code navigation (CTRL + Click) on these elements.

    /**
     * @covers User::setName        <-- CTRL + Hover shows documentation
     * @covers User::getName        <-- CTRL + Click goes to class/method
     */
    function testSetName() {
        $user = new User();
        $user->setName('joe');
        assertThat($user->getName(), is('joe'));
    }

PHP_CodeCoverage supports some alternate forms such as

    @covers User::<public
    @covers User::!<private

and IIRC a form that says "class X and all super/subclasses".
Comment 1 BullfrogBlues 2012-02-09 10:05:21 UTC
This is a would-be-a-nice-touch feature for me, yes.
Comment 2 Ondrej Brejla 2014-01-06 12:27:32 UTC
*** Bug 240021 has been marked as a duplicate of this bug. ***