Skip to content

Commit

Permalink
Added subitem comment test
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxwilko committed Mar 16, 2022
1 parent 62950e0 commit e6c8434
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/Parse/ArrayFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,18 @@ public function testSingleLineComment()
{
$file = __DIR__ . '/../fixtures/parse/arrayfile/single-line-comments.php';
$arrayFile = ArrayFile::open($file);

$this->assertEquals(
str_replace("\r", '', file_get_contents($file)),
str_replace("\r", '', $arrayFile->render())
);
}

public function testSingleLineCommentSubItem()
{
$file = __DIR__ . '/../fixtures/parse/arrayfile/single-line-comments-subitem.php';
$arrayFile = ArrayFile::open($file);

$this->assertEquals(
str_replace("\r", '', file_get_contents($file)),
str_replace("\r", '', $arrayFile->render())
Expand Down
60 changes: 60 additions & 0 deletions tests/fixtures/parse/arrayfile/single-line-comments-subitem.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?php

return [

/*
|--------------------------------------------------------------------------
| Default Broadcaster
|--------------------------------------------------------------------------
|
| This option controls the default broadcaster that will be used by the
| framework when an event needs to be broadcast. You may set this to
| any of the connections defined in the "connections" array below.
|
| Supported: "pusher", "ably", "redis", "log", "null"
|
*/

'default' => env('BROADCAST_DRIVER', 'null'),

/*
|--------------------------------------------------------------------------
| Broadcast Connections
|--------------------------------------------------------------------------
|
| Here you may define all of the broadcast connections that will be used
| to broadcast events to other systems or over websockets. Samples of
| each available type of connection are provided inside this array.
|
*/

'connections' => [
'pusher' => [
'app_id' => env('PUSHER_APP_ID'),
'client_options' => [
// Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html
],
'driver' => 'pusher',
'key' => env('PUSHER_APP_KEY'),
'options' => [
'cluster' => env('PUSHER_APP_CLUSTER'),
'useTLS' => true,
],
'secret' => env('PUSHER_APP_SECRET'),
],
'ably' => [
'driver' => 'ably',
'key' => env('ABLY_KEY'),
],
'redis' => [
'connection' => 'default',
'driver' => 'redis',
],
'log' => [
'driver' => 'log',
],
'null' => [
'driver' => 'null',
],
],
];

0 comments on commit e6c8434

Please sign in to comment.