-
-
Notifications
You must be signed in to change notification settings - Fork 138
Expand file tree
/
Copy pathjsfmt.spec.mjs.snap
More file actions
84 lines (67 loc) · 1.96 KB
/
jsfmt.spec.mjs.snap
File metadata and controls
84 lines (67 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`sys.php 1`] = `
====================================options=====================================
parsers: ["php"]
printWidth: 80
| printWidth
=====================================input======================================
<?php
echo "test echo";
echo $test, $other;
$info = array('coffee', 'brown', 'caffeine');
list($drink, $color, $power) = $info;
list($reallyReallyReallyReallyLongName, $otherReallyReallyReallyLongName, $lastOne) = $info;
print "test print";
print("parens test");
isset($test);
unset($test);
empty($test);
isset($test, $test, $test,$test, $test, $test, $test, $test, $test, $test, $test, $test);
isset($test['foo']);
isset($a['cake']['a']['b']);
isset($expected_array_got_string['some_key']);
isset($expected_array_got_string[0]);
isset($expected_array_got_string['0']);
isset($expected_array_got_string[0.5]);
isset($expected_array_got_string['0.5']);
isset($expected_array_got_string['0 Mostel']);
=====================================output=====================================
<?php
echo "test echo";
echo $test, $other;
$info = ["coffee", "brown", "caffeine"];
[$drink, $color, $power] = $info;
[
$reallyReallyReallyReallyLongName,
$otherReallyReallyReallyLongName,
$lastOne,
] = $info;
print "test print";
print "parens test";
isset($test);
unset($test);
empty($test);
isset(
$test,
$test,
$test,
$test,
$test,
$test,
$test,
$test,
$test,
$test,
$test,
$test,
);
isset($test["foo"]);
isset($a["cake"]["a"]["b"]);
isset($expected_array_got_string["some_key"]);
isset($expected_array_got_string[0]);
isset($expected_array_got_string["0"]);
isset($expected_array_got_string[0.5]);
isset($expected_array_got_string["0.5"]);
isset($expected_array_got_string["0 Mostel"]);
================================================================================
`;