MediaWiki REL1_33
XhprofTest Class Reference
Inheritance diagram for XhprofTest:
Collaboration diagram for XhprofTest:

Public Member Functions

 provideCallAny ()
 Data provider for testCallAny().
 
 testCallAny (array $functions, array $args, $expectedResult)
 callAny() calls the first function of the list.
 
 testCallAnyNoneAvailable ()
 callAny() throws an exception when all functions are unavailable.
 
 testEnable ()
 Trying to enable Xhprof when it is already enabled causes an exception to be thrown.
 

Detailed Description

Definition at line 21 of file XhprofTest.php.

Member Function Documentation

◆ provideCallAny()

XhprofTest::provideCallAny ( )

Data provider for testCallAny().

Definition at line 59 of file XhprofTest.php.

◆ testCallAny()

XhprofTest::testCallAny ( array $functions,
array $args,
$expectedResult )

callAny() calls the first function of the list.

Xhprof::callAny provideCallAny

Definition at line 47 of file XhprofTest.php.

References $args, and and().

◆ testCallAnyNoneAvailable()

XhprofTest::testCallAnyNoneAvailable ( )

callAny() throws an exception when all functions are unavailable.

    Exception

Neither xhprof nor tideways are installed Xhprof::callAny

Definition at line 87 of file XhprofTest.php.

References and().

◆ testEnable()

XhprofTest::testEnable ( )

Trying to enable Xhprof when it is already enabled causes an exception to be thrown.

    Exception

already enabled Xhprof::enable

Definition at line 33 of file XhprofTest.php.

References and().


The documentation for this class was generated from the following file: