/** * @dataProvider dataStringify */ public function testStringifyWithLineFormatter($fields, $expectedResult) { $slackRecord = new SlackRecord('#test', 'test', true, null, true, true); $this->assertSame($expectedResult, $slackRecord->stringify($fields)); }
/** * Stringifies an array of key/value pairs to be used in attachment fields * * @param array $fields * @return string * @deprecated Use underlying SlackRecord instead */ protected function stringify($fields) { trigger_error('SlackHandler::stringify() is deprecated. Use underlying SlackRecord instead.', E_USER_DEPRECATED); return $this->slackRecord->stringify($fields); }