c(); $c->append( '
This is the first line.
' ); $c->append( 'This is the second line.' ); $this->assertEquals( $c . '', "This is the first line.
\nThis is the second line.
\n" ); } /** @brief Test the newline function. @since 2015-11-06 17:42:07 **/ public function test_newline() { $c = $this->c(); $c->append( 'First' ); $c->newline(); $c->append( 'Second' ); $this->assertEquals( $c . '', "First
\nSecond
\n" ); } /** @brief Add plaintext strings. @since 2015-11-06 17:35:10 **/ public function test_plaintext_lines() { $c = $this->c(); $c->append( 'First' ); $c->append( 'Second' ); $c->append( 'Third' ); $this->assertEquals( $c . '', "First
\nSecond
\nThird
First
\nSecond
\n" ); } }