PATH:
opt
/
alt
/
tests
/
alt-php55-pecl-xhprof-tideways_4.1.6-2.el8
/
tests
--TEST-- XHProf: Transaction Name Detection in Hierachical Profiling Mode --FILE-- <?php use Symfony\Component\HttpKernel\Controller\ControllerResolver; use Zend\MVC\Controller\ControllerManager; require "tideways_023_classes.php"; abstract class Zend_Controller_Action { public function dispatch($method) { } } class MyController extends Zend_Controller_Action { } class oxView { public function setClassName($sClass) { } } abstract class Enlight_Controller_Action { public function dispatch($method) { } } class ShopController extends Enlight_Controller_Action { } function get_query_template($name) { } function transaction_symfony2() { tideways_enable(TIDEWAYS_FLAGS_NO_SPANS, array( 'transaction_function' => 'Symfony\Component\HttpKernel\Controller\ControllerResolver::createController', )); $resolver = new ControllerResolver(); $resolver->createController("foo::bar"); echo "Symfony2: " . tideways_transaction_name() . "\n"; tideways_disable(); } function transaction_zf1() { tideways_enable(TIDEWAYS_FLAGS_NO_SPANS, array( 'transaction_function' => 'Zend_Controller_Action::dispatch', )); $controller = new MyController(); $controller->dispatch("fooAction"); echo "Zend Framework 1: " . trim(tideways_transaction_name()) . "\n"; $data = tideways_disable(); } function transaction_zf2() { tideways_enable(TIDEWAYS_FLAGS_NO_SPANS, array( 'transaction_function' => 'Zend\\MVC\\Controller\\ControllerManager::get', )); $manager = new ControllerManager(); $manager->get("FooCtrl", array("foo" => "bar"), false); echo "Zend Framework 2: " . tideways_transaction_name() . "\n"; $data = tideways_disable(); } function transaction_oxid() { tideways_enable(TIDEWAYS_FLAGS_NO_SPANS, array( 'transaction_function' => 'oxView::setClassName', )); $shop = new oxView(); $shop->setClassName("alist"); echo "Oxid: " . tideways_transaction_name() . "\n"; $data = tideways_disable(); } function transaction_shopware() { tideways_enable(TIDEWAYS_FLAGS_NO_SPANS, array( 'transaction_function' => 'Enlight_Controller_Action::dispatch', )); $controller = new ShopController(); $controller->dispatch('listAction'); echo "Shopware: " . trim(tideways_transaction_name()) . "\n"; $data = tideways_disable(); } function transaction_wordpress() { tideways_enable(TIDEWAYS_FLAGS_NO_SPANS, array( 'transaction_function' => 'get_query_template', )); get_query_template("home"); echo "Wordpress: " . tideways_transaction_name() . "\n"; $data = tideways_disable(); } function transaction_laravel() { tideways_enable(TIDEWAYS_FLAGS_NO_SPANS, array( 'transaction_function' => 'Illuminate\Routing\Controller::callAction', )); $ctrl = new \CachetHQ\Cachet\Http\Controllers\RssController(); $ctrl->callAction('indexAction', array()); echo "Laravel: " . tideways_transaction_name() . "\n"; $data = tideways_disable(); } function transaction_flow3() { tideways_enable(TIDEWAYS_FLAGS_NO_SPANS, array( 'transaction_function' => 'TYPO3\Flow\Mvc\Controller\ActionController_Original::callActionMethod', )); $ctrl = new \TYPO3\Flow\Mvc\Controller\FooController(); $ctrl->processRequest(); echo "FLOW3: " . tideways_transaction_name() . "\n"; $data = tideways_disable(); } function transaction_flow4() { tideways_enable(TIDEWAYS_FLAGS_NO_SPANS, array( 'transaction_function' => 'Neos\Flow\Mvc\Controller\ActionController_Original::callActionMethod', )); $ctrl = new \Neos\Flow\Mvc\Controller\FooController(); $ctrl->processRequest(); echo "FLOW4: " . tideways_transaction_name() . "\n"; $data = tideways_disable(); } transaction_symfony2(); transaction_zf2(); transaction_oxid(); transaction_shopware(); transaction_wordpress(); transaction_zf1(); transaction_laravel(); transaction_flow3(); transaction_flow4(); --EXPECTF-- Symfony2: foo::bar Zend Framework 2: FooCtrl Oxid: alist Shopware: ShopController::listAction Wordpress: home Zend Framework 1: MyController::fooAction Laravel: CachetHQ\Cachet\Http\Controllers\RssController::indexAction FLOW3: TYPO3\Flow\Mvc\Controller\FooController::indexAction FLOW4: Neos\Flow\Mvc\Controller\FooController::indexAction
[-] tideways_events2.php
[edit]
[-] tideways_spans_032.phpt
[edit]
[-] tideways_003.phpt
[edit]
[-] tideways_spans_022.phpt
[edit]
[-] tideways_036.phpt
[edit]
[-] tideways_spans_014.phpt
[edit]
[-] tideways_spans_017.phpt
[edit]
[-] tideways_tranaction_cakephp3.phpt
[edit]
[-] tideways_errors_004.phpt
[edit]
[-] tideways_spans_019.phpt
[edit]
[-] common_predis.php
[edit]
[-] tideways_007.phpt
[edit]
[-] tideways_errors_002.phpt
[edit]
[-] tideways_spans_027.phpt
[edit]
[-] tideways_005.phpt
[edit]
[-] tideways_spans_025.phpt
[edit]
[-] tideways_spans_018.phpt
[edit]
[-] tideways_events1.php
[edit]
[-] tideways_spans_021.phpt
[edit]
[-] tideways_038.phpt
[edit]
[-] tideways_spans_020.phpt
[edit]
[-] memleak.phpt
[edit]
[-] tideways_023_classes.php
[edit]
[-] tideways_018.phpt
[edit]
[-] http_responder.php
[edit]
[-] tideways_037.phpt
[edit]
[-] tideways_fw_magento_001.phpt
[edit]
[-] tideways_spans_004.phpt
[edit]
[-] tideways_spans_005.phpt
[edit]
[-] tideways_spans_003.phpt
[edit]
[-] tideways_fw_wordpress_001.phpt
[edit]
[-] tideways_spans_007.phpt
[edit]
[-] tideways_039.phpt
[edit]
[-] tideways_spans_030.phpt
[edit]
[-] tideways_spans_031.phpt
[edit]
[-] tideways_004_inc.php
[edit]
[-] tideways_spans_013.phpt
[edit]
[-] tideways_spans_016.phpt
[edit]
[-] tideways_sql_001.phpt
[edit]
[-] tideways_040.phpt
[edit]
[-] tideways_spans_035.phpt
[edit]
[-] tideways_fw_symfony_002.phpt
[edit]
[-] tideways_fw_shopware_001.phpt
[edit]
[-] tideways_spans_015.phpt
[edit]
[-] tideways_001.phpt
[edit]
[-] tideways_spans_024.phpt
[edit]
[-] tideways_spans_026.phpt
[edit]
[-] tideways_doctrine.php
[edit]
[-] tideways_009.phpt
[edit]
[-] tideways_tranaction_cakephp2.phpt
[edit]
[-] tideways_spans_023.phpt
[edit]
[-] tideways_spans_001.phpt
[edit]
[-] tideways_024.phpt
[edit]
[-] tideways_023.phpt
[edit]
[-] tideways_fw_options.phpt
[edit]
[-] tideways_spans_002.phpt
[edit]
[-] tideways_queue.php
[edit]
[-] tideways_symfony3.php
[edit]
[-] tideways_spans_036.phpt
[edit]
[-] tideways_029.phpt
[edit]
[-] tideways_spans_028.phpt
[edit]
[-] tideways_transaction_yii.phpt
[edit]
[-] tideways_004.phpt
[edit]
[-] tideways_spans_012.phpt
[edit]
[-] tideways_026.phpt
[edit]
[-] tideways_002.phpt
[edit]
[-] tideways_004_require.php
[edit]
[-] tideways_symfony.php
[edit]
[-] tideways_errors_005.phpt
[edit]
[-] tideways_spans_006.phpt
[edit]
[-] tideways_errors_001.phpt
[edit]
[+]
..
[-] tideways_spans_008.phpt
[edit]
[-] tideways_039_prepend.php
[edit]
[-] tideways_fw_oxid_001.phpt
[edit]
[-] tideways_spans_009.phpt
[edit]
[-] tideways_errors_003.phpt
[edit]
[-] common.php
[edit]
[-] tideways_035.phpt
[edit]
[-] tideways_spans_029.phpt
[edit]
[-] tideways_fw_zend1.phpt
[edit]
[-] elasticsearch.php
[edit]
[-] tideways_transaction_yii2.phpt
[edit]