Skip to content

Commit 259dd00

Browse files
committed
update test snapshots
1 parent bf4bca0 commit 259dd00

12 files changed

+19
-18
lines changed

tests/Results/__snapshots__/SearchResultTest__it_creates_the_object_with_correct_properties__1.yml

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ node:
66
name: myVar
77
snippet:
88
code: { 1: '1', 2: '2', 3: '3', 4: '4', 5: '5' }
9+
lineNumber: 1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-
22
location: { column: 0, endLine: 2, startLine: 2 }
33
node: { variableName: obj, value: { symbol: ., left: { value: 'hello ' }, right: { value: world }, value: '''hello '' . ''world''' }, name: obj }
4-
snippet: { code: { 1: '<?php', 2: ' $obj = ''hello '' . ''world'';' } }
4+
snippet: { code: { 1: '<?php', 2: ' $obj = ''hello '' . ''world'';' }, lineNumber: 2 }
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-
22
location: { column: 0, endLine: 2, startLine: 2 }
33
node: { variableName: obj, value: { symbol: +, left: { symbol: +, left: { value: 1 }, right: { value: 3 }, value: '1 + 3' }, right: { value: 2 }, value: '1 + 3 + 2' }, name: obj }
4-
snippet: { code: { 1: '<?php', 2: ' $obj = 1 + 3 + 2;' } }
4+
snippet: { code: { 1: '<?php', 2: ' $obj = 1 + 3 + 2;' }, lineNumber: 2 }
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
-
22
location: { column: 0, endLine: 4, startLine: 4 }
33
node: { variableName: myVar2, value: [{ key: null, value: { value: 1 } }, { key: null, value: { value: 2 } }, { key: null, value: { value: 3 } }], name: myVar2 }
4-
snippet: { code: { 1: '<?php', 2: ' $myVar = $obj->methodTwo(MyModel::find(1), $obj->methodOne(''two'', [2, 3]), [$this, ''handlerMethod'']);', 3: '', 4: ' $myVar2 = [1, 2, 3];', 5: ' $myVar2 = [...$myVar2, $myVar->someProp, 4, 5, 6];', 6: ' $myVar2 = [''one'' => 1, ''two'' => $anotherVar->someMethod()];' } }
4+
snippet: { code: { 1: '<?php', 2: ' $myVar = $obj->methodTwo(MyModel::find(1), $obj->methodOne(''two'', [2, 3]), [$this, ''handlerMethod'']);', 3: '', 4: ' $myVar2 = [1, 2, 3];', 5: ' $myVar2 = [...$myVar2, $myVar->someProp, 4, 5, 6];', 6: ' $myVar2 = [''one'' => 1, ''two'' => $anotherVar->someMethod()];' }, lineNumber: 4 }
55
-
66
location: { column: 0, endLine: 5, startLine: 5 }
77
node: { variableName: myVar2, value: [{ key: null, value: { name: myVar2 } }, { key: null, value: { objectName: myVar, propertyName: someProp } }, { key: null, value: { value: 4 } }, { key: null, value: { value: 5 } }, { key: null, value: { value: 6 } }], name: myVar2 }
8-
snippet: { code: { 1: '<?php', 2: ' $myVar = $obj->methodTwo(MyModel::find(1), $obj->methodOne(''two'', [2, 3]), [$this, ''handlerMethod'']);', 3: '', 4: ' $myVar2 = [1, 2, 3];', 5: ' $myVar2 = [...$myVar2, $myVar->someProp, 4, 5, 6];', 6: ' $myVar2 = [''one'' => 1, ''two'' => $anotherVar->someMethod()];' } }
8+
snippet: { code: { 1: '<?php', 2: ' $myVar = $obj->methodTwo(MyModel::find(1), $obj->methodOne(''two'', [2, 3]), [$this, ''handlerMethod'']);', 3: '', 4: ' $myVar2 = [1, 2, 3];', 5: ' $myVar2 = [...$myVar2, $myVar->someProp, 4, 5, 6];', 6: ' $myVar2 = [''one'' => 1, ''two'' => $anotherVar->someMethod()];' }, lineNumber: 5 }
99
-
1010
location: { column: 0, endLine: 6, startLine: 6 }
1111
node: { variableName: myVar2, value: [{ key: { value: one }, value: { value: 1 } }, { key: { value: two }, value: { variableName: anotherVar, methodName: someMethod, name: $anotherVar->someMethod, args: { } } }], name: myVar2 }
12-
snippet: { code: { 1: '<?php', 2: ' $myVar = $obj->methodTwo(MyModel::find(1), $obj->methodOne(''two'', [2, 3]), [$this, ''handlerMethod'']);', 3: '', 4: ' $myVar2 = [1, 2, 3];', 5: ' $myVar2 = [...$myVar2, $myVar->someProp, 4, 5, 6];', 6: ' $myVar2 = [''one'' => 1, ''two'' => $anotherVar->someMethod()];' } }
12+
snippet: { code: { 1: '<?php', 2: ' $myVar = $obj->methodTwo(MyModel::find(1), $obj->methodOne(''two'', [2, 3]), [$this, ''handlerMethod'']);', 3: '', 4: ' $myVar2 = [1, 2, 3];', 5: ' $myVar2 = [...$myVar2, $myVar->someProp, 4, 5, 6];', 6: ' $myVar2 = [''one'' => 1, ''two'' => $anotherVar->someMethod()];' }, lineNumber: 6 }
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-
22
location: { column: 0, endLine: 2, startLine: 2 }
33
node: { name: strtolower, args: [{ value: test }] }
4-
snippet: { code: { 1: '<?php', 2: '$myVar = strtolower(''test'');' } }
4+
snippet: { code: { 1: '<?php', 2: '$myVar = strtolower(''test'');' }, lineNumber: 2 }
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-
22
location: { column: 0, endLine: 13, startLine: 13 }
33
node: { name: MyClass }
4-
snippet: { code: { 9: ' {', 10: ' Ray::rateLimiter()->count(5);', 11: ' }', 12: '', 13: ' $obj = new MyClass();', 14: '', 15: ' $obj->withData([123])->send();', 16: '' } }
4+
snippet: { code: { 9: ' {', 10: ' Ray::rateLimiter()->count(5);', 11: ' }', 12: '', 13: ' $obj = new MyClass();', 14: '', 15: ' $obj->withData([123])->send();', 16: '' }, lineNumber: 13 }
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
-
22
location: { column: 0, endLine: 4, startLine: 4 }
33
node: { name: strtolower, args: [{ value: TEST }] }
4-
snippet: { code: { 1: '<?php', 2: ' ray(''12345'');', 3: '', 4: ' printf("%s\n", strtolower(''TEST''));', 5: '', 6: ' echo strtoupper(''test'') . PHP_EOL;', 7: '', 8: ' function test1()' } }
4+
snippet: { code: { 1: '<?php', 2: ' ray(''12345'');', 3: '', 4: ' printf("%s\n", strtolower(''TEST''));', 5: '', 6: ' echo strtoupper(''test'') . PHP_EOL;', 7: '', 8: ' function test1()' }, lineNumber: 4 }
55
-
66
location: { column: 0, endLine: 6, startLine: 6 }
77
node: { name: strtoupper, args: [{ value: test }] }
8-
snippet: { code: { 2: ' ray(''12345'');', 3: '', 4: ' printf("%s\n", strtolower(''TEST''));', 5: '', 6: ' echo strtoupper(''test'') . PHP_EOL;', 7: '', 8: ' function test1()', 9: ' {' } }
8+
snippet: { code: { 2: ' ray(''12345'');', 3: '', 4: ' printf("%s\n", strtolower(''TEST''));', 5: '', 6: ' echo strtoupper(''test'') . PHP_EOL;', 7: '', 8: ' function test1()', 9: ' {' }, lineNumber: 6 }
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
-
22
location: { column: 0, endLine: 4, startLine: 4 }
33
node: { name: printf, args: [{ value: "%s\n" }, { name: strtolower, args: [{ value: TEST }] }] }
4-
snippet: { code: { 1: '<?php', 2: ' ray(''12345'');', 3: '', 4: ' printf("%s\n", strtolower(''TEST''));', 5: '', 6: ' echo strtoupper(''test'') . PHP_EOL;', 7: '', 8: ' function test1()' } }
4+
snippet: { code: { 1: '<?php', 2: ' ray(''12345'');', 3: '', 4: ' printf("%s\n", strtolower(''TEST''));', 5: '', 6: ' echo strtoupper(''test'') . PHP_EOL;', 7: '', 8: ' function test1()' }, lineNumber: 4 }
55
-
66
location: { column: 0, endLine: 4, startLine: 4 }
77
node: { name: strtolower, args: [{ value: TEST }] }
8-
snippet: { code: { 1: '<?php', 2: ' ray(''12345'');', 3: '', 4: ' printf("%s\n", strtolower(''TEST''));', 5: '', 6: ' echo strtoupper(''test'') . PHP_EOL;', 7: '', 8: ' function test1()' } }
8+
snippet: { code: { 1: '<?php', 2: ' ray(''12345'');', 3: '', 4: ' printf("%s\n", strtolower(''TEST''));', 5: '', 6: ' echo strtoupper(''test'') . PHP_EOL;', 7: '', 8: ' function test1()' }, lineNumber: 4 }
99
-
1010
location: { column: 0, endLine: 4, startLine: 4 }
1111
node: { name: strtolower, args: [{ value: TEST }] }
12-
snippet: { code: { 1: '<?php', 2: ' ray(''12345'');', 3: '', 4: ' printf("%s\n", strtolower(''TEST''));', 5: '', 6: ' echo strtoupper(''test'') . PHP_EOL;', 7: '', 8: ' function test1()' } }
12+
snippet: { code: { 1: '<?php', 2: ' ray(''12345'');', 3: '', 4: ' printf("%s\n", strtolower(''TEST''));', 5: '', 6: ' echo strtoupper(''test'') . PHP_EOL;', 7: '', 8: ' function test1()' }, lineNumber: 4 }
1313
-
1414
location: { column: 0, endLine: 6, startLine: 6 }
1515
node: { name: strtoupper, args: [{ value: test }] }
16-
snippet: { code: { 2: ' ray(''12345'');', 3: '', 4: ' printf("%s\n", strtolower(''TEST''));', 5: '', 6: ' echo strtoupper(''test'') . PHP_EOL;', 7: '', 8: ' function test1()', 9: ' {' } }
16+
snippet: { code: { 2: ' ray(''12345'');', 3: '', 4: ' printf("%s\n", strtolower(''TEST''));', 5: '', 6: ' echo strtoupper(''test'') . PHP_EOL;', 7: '', 8: ' function test1()', 9: ' {' }, lineNumber: 6 }
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-
22
location: { column: 0, endLine: 10, startLine: 10 }
33
node: { className: Ray, methodName: rateLimiter, name: 'Ray::rateLimiter', args: { } }
4-
snippet: { code: { 6: ' echo strtoupper(''test'') . PHP_EOL;', 7: '', 8: ' function test1()', 9: ' {', 10: ' Ray::rateLimiter()->count(5);', 11: ' }', 12: '', 13: ' $obj = new MyClass();' } }
4+
snippet: { code: { 6: ' echo strtoupper(''test'') . PHP_EOL;', 7: '', 8: ' function test1()', 9: ' {', 10: ' Ray::rateLimiter()->count(5);', 11: ' }', 12: '', 13: ' $obj = new MyClass();' }, lineNumber: 10 }
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-
22
location: { column: 0, endLine: 18, startLine: 18 }
33
node: { className: AnotherClass, methodName: enabled, name: 'AnotherClass::enabled', args: { } }
4-
snippet: { code: { 11: ' }', 12: '', 13: ' $obj = new MyClass();', 14: '', 15: ' $obj->withData([123])->send();', 16: '', 17: ' $isDisabled = AnotherClass::disabled();', 18: ' $isEnabled = AnotherClass::enabled();' } }
4+
snippet: { code: { 11: ' }', 12: '', 13: ' $obj = new MyClass();', 14: '', 15: ' $obj->withData([123])->send();', 16: '', 17: ' $isDisabled = AnotherClass::disabled();', 18: ' $isEnabled = AnotherClass::enabled();' }, lineNumber: 18 }
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
-
22
location: { column: 0, endLine: 13, startLine: 13 }
33
node: { variableName: obj, value: { subNodeNames: [class, args], type: Expr_New, line: 13, startLine: 13, endLine: 13, startTokenPos: -1, endTokenPos: -1, startFilePos: -1, endFilePos: -1, comments: { }, docComment: null, attributes: { startLine: 13, endLine: 13 }, class: { subNodeNames: [parts], first: MyClass, last: MyClass, unqualified: true, qualified: false, fullyQualified: false, relative: false, specialClassName: false, type: Name, line: 13, startLine: 13, endLine: 13, startTokenPos: -1, endTokenPos: -1, startFilePos: -1, endFilePos: -1, comments: { }, docComment: null, attributes: { startLine: 13, endLine: 13 }, parts: [MyClass] }, args: { } }, name: obj }
4-
snippet: { code: { 9: ' {', 10: ' Ray::rateLimiter()->count(5);', 11: ' }', 12: '', 13: ' $obj = new MyClass();', 14: '', 15: ' $obj->withData([123])->send();', 16: '' } }
4+
snippet: { code: { 9: ' {', 10: ' Ray::rateLimiter()->count(5);', 11: ' }', 12: '', 13: ' $obj = new MyClass();', 14: '', 15: ' $obj->withData([123])->send();', 16: '' }, lineNumber: 13 }
55
-
66
location: { column: 0, endLine: 13, startLine: 13 }
77
node: { name: MyClass }
8-
snippet: { code: { 9: ' {', 10: ' Ray::rateLimiter()->count(5);', 11: ' }', 12: '', 13: ' $obj = new MyClass();', 14: '', 15: ' $obj->withData([123])->send();', 16: '' } }
8+
snippet: { code: { 9: ' {', 10: ' Ray::rateLimiter()->count(5);', 11: ' }', 12: '', 13: ' $obj = new MyClass();', 14: '', 15: ' $obj->withData([123])->send();', 16: '' }, lineNumber: 13 }
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-
22
location: { column: 0, endLine: 1, startLine: 1 }
33
node: { variableName: obj, methodName: methodTwo, name: $obj->methodTwo, args: [{ className: MyModel, methodName: find, name: 'MyModel::find', args: [{ value: 1 }] }, { variableName: obj, methodName: methodOne, name: $obj->methodOne, args: [{ value: two }, { value: [{ key: null, value: { value: 2 } }, { key: null, value: { value: 3 } }] }] }, { value: [{ key: null, value: { name: this } }, { key: null, value: { value: handlerMethod } }] }] }
4-
snippet: { code: { 1: '<?php $obj->methodTwo(MyModel::find(1), $obj->methodOne(''two'', [2, 3]), [$this, ''handlerMethod'']);' } }
4+
snippet: { code: { 1: '<?php $obj->methodTwo(MyModel::find(1), $obj->methodOne(''two'', [2, 3]), [$this, ''handlerMethod'']);' }, lineNumber: 1 }

0 commit comments

Comments
 (0)