37 lines
869 B
PHP
37 lines
869 B
PHP
<?php
|
|
/**
|
|
* @author Ralf Lang <lang@ralf-lang.de>
|
|
* @category Horde
|
|
* @copyright 2013 Horde LLC
|
|
* @internal
|
|
* @license http://www.horde.org/licenses/gpl GPL
|
|
* @package Passwd
|
|
* @subpackage UnitTests
|
|
*/
|
|
class Passwd_TestCase extends PHPUnit_Framework_TestCase
|
|
{
|
|
protected function getInjector()
|
|
{
|
|
return new Horde_Injector(new Horde_Injector_TopLevel());
|
|
}
|
|
|
|
static protected function createBasicPasswdSetup(Horde_Test_Setup $setup)
|
|
{
|
|
$setup->setup(
|
|
array(
|
|
'_PARAMS' => array(
|
|
'user' => 'test@example.com',
|
|
'app' => 'passwd'
|
|
),
|
|
'Horde_Registry' => 'Registry',
|
|
)
|
|
);
|
|
$setup->makeGlobal(
|
|
array(
|
|
'registry' => 'Horde_Registry',
|
|
)
|
|
);
|
|
}
|
|
|
|
}
|