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

Summary: Support code navigation in @covers docblock annotations
Product: php Reporter: dharkness <dharkness>
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: NEW ---    
Severity: normal CC: gameshas
Priority: P3    
Version: 7.0.1   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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. ***