home
/
zktecojo
/
public_html
/
vendor
/
swiftmailer
/
swiftmailer
/
tests
/
unit
/
Swift
/
Plugins
/
Loggers
➕ New
📤 Upload
✎ Editing:
EchoLoggerTest.php
← Back
<?php class Swift_Plugins_Loggers_EchoLoggerTest extends \PHPUnit_Framework_TestCase { public function testAddingEntryDumpsSingleLineWithoutHtml() { $logger = new Swift_Plugins_Loggers_EchoLogger(false); ob_start(); $logger->add(">> Foo"); $data = ob_get_clean(); $this->assertEquals(">> Foo".PHP_EOL, $data); } public function testAddingEntryDumpsEscapedLineWithHtml() { $logger = new Swift_Plugins_Loggers_EchoLogger(true); ob_start(); $logger->add(">> Foo"); $data = ob_get_clean(); $this->assertEquals(">> Foo<br />".PHP_EOL, $data); } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel