コード例 #1
0
ファイル: SlackRecordTest.php プロジェクト: naldz/cyberden
 /**
  * @dataProvider dataStringify
  */
 public function testStringifyWithLineFormatter($fields, $expectedResult)
 {
     $slackRecord = new SlackRecord('#test', 'test', true, null, true, true);
     $this->assertSame($expectedResult, $slackRecord->stringify($fields));
 }
コード例 #2
0
ファイル: SlackHandler.php プロジェクト: naldz/cyberden
 /**
  * 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);
 }