/** * If title is provided we use that for the notification title, otherwise the record level name * * @inheritdoc */ protected function write(array $record) { $title = !empty($record['context']['title']) ? $record['context']['title'] : $record['level_name']; $this->boxcar->push(new Notification($title, $record['message'])); }
/** * @covers ::setOpenUrl * @covers ::getOpenUrl */ public function testOpenUrl() { $boxcar = new Boxcar('secrets'); $boxcar->setOpenUrl('http://maps.google.com/maps?q=cupertino'); $this->assertSame('http://maps.google.com/maps?q=cupertino', $boxcar->getOpenUrl()); }