Skip to content

Commit e6c8434

Browse files
committed
Added subitem comment test
1 parent 62950e0 commit e6c8434

2 files changed

Lines changed: 72 additions & 0 deletions

File tree

tests/Parse/ArrayFileTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,18 @@ public function testSingleLineComment()
825825
{
826826
$file = __DIR__ . '/../fixtures/parse/arrayfile/single-line-comments.php';
827827
$arrayFile = ArrayFile::open($file);
828+
829+
$this->assertEquals(
830+
str_replace("\r", '', file_get_contents($file)),
831+
str_replace("\r", '', $arrayFile->render())
832+
);
833+
}
834+
835+
public function testSingleLineCommentSubItem()
836+
{
837+
$file = __DIR__ . '/../fixtures/parse/arrayfile/single-line-comments-subitem.php';
838+
$arrayFile = ArrayFile::open($file);
839+
828840
$this->assertEquals(
829841
str_replace("\r", '', file_get_contents($file)),
830842
str_replace("\r", '', $arrayFile->render())
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Default Broadcaster
8+
|--------------------------------------------------------------------------
9+
|
10+
| This option controls the default broadcaster that will be used by the
11+
| framework when an event needs to be broadcast. You may set this to
12+
| any of the connections defined in the "connections" array below.
13+
|
14+
| Supported: "pusher", "ably", "redis", "log", "null"
15+
|
16+
*/
17+
18+
'default' => env('BROADCAST_DRIVER', 'null'),
19+
20+
/*
21+
|--------------------------------------------------------------------------
22+
| Broadcast Connections
23+
|--------------------------------------------------------------------------
24+
|
25+
| Here you may define all of the broadcast connections that will be used
26+
| to broadcast events to other systems or over websockets. Samples of
27+
| each available type of connection are provided inside this array.
28+
|
29+
*/
30+
31+
'connections' => [
32+
'pusher' => [
33+
'app_id' => env('PUSHER_APP_ID'),
34+
'client_options' => [
35+
// Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html
36+
],
37+
'driver' => 'pusher',
38+
'key' => env('PUSHER_APP_KEY'),
39+
'options' => [
40+
'cluster' => env('PUSHER_APP_CLUSTER'),
41+
'useTLS' => true,
42+
],
43+
'secret' => env('PUSHER_APP_SECRET'),
44+
],
45+
'ably' => [
46+
'driver' => 'ably',
47+
'key' => env('ABLY_KEY'),
48+
],
49+
'redis' => [
50+
'connection' => 'default',
51+
'driver' => 'redis',
52+
],
53+
'log' => [
54+
'driver' => 'log',
55+
],
56+
'null' => [
57+
'driver' => 'null',
58+
],
59+
],
60+
];

0 commit comments

Comments
 (0)