Author: kn Date: Wed Feb 6 18:06:27 2008 New Revision: 7318 Log: - Also test new options class
Added: experimental/Document/tests/converter_options_ezp3_ezp4_test.php (with props) Modified: experimental/Document/tests/suite.php Added: experimental/Document/tests/converter_options_ezp3_ezp4_test.php ============================================================================== --- experimental/Document/tests/converter_options_ezp3_ezp4_test.php (added) +++ experimental/Document/tests/converter_options_ezp3_ezp4_test.php [iso-8859-1] Wed Feb 6 18:06:27 2008 @@ -1,0 +1,66 @@ +<?php +/** + * ezcDocTestConvertXhtmlDocbook + * + * @package Document + * @version //autogen// + * @subpackage Tests + * @copyright Copyright (C) 2005-2007 eZ systems as. All rights reserved. + * @license http://ez.no/licenses/new_bsd New BSD License + */ + +require_once dirname( __FILE__ ) . '/options_test_case.php'; + +/** + * Test suite for class. + * + * @package Document + * @subpackage Tests + */ +class ezcDocumentConverterOptionsEzp3ToEzp4Tests extends ezcDocumentOptionsTestCase +{ + public static function suite() + { + return new PHPUnit_Framework_TestSuite( __CLASS__ ); + } + + protected function getOptionsClassName() + { + return 'ezcDocumentEzp3ToEzp4ConverterOptions'; + } + + public static function provideDefaultValues() + { + return array( + array( + 'customInlineTags', array(), + ), + ); + } + + public static function provideValidData() + { + return array( + array( + 'customInlineTags', + array( array(), array( 'foo' ), array( 'foo', 'bar' ) ), + ), + ); + } + + public static function provideInvalidData() + { + return array( + array( + 'customInlineTags', + array( + 1, 'foo', .5, new StdClass() + // This should faild too, but does not yet: + // array( 1 ), array( '<foo>' ), array( new StdClass() ), + ), + ), + ); + } +} + +?> Propchange: experimental/Document/tests/converter_options_ezp3_ezp4_test.php ------------------------------------------------------------------------------ svn:eol-style = native Modified: experimental/Document/tests/suite.php ============================================================================== --- experimental/Document/tests/suite.php [iso-8859-1] (original) +++ experimental/Document/tests/suite.php [iso-8859-1] Wed Feb 6 18:06:27 2008 @@ -19,6 +19,8 @@ require_once 'document_options_xml_base_test.php'; require_once 'document_xml_base_test.php'; + +require_once 'converter_options_ezp3_ezp4_test.php'; require_once 'converter_ezp3_ezp4_test.php'; require_once 'converter_xhtml_docbook_test.php'; @@ -38,6 +40,7 @@ $this->addTest( ezcDocumentOptionsXmlBaseTests::suite() ); $this->addTest( ezcDocumentXmlBaseTests::suite() ); + $this->addTest( ezcDocumentConverterOptionsEzp3ToEzp4Tests::suite() ); $this->addTest( ezcDocumentConverterEzp3ToEzp4Tests::suite() ); $this->addTest( ezcDocumentConverterXhtmlToDocbookTests::suite() ); } -- svn-components mailing list svn-components@lists.ez.no http://lists.ez.no/mailman/listinfo/svn-components