Author: Tobias Schlitt Date: 2007-03-08 16:17:45 +0100 (Thu, 08 Mar 2007) New Revision: 4735
Log: - Fixed broken test cases. # The tested behaviour was never wanted. Property hirarchy is checked during # table generation. Modified: trunk/ConsoleTools/tests/table_row_test.php Modified: trunk/ConsoleTools/tests/table_row_test.php =================================================================== --- trunk/ConsoleTools/tests/table_row_test.php 2007-03-08 14:15:15 UTC (rev 4734) +++ trunk/ConsoleTools/tests/table_row_test.php 2007-03-08 15:17:45 UTC (rev 4735) @@ -200,7 +200,7 @@ ); } - public function testSetAllCellsProperties_1() + public function testNotSetAllCellsProperties_1() { $row = new ezcConsoleTableRow(); for ( $i = 0; $i < 10; $i++ ) @@ -210,17 +210,17 @@ $row->align = ezcConsoleTable::ALIGN_CENTER; - foreach ( $this as $cell ) + foreach ( $row as $cell ) { $this->assertEquals( - ezcConsoleTable::ALIGN_CENTER, + ezcConsoleTable::ALIGN_DEFAULT, $cell->align, "Did not set alignment correctly for all contained cells." ); } } - public function testSetAllCellsProperties_2() + public function testNotSetAllCellsProperties_2() { $row = new ezcConsoleTableRow(); for ( $i = 0; $i < 10; $i++ ) @@ -230,10 +230,10 @@ $row->format = 'headline'; - foreach ( $this as $cell ) + foreach ( $row as $cell ) { $this->assertEquals( - 'headline', + 'default', $cell->format, "Did not set alignment correctly for all contained cells." ); -- svn-components mailing list svn-components@lists.ez.no http://lists.ez.no/mailman/listinfo/svn-components