assertInstanceOf('rcmail_action', $object); } /** * Test for run() */ function test_run() { $object = new rcmail_action_utils_html2text; $html = "

test

"; $object::$source = $this->createTempFile($html); $output = $this->initOutput(rcmail_action::MODE_HTTP, 'utils', 'html2text'); $this->assertTrue($object->checks()); $this->runAndAssert($object, OutputHtmlMock::E_EXIT); $this->assertSame('test', $output->output); $this->assertSame(['Content-Type: text/plain; charset=UTF-8'], $output->headers); } }