Skip to content
Snippets Groups Projects
phpunit_with_profiling.xml 2.25 KiB
Newer Older
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
    bootstrap="./bootstrap.php"
    colors="false"
    backupGlobals="false"
    stopOnFailure="false"
    stopOnError="false"
    >
  <testsuites>    
    <testsuite name="DBTestSuite">
      <directory>./db/</directory>
    </testsuite>
    <testsuite name="ScenariosTestSuite">
      <directory>./scenarios/</directory>
    </testsuite>
    <testsuite name="ApplicationTestSuite">
      <directory>./scenarios/</directory>
      <directory>./application/</directory>
      <directory>./library/</directory>
      <directory>./js/</directory>
      <directory>../library/storm/tests/Storm/</directory>
    </testsuite>
    <testsuite name="DigitalResourcesTestSuite">
      <directory>../library/digital_resources/</directory>
    </testsuite>
  </testsuites>
  <filter>
    <whitelist>
      <directory suffix=".php">../application</directory>
      <directory suffix=".php">../library/Class</directory>
      <directory suffix=".php">../library/Trait</directory>
      <directory suffix=".php">../library/ZendAfi</directory>
      <directory suffix=".php">../library/fonctions</directory>
      <directory suffix=".php">./js/</directory>
      <exclude>
	<file>../index.php</file>
	<directory>../library/Class/Pdf</directory>
	<directory>../library/Thumbs</directory>
	<directory>../library/storm/tests/Storm</directory>
      </exclude>
    </whitelist>
  </filter>
  <listeners>
    <listener file = "./TestSpeedTrap.php" class="TestSpeedTrap"/>
    <listener class="PHPUnit\XHProfTestListener\XHProfTestListener" file="phpunit-testlistener-xhprof/src/load.php">
      <arguments>
	<array>
	  <element key="xhprofLibFile">
	    <string>xhprof/xhprof_lib/utils/xhprof_lib.php</string>
	  </element>
	  <element key="xhprofRunsFile">
	    <string>xhprof/xhprof_lib/utils/xhprof_runs.php</string>
	  </element>
	  <element key="xhprofWeb">
	    <string>xhprof/xhprof_html/index.php</string>
	  </element>
	  <element key="xhprofFlags">
	    <string>XHPROF_FLAGS_CPU,XHPROF_FLAGS_MEMORY</string>
	  </element>
	  <element key="xhprofIgnore">
	    <string>call_user_func,call_user_func_array</string>
	  </element>
	  <element key="appNamespace">
	    <string>Bokeh</string>
	  </element>
	</array>
      </arguments>
    </listener>
  </listeners>
</phpunit>