mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 10:22:18 +00:00
EZ-Components
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Base
|
||||
* @subpackage Tests
|
||||
* @version 1.5
|
||||
* @copyright Copyright (C) 2005-2008 eZ systems as. All rights reserved.
|
||||
* @license http://ez.no/licenses/new_bsd New BSD License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Test class for ezcBaseInitTest.
|
||||
*
|
||||
* @package Base
|
||||
* @subpackage Tests
|
||||
*/
|
||||
class testBaseInitCallback implements ezcBaseConfigurationInitializer
|
||||
{
|
||||
static public function configureObject( $objectToConfigure )
|
||||
{
|
||||
$objectToConfigure->configured = true;
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Base
|
||||
* @subpackage Tests
|
||||
* @version 1.5
|
||||
* @copyright Copyright (C) 2005-2008 eZ systems as. All rights reserved.
|
||||
* @license http://ez.no/licenses/new_bsd New BSD License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Test class for ezcBaseInitTest.
|
||||
*
|
||||
* @package Base
|
||||
* @subpackage Tests
|
||||
*/
|
||||
class testBaseInitClass
|
||||
{
|
||||
public $configured = false;
|
||||
public static $instance;
|
||||
|
||||
public static function getInstance()
|
||||
{
|
||||
if ( is_null( self::$instance ) )
|
||||
{
|
||||
self::$instance = new testBaseInitClass();
|
||||
ezcBaseInit::fetchConfig( 'testBaseInit', self::$instance );
|
||||
}
|
||||
return self::$instance;
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user