c(); $c->append( '

This is the first line.

' ); $c->append( 'This is the second line.' ); $this->assertEquals( $c . '', "

This is the first line.

\n

This 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

\n

Second

\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

\n" ); } /** @brief Test plaintext newlines. @since 2015-11-06 17:40:50 **/ public function test_plaintext_newlines() { $c = $this->c(); $c->append( 'First' ); $c->append( '' ); $c->append( 'Second' ); $this->assertEquals( $c . '', "

First

\n

Second

\n" ); } }