cvs: pear /Console_Table/tests assoziative_arrays.phpt multibyte.phpt no_rows.phpt

From: Date: Wed, 22 Feb 2006 22:26:16 +0000
Subject: cvs: pear /Console_Table/tests assoziative_arrays.phpt multibyte.phpt no_rows.phpt
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38514@lists.php.net to get a copy of this message
yunosh Wed Feb 22 22:26:16 2006 UTC Added files: /pear/Console_Table/tests assoziative_arrays.phpt multibyte.phpt no_rows.phpt Log: Add tests for the fixed bugs. http://cvs.php.net/viewcvs.cgi/pear/Console_Table/tests/assoziative_arrays.phpt?view=markup&rev=1.1 Index: pear/Console_Table/tests/assoziative_arrays.phpt +++ pear/Console_Table/tests/assoziative_arrays.phpt --TEST-- Header and data as associative arrays. --FILE-- <?php require_once 'Console/Table.php'; $headers = array( 'one' => 'foo', 'two' => 'bar' ); $data = array( array( 'x' => 'baz', ) ); $table = new Console_Table(); $table->setHeaders($headers); $table->addData($data); echo $table->getTable(); ?> --EXPECT-- +-----+-----+ | foo | bar | +-----+-----+ | baz | | +-----+-----+ http://cvs.php.net/viewcvs.cgi/pear/Console_Table/tests/multibyte.phpt?view=markup&rev=1.1 Index: pear/Console_Table/tests/multibyte.phpt +++ pear/Console_Table/tests/multibyte.phpt --TEST-- Multibyte strings --FILE-- <?php require_once 'Console/Table.php'; $table = new Console_Table(); $table->setHeaders(array('Schön', 'Häßlich')); $table->addData(array(array('Ich', 'Du'))); echo $table->getTable(); ?> --EXPECT-- +-------+---------+ | Schön | Häßlich | +-------+---------+ | Ich | Du | +-------+---------+ http://cvs.php.net/viewcvs.cgi/pear/Console_Table/tests/no_rows.phpt?view=markup&rev=1.1 Index: pear/Console_Table/tests/no_rows.phpt +++ pear/Console_Table/tests/no_rows.phpt --TEST-- Table without data --FILE-- <?php require_once 'Console/Table.php'; $table = new Console_Table(); $table->setHeaders(array('foo', 'bar')); echo $table->getTable(); ?> --EXPECT-- +-----+-----+ | foo | bar | +-----+-----+ | | | +-----+-----+

« previous php.pear.cvs (#38514) next »