incubator-zeta-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebast...@apache.org
Subject [zeta-commits] svn commit: r1037433 - in /incubator/zetacomponents/trunk: Base/tests/metadata_pear_test.php Document/tests/document_odt_docbook_tests.php
Date Sun, 21 Nov 2010 11:55:59 GMT
Author: sebastian
Date: Sun Nov 21 11:55:58 2010
New Revision: 1037433

URL: http://svn.apache.org/viewvc?rev=1037433&view=rev
Log:
- Use assertInternalType() instead of assertType() where appropriate.

Modified:
    incubator/zetacomponents/trunk/Base/tests/metadata_pear_test.php
    incubator/zetacomponents/trunk/Document/tests/document_odt_docbook_tests.php

Modified: incubator/zetacomponents/trunk/Base/tests/metadata_pear_test.php
URL: http://svn.apache.org/viewvc/incubator/zetacomponents/trunk/Base/tests/metadata_pear_test.php?rev=1037433&r1=1037432&r2=1037433&view=diff
==============================================================================
--- incubator/zetacomponents/trunk/Base/tests/metadata_pear_test.php (original)
+++ incubator/zetacomponents/trunk/Base/tests/metadata_pear_test.php Sun Nov 21 11:55:58 2010
@@ -40,7 +40,7 @@ class ezcBaseMetaDataPearTest extends ez
     {
         $r = new ezcBaseMetaData( 'pear' );
         $release = $r->getBundleVersion();
-        self::assertType( 'string', $release );
+        self::assertInternalType( 'string', $release );
         self::assertRegexp( '@[0-9]{4}\.[0-9](\.[0-9])?@', $release );
     }
 
@@ -55,7 +55,7 @@ class ezcBaseMetaDataPearTest extends ez
     {
         $r = new ezcBaseMetaData( 'pear' );
         $release = $r->getComponentVersion( 'Base' );
-        self::assertType( 'string', $release );
+        self::assertInternalType( 'string', $release );
         self::assertRegexp( '@[0-9]\.[0-9](\.[0-9])?@', $release );
         self::assertFalse( $r->getComponentVersion( 'DefinitelyNot' ) );
     }

Modified: incubator/zetacomponents/trunk/Document/tests/document_odt_docbook_tests.php
URL: http://svn.apache.org/viewvc/incubator/zetacomponents/trunk/Document/tests/document_odt_docbook_tests.php?rev=1037433&r1=1037432&r2=1037433&view=diff
==============================================================================
--- incubator/zetacomponents/trunk/Document/tests/document_odt_docbook_tests.php (original)
+++ incubator/zetacomponents/trunk/Document/tests/document_odt_docbook_tests.php Sun Nov 21
11:55:58 2010
@@ -121,7 +121,7 @@ class ezcDocumentOdtDocbookTests extends
             dirname( __FILE__ ) . '/files/odt/invalid/s_000_simple.fodt'
         );
 
-        $this->assertType(
+        $this->assertInternalType(
             'array',
             $actRes
         );



Mime
View raw message