Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

House-keeping

  • Loading branch information...
commit dfc59db6ae04cc6a1897bcfb607f15ac39d9763b 1 parent 31f159a
Nicolas Pastorino authored
View
4 autoload/autoload.php
@@ -1,6 +1,6 @@
<?php
return array(
- 'extendedDebugHtmlFormatter' => 'formatters/html_formatter.php',
- 'extendedDebugLogger' => 'logger.php'
+ 'extendeddebugHtmlFormatter' => 'formatters/html_formatter.php',
+ 'extendeddebugLogger' => 'logger.php'
);
?>
View
6 doc/examples.txt
@@ -32,8 +32,8 @@ If so, set ezcBase's runMode to ``ezcBase::MODE_DEVELOPMENT`` and prepare the d
{
ezcBase::setRunMode( ezcBase::MODE_DEVELOPMENT );
$debugHandler = ezcDebug::getInstance();
- $debugHandler->setOutputFormatter( new extendedDebugHtmlFormatter() );
- extendedDebugLogger::setHandler( $debugHandler );
+ $debugHandler->setOutputFormatter( new extendeddebugHtmlFormatter() );
+ extendeddebugLogger::setHandler( $debugHandler );
}
@@ -44,7 +44,7 @@ Anywhere in your code, whether development mode is enabled or not, append a mess
::
$status = array( 'Example', 'Debug', 'Message' );
- extendedDebugLogger::log( var_export( $status, true ), ezcLog::DEBUG, array( "source" => __METHOD__ ) );
+ extendeddebugLogger::log( var_export( $status, true ), ezcLog::DEBUG, array( "source" => __METHOD__ ) );
The debug/log level can be picked amongst all available ones in the ``ezcLog`` class.
View
2  formatters/html_formatter.php
@@ -6,7 +6,7 @@
* @see ezcDebugHtmlFormatter
*/
-class extendedDebugHtmlFormatter extends ezcDebugHtmlFormatter
+class extendeddebugHtmlFormatter extends ezcDebugHtmlFormatter
{
/**
* Returns a string containing the HTML formatted output based on $writerData.
View
2  logger.php
@@ -15,7 +15,7 @@
* but debug will be actually written only when the development mode
* is enabled in ezcBase.
*/
-class extendedDebugLogger
+class extendeddebugLogger
{
/**
* Decorated debug handler.
View
6 tests/extended_debug_dummy_test.php
@@ -21,7 +21,7 @@
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @version //autogentag//
* @filesource
- * @package Configuration
+ * @package Extended Debug
* @subpackage Tests
*/
@@ -29,7 +29,7 @@
* @package Extended Debug
* @subpackage Tests
*/
-class extendedDebugDummyTest extends ezcTestCase
+class extendeddebugDummyTest extends ezcTestCase
{
public function testDummy()
{
@@ -38,7 +38,7 @@ public function testDummy()
public static function suite()
{
- return new PHPUnit_Framework_TestSuite( "extendedDebugDummyTest" );
+ return new PHPUnit_Framework_TestSuite( __CLASS__ );
}
}
View
9 tests/suite.php
@@ -21,7 +21,7 @@
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @version //autogentag//
* @filesource
- * @package Configuration
+ * @package Extended Debug
* @subpackage Tests
*/
@@ -30,24 +30,25 @@
*/
require_once 'extended_debug_dummy_test.php';
+ezcBase::addClassRepository( dirname( __FILE__ ) . '/../', null, 'extendeddebug' );
/**
* @package ExtendedDebug
* @subpackage Tests
*/
-class extendedDebugSuite extends PHPUnit_Framework_TestSuite
+class extendeddebugSuite extends PHPUnit_Framework_TestSuite
{
public function __construct()
{
parent::__construct();
$this->setName( "ExtendedDebug" );
- $this->addTest( extendedDebugDummyTest::suite() );
+ $this->addTest( extendeddebugDummyTest::suite() );
}
public static function suite()
{
- return new extendedDebugSuite();
+ return new extendeddebugSuite();
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.