|
|
@@ -345,24 +345,24 @@ class TextHelperTest extends CakeTestCase {
|
|
|
<p>This is a test text</p>
|
|
|
|
|
|
TEXT;
|
|
|
- $result = $this->Text->autoParagraph($text);
|
|
|
- $text = 'This is a <br/> <BR> test text';
|
|
|
- $expected = <<<TEXT
|
|
|
+ $result = $this->Text->autoParagraph($text);
|
|
|
+ $text = 'This is a <br/> <BR> test text';
|
|
|
+ $expected = <<<TEXT
|
|
|
<p>This is a </p>
|
|
|
<p> test text</p>
|
|
|
|
|
|
TEXT;
|
|
|
- $result = $this->Text->autoParagraph($text);
|
|
|
- $this->assertEquals($expected, $result);
|
|
|
- $result = $this->Text->autoParagraph($text);
|
|
|
- $text = 'This is a <BR id="test"/><br class="test"> test text';
|
|
|
- $expected = <<<TEXT
|
|
|
+ $result = $this->Text->autoParagraph($text);
|
|
|
+ $this->assertEquals($expected, $result);
|
|
|
+ $result = $this->Text->autoParagraph($text);
|
|
|
+ $text = 'This is a <BR id="test"/><br class="test"> test text';
|
|
|
+ $expected = <<<TEXT
|
|
|
<p>This is a </p>
|
|
|
<p> test text</p>
|
|
|
|
|
|
TEXT;
|
|
|
- $result = $this->Text->autoParagraph($text);
|
|
|
- $this->assertEquals($expected, $result);
|
|
|
+ $result = $this->Text->autoParagraph($text);
|
|
|
+ $this->assertEquals($expected, $result);
|
|
|
$text = <<<TEXT
|
|
|
This is a test text.
|
|
|
This is a line return.
|