assertInstanceOf(\rcmail_action::class, $object); } /** * Test quote_text() method */ public function test_quote_text() { $action = new \rcmail_action_mail_compose(); $this->assertSame('> ', $action->quote_text('')); $result = $action->quote_text("test1\ntest2"); $expected = "> test1\n> test2"; $this->assertSame($expected, $result); $result = $action->quote_text("> test1\n> test2"); $expected = ">> test1\n>> test2"; $this->assertSame($expected, $result); } }