public/phpmyadmin/vendor/squizlabs/php_codesniffer/tests/Core/File/FindExtendedClassNameTest.php
/**
     * Test retrieving the name of the class being extended by another class
     * (or interface).
     *
     * @param string $identifier Comment which preceeds the test case.
     * @param bool   $expected   Expected function output.
     *
     * @dataProvider dataExtendedClass
     *
     * @return void
     */
Test retrieving the name of the class being extended by another class
(or interface).

@param string $identifier Comment which preceeds the test case.
@param bool   $expected   Expected function output.



@return void
Test retrieving the name of the class being extended by another class ( or interface ) . @param string $identifier Comment which preceeds the test case . @param bool $expected Expected function output . @return void
public function testFindExtendedClassName($identifier, $expected)
    {
        $start   = ($this->phpcsFile->numTokens - 1);
        $delim   = $this->phpcsFile->findPrevious(
            T_COMMENT,
            $start,
            null,
            false,
            $identifier
        );
        $OOToken = $this->phpcsFile->findNext([T_CLASS, T_ANON_CLASS, T_INTERFACE], ($delim + 1));
        $result = $this->phpcsFile->findExtendedClassName($OOToken);
        $this->assertSame($expected, $result);
    }
public function testFindExtendedClassName ( $ identifier , $ expected ) { $ start = ( $ this -> phpcsFile -> numTokens - 1 ) ; $ delim = $ this -> phpcsFile -> findPrevious ( T_COMMENT , $ start , null , false , $ identifier ) ; $ OOToken = $ this -> phpcsFile -> findNext ( [ T_CLASS , T_ANON_CLASS , T_INTERFACE ] , ( $ delim + 1 ) ) ; $ result = $ this -> phpcsFile -> findExtendedClassName ( $ OOToken ) ; $ this -> assertSame ( $ expected , $ result ) ; }
Test retrieving the name of the class being extended by another class
 (or interface).
Test retrieving the name of the class being extended by another class ( or interface ) .