stati as $statusVal ) { $status->add($statusVal); } $res = ob_get_contents(); ob_end_clean(); $this->assertEquals( file_get_contents( dirname( __FILE__ ) . '/dat/testStatusbar1.dat' ), $res, "Formated statusbar not generated correctly." ); // To prepare test files use this: // file_put_contents( dirname( __FILE__ ) . '/dat/testStatusbar1.dat', $res ); } public function testStatusbar2() { $out = new ezcConsoleOutput(); $out->options->useFormats = false; $status = new ezcConsoleStatusbar( $out ); ob_start(); foreach ( $this->stati as $statusVal ) { $status->add($statusVal); } $res = ob_get_contents(); ob_end_clean(); $this->assertEquals( file_get_contents( dirname( __FILE__ ) . '/dat/testStatusbar2.dat' ), $res, "Unformated statusbar not generated correctly." ); // To prepare test files use this: // file_put_contents( dirname( __FILE__ ) . '/dat/testStatusbar2.dat', $res ); } } ?>