Derick Rethans | 2 Jan 2006 10:09
Picon
Favicon
Gravatar

1709 - packages/Database/trunk/tests [eZComponents: Trunk]

Author: Derick Rethans
Date: 2006-01-02 10:09:36 +0100 (Mon, 02 Jan 2006)
New Revision: 1709

Log:
- Added factory test case file which I forgot.

Added:
   packages/Database/trunk/tests/factory_test.php

Added: packages/Database/trunk/tests/factory_test.php
===================================================================
--- packages/Database/trunk/tests/factory_test.php	2005-12-30 12:12:09 UTC (rev 1708)
+++ packages/Database/trunk/tests/factory_test.php	2006-01-02 09:09:36 UTC (rev 1709)
 <at>  <at>  -0,0 +1,67  <at>  <at> 
+<?php
+/**
+ *  <at> copyright Copyright (C) 2005 eZ systems as. All rights reserved.
+ *  <at> license http://ez.no/licenses/new_bsd New BSD License
+ *  <at> version //autogentag//
+ *  <at> filesource
+ *  <at> package Database
+ *  <at> subpackage Tests
+ */
+
+/**
+ *  <at> package Database
+ *  <at> subpackage Tests
+ */
+class ezcDatabaseFactoryTest extends ezcTestCase
(Continue reading)

Derick Rethans | 2 Jan 2006 13:16
Picon
Favicon
Gravatar

1710 - packages/Configuration/trunk/src [eZComponents: Trunk]

Author: Derick Rethans
Date: 2006-01-02 13:16:28 +0100 (Mon, 02 Jan 2006)
New Revision: 1710

Log:
- Fixed typo.

Modified:
   packages/Configuration/trunk/src/file_writer.php

Modified: packages/Configuration/trunk/src/file_writer.php
===================================================================
--- packages/Configuration/trunk/src/file_writer.php	2006-01-02 09:09:36 UTC (rev 1709)
+++ packages/Configuration/trunk/src/file_writer.php	2006-01-02 12:16:28 UTC (rev 1710)
 <at>  <at>  -225,7 +225,7  <at>  <at> 
     {
         if ( !$this->config )
         {
-            throw new ezcConfigurationException( 'There is no config object to safe',
ezcConfigurationException::NO_CONFIG_OBJECT );
+            throw new ezcConfigurationException( 'There is no config object to save',
ezcConfigurationException::NO_CONFIG_OBJECT );
         }

         // Open the file

Derick Rethans | 2 Jan 2006 13:36
Picon
Favicon
Gravatar

1711 - in packages/ConsoleTools/trunk/src: . table [eZComponents: Trunk]

Author: Derick Rethans
Date: 2006-01-02 13:36:17 +0100 (Mon, 02 Jan 2006)
New Revision: 1711

Log:
- Use type hints where possible.

Modified:
   packages/ConsoleTools/trunk/src/table.php
   packages/ConsoleTools/trunk/src/table/row.php

Modified: packages/ConsoleTools/trunk/src/table/row.php
===================================================================
--- packages/ConsoleTools/trunk/src/table/row.php	2006-01-02 12:16:28 UTC (rev 1710)
+++ packages/ConsoleTools/trunk/src/table/row.php	2006-01-02 12:36:17 UTC (rev 1711)
 <at>  <at>  -152,12 +152,8  <at>  <at> 
      *  <at> param object(ezcConsoleTableCell) The item to assign.
      *  <at> return void
      */
-    public function offsetSet( $offset, $value )
+    public function offsetSet( $offset, ezcConsoleTableCell $value )
     {
-        if ( !( $value instanceof ezcConsoleTableCell ) )
-        {
-            throw new ezcBaseTypeException( 'ezcConsoleTableCell', gettype( $value ) );
-        }
         if ( !isset( $offset ) )
         {
             $offset = count( $this );

(Continue reading)

Derick Rethans | 2 Jan 2006 14:31
Picon
Favicon
Gravatar

1713 - packages/Base/trunk/src/exceptions [eZComponents: Trunk]

Author: Derick Rethans
Date: 2006-01-02 14:31:11 +0100 (Mon, 02 Jan 2006)
New Revision: 1713

Log:
- Fixed typoes and CS.
- Fixed "range" parameter to the property exception.

Modified:
   packages/Base/trunk/src/exceptions/property_exception.php
   packages/Base/trunk/src/exceptions/property_not_found_exception.php
   packages/Base/trunk/src/exceptions/property_read_only_exception.php
   packages/Base/trunk/src/exceptions/type_exception.php

Modified: packages/Base/trunk/src/exceptions/property_exception.php
===================================================================
--- packages/Base/trunk/src/exceptions/property_exception.php	2006-01-02 13:29:48 UTC (rev 1712)
+++ packages/Base/trunk/src/exceptions/property_exception.php	2006-01-02 13:31:11 UTC (rev 1713)
 <at>  <at>  -8,20 +8,22  <at>  <at> 
  *  <at> license http://ez.no/licenses/new_bsd New BSD License
  */
 /**
- * ezcPropertyException is thrown whenever a property is tried to be set with
- * an iligal value Components library.
+ * ezcBasePropertyException is thrown whenever a property is tried to be set
+ * with an illegal value.
  *
  *  <at> package Base
+ *  <at> version //autogen//
  */
(Continue reading)

Derick Rethans | 2 Jan 2006 14:29
Picon
Favicon
Gravatar

1712 - packages/UserInput/trunk/tests [eZComponents: Trunk]

Author: Derick Rethans
Date: 2006-01-02 14:29:48 +0100 (Mon, 02 Jan 2006)
New Revision: 1712

Log:
- Renamed test class.

Modified:
   packages/UserInput/trunk/tests/suite.php
   packages/UserInput/trunk/tests/tools_test.php

Modified: packages/UserInput/trunk/tests/suite.php
===================================================================
--- packages/UserInput/trunk/tests/suite.php	2006-01-02 12:36:17 UTC (rev 1711)
+++ packages/UserInput/trunk/tests/suite.php	2006-01-02 13:29:48 UTC (rev 1712)
 <at>  <at>  -24,7 +24,7  <at>  <at> 
         parent::__construct();
         $this->setName("UserInput");

-        $this->addTest( ezcInputFilterDefinition::suite() );
+        $this->addTest( ezcInputFilterDefinitionTest::suite() );
     }

     public static function canRun()

Modified: packages/UserInput/trunk/tests/tools_test.php
===================================================================
--- packages/UserInput/trunk/tests/tools_test.php	2006-01-02 12:36:17 UTC (rev 1711)
+++ packages/UserInput/trunk/tests/tools_test.php	2006-01-02 13:29:48 UTC (rev 1712)
 <at>  <at>  -8,7 +8,7  <at>  <at> 
(Continue reading)

Derick Rethans | 2 Jan 2006 14:33
Picon
Favicon
Gravatar

1714 - in packages/ConsoleTools/trunk/src: . table [eZComponents: Trunk]

Author: Derick Rethans
Date: 2006-01-02 14:33:30 +0100 (Mon, 02 Jan 2006)
New Revision: 1714

Log:
- Revert this, as now the signatures don't match anymore.
#- Perhaps this should be refactored?

Modified:
   packages/ConsoleTools/trunk/src/table.php
   packages/ConsoleTools/trunk/src/table/row.php

Modified: packages/ConsoleTools/trunk/src/table/row.php
===================================================================
--- packages/ConsoleTools/trunk/src/table/row.php	2006-01-02 13:31:11 UTC (rev 1713)
+++ packages/ConsoleTools/trunk/src/table/row.php	2006-01-02 13:33:30 UTC (rev 1714)
 <at>  <at>  -152,8 +152,12  <at>  <at> 
      *  <at> param object(ezcConsoleTableCell) The item to assign.
      *  <at> return void
      */
-    public function offsetSet( $offset, ezcConsoleTableCell $value )
+    public function offsetSet( $offset, $value )
     {
+        if ( !( $value instanceof ezcConsoleTableCell ) )
+        {
+            throw new ezcBaseTypeException( 'ezcConsoleTableCell', gettype( $value ) );
+        }
         if ( !isset( $offset ) )
         {
             $offset = count( $this );
(Continue reading)

Derick Rethans | 2 Jan 2006 14:56
Picon
Favicon
Gravatar

1715 - docs/guidelines [eZComponents: Docs]

Author: Derick Rethans
Date: 2006-01-02 14:56:00 +0100 (Mon, 02 Jan 2006)
New Revision: 1715

Log:
- Removed double information.

Modified:
   docs/guidelines/source_documentation.txt

Modified: docs/guidelines/source_documentation.txt
===================================================================
--- docs/guidelines/source_documentation.txt	2006-01-02 13:33:30 UTC (rev 1714)
+++ docs/guidelines/source_documentation.txt	2006-01-02 13:56:00 UTC (rev 1715)
 <at>  <at>  -87,8 +87,6  <at>  <at> 
       *  <at> uses other_packages
       *
       *  <at> package PackageName
-      *  <at> copyright Copyright (C) 2005 eZ systems as. All rights reserved.
-      *  <at> license http://ez.no/licenses/new_bsd New BSD License
       *  <at> version //autogen//
       */

Derick Rethans | 2 Jan 2006 14:56
Picon
Favicon
Gravatar

1716 - docs/guidelines [eZComponents: Docs]

Author: Derick Rethans
Date: 2006-01-02 14:56:22 +0100 (Mon, 02 Jan 2006)
New Revision: 1716

Log:
- Added exceptions RFC.

Added:
   docs/guidelines/exceptions.txt

Added: docs/guidelines/exceptions.txt
===================================================================
--- docs/guidelines/exceptions.txt	2006-01-02 13:56:00 UTC (rev 1715)
+++ docs/guidelines/exceptions.txt	2006-01-02 13:56:22 UTC (rev 1716)
 <at>  <at>  -0,0 +1,177  <at>  <at> 
+Exceptions
+~~~~~~~~~~
+:Author: Derick Rethans
+:Revision: $Revision: 347 $
+:Date: $Date: 2005-08-31 14:10:03 +0200 (Wed, 31 Aug 2005) $
+
+
+We have two types of exceptions. Type one is a simple one which allows you to use
+one class for many different errors - but without different parameters. Type
+two is a more traditional exception a la Java, where one exception class is
+created for each specific error. Components can use both type 1 and type 2
+extensions, but not at the same time (unless they use one of the Base
+component's classes).
+
+Exceptions Type 1
(Continue reading)

Derick Rethans | 2 Jan 2006 15:07
Picon
Favicon
Gravatar

1717 - docs [eZComponents: Docs]

Author: Derick Rethans
Date: 2006-01-02 15:07:24 +0100 (Mon, 02 Jan 2006)
New Revision: 1717

Log:
- Added a line about checking ChangeLogs.

Modified:
   docs/releasing.txt

Modified: docs/releasing.txt
===================================================================
--- docs/releasing.txt	2006-01-02 13:56:22 UTC (rev 1716)
+++ docs/releasing.txt	2006-01-02 14:07:24 UTC (rev 1717)
 <at>  <at>  -4,19 +4,20  <at>  <at> 
 1. go to packages/
 2. php UnitTest/trunk/src/runtests.php "mysql://root <at> localhost/ezc" <packagename>
 3. cd <packagename>   (you are now in ezcomponents/packages/≤packagename>)
-4. svn mkdir releases
-5. svn cp trunk releases/<version>  (f.e. svn cp trunk releases/1.0beta1)
-6. cd releases/<version> (you are now in ezcomponents/packages/≤packagename>/releases/≤version>)
-7. run: ../../../../scripts/autogen-version-tags.sh - this fixes the version tags and release date
-8. cd ../..   (you are now in ezcomponents/packages/≤packagename>)
-9. verify the changes with "svn diff | less"
-10. svn commit -m "- Released <packagename> version <version>"
-11. cd .. (you are now in ezcomponents/packages)
-12. run ../scripts/generate_package_xml.php -p <packagename> -v <version>
-13. run: (cd /tmp; pear package /tmp/ezc/≤packagename>/package.xml; cd -)
+4. Check ChangeLog in trunk/ChangeLog for spelling and format
+5. svn mkdir releases
(Continue reading)

Derick Rethans | 2 Jan 2006 16:44
Picon
Favicon
Gravatar

1718 - in packages/Configuration/trunk: . src src/array src/ini src/interfaces tests [eZComponents: Trunk]

Author: Derick Rethans
Date: 2006-01-02 16:44:02 +0100 (Mon, 02 Jan 2006)
New Revision: 1718

Log:
- Updated and fixed all examples.

ezcConfigurationFileWriter
==========================

- Fixed generation of file names to include a . before appending the suffix.
- Fixed a spelling error when throwing an exception in case a file could not
  be written to.

Modified:
   packages/Configuration/trunk/ChangeLog
   packages/Configuration/trunk/src/array/array_reader.php
   packages/Configuration/trunk/src/array/array_writer.php
   packages/Configuration/trunk/src/configuration.php
   packages/Configuration/trunk/src/configuration_manager.php
   packages/Configuration/trunk/src/file_reader.php
   packages/Configuration/trunk/src/file_writer.php
   packages/Configuration/trunk/src/ini/ini_reader.php
   packages/Configuration/trunk/src/ini/ini_writer.php
   packages/Configuration/trunk/src/interfaces/reader.php
   packages/Configuration/trunk/src/interfaces/writer.php
   packages/Configuration/trunk/src/validation_result.php
   packages/Configuration/trunk/tests/configuration_ini_writer_test.php

Modified: packages/Configuration/trunk/ChangeLog
(Continue reading)


Gmane