Author: as Date: Wed Dec 5 10:22:23 2007 New Revision: 6928 Log: - Separated classes into their own files. # Needed in order to run tests independently.
Added: trunk/Template/tests/template_mock_context.php (with props) Modified: trunk/Template/tests/output_context_test.php Modified: trunk/Template/tests/output_context_test.php ============================================================================== --- trunk/Template/tests/output_context_test.php [iso-8859-1] (original) +++ trunk/Template/tests/output_context_test.php [iso-8859-1] Wed Dec 5 10:22:23 2007 @@ -7,6 +7,8 @@ * @package Template * @subpackage Tests */ + +require_once 'template_mock_context.php'; /** * @package Template @@ -28,36 +30,4 @@ } } -/** - * Sample implementation of an output context, this tests that there are no - * interface functions which are not implemented. - */ -class ezcTemplateMockContext implements ezcTemplateOutputContext -{ - public function cleanupWhitespace() - { - return false; - } - - public function cleanupEol() - { - return false; - } - - public function indent() - { - return false; - } - - public function transformOutput( ezcTemplateAstNode $node ) - { - return false; - } - - public function identifier() - { - return 'mock'; - } -} - ?> Added: trunk/Template/tests/template_mock_context.php ============================================================================== --- trunk/Template/tests/template_mock_context.php (added) +++ trunk/Template/tests/template_mock_context.php [iso-8859-1] Wed Dec 5 10:22:23 2007 @@ -1,0 +1,45 @@ +<? +/** + * @copyright Copyright (C) 2005-2007 eZ systems as. All rights reserved. + * @license http://ez.no/licenses/new_bsd New BSD License + * @version //autogentag// + * @filesource + * @package Template + * @subpackage Tests + */ + +/** + * Sample implementation of an output context, this tests that there are no + * interface functions which are not implemented. + * + * @package Template + * @subpackage Tests + */ +class ezcTemplateMockContext implements ezcTemplateOutputContext +{ + public function cleanupWhitespace() + { + return false; + } + + public function cleanupEol() + { + return false; + } + + public function indent() + { + return false; + } + + public function transformOutput( ezcTemplateAstNode $node ) + { + return false; + } + + public function identifier() + { + return 'mock'; + } +} +?> Propchange: trunk/Template/tests/template_mock_context.php ------------------------------------------------------------------------------ svn:eol-style = native -- svn-components mailing list svn-components@lists.ez.no http://lists.ez.no/mailman/listinfo/svn-components