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

Public Member Functions

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

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

◆ 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 class.

◆ 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 class.


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