Author: Sebastian Bergmann
Date: 2006-06-13 09:33:56 +0200 (Tue, 13 Jun 2006)
New Revision: 3126

Log:
Use PHPUnit 3's assertArrayHasKey() method. According to the Code Coverage 
report, no test in the eZ components test suite uses code from the MockObject 
(Jan Borsodi's original implementation of Mock Objects that has been merged 
into PHPUnit 3 CVS since) component anymore.
Modified:
   trunk/Template/tests/operator_test.php

Modified: trunk/Template/tests/operator_test.php
===================================================================
--- trunk/Template/tests/operator_test.php      2006-06-12 16:29:14 UTC (rev 
3125)
+++ trunk/Template/tests/operator_test.php      2006-06-13 07:33:56 UTC (rev 
3126)
@@ -19,17 +19,6 @@
          return new ezcTestSuite( "ezcTemplateOperatorTest" );
     }
 
-    /**
-     * Returns a constraint which checks for a given key in the input array.
-     * @param mixed $key The key to look for.
-     *
-     * @note Use arrayContainingKey() for expectations.
-     */
-    public function hasArrayKey( $key )
-    {
-        return new ezcMockArrayHasKeyConstraint( $key );
-    }
-
     public function setUp()
     {
         $source = new ezcTemplateSourceCode( '', '', '' );
@@ -134,7 +123,7 @@
             {
                 continue;
             }
-            self::assertThat( $levels, self::hasArrayKey( $i ) );
+            $this->assertArrayHasKey( $i, $levels );
         }
     }
 

-- 
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to