MCPcopy Create free account
hub / github.com/z7zmey/php-parser / TestNotIdentical

Function TestNotIdentical

node/expr/binary/t_binary_op_test.go:1437–1510  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1435}
1436
1437func TestNotIdentical(t *testing.T) {
1438 src := `<? $a !== $b;`
1439
1440 expected := &node.Root{
1441 Position: &position.Position{
1442 StartLine: 1,
1443 EndLine: 1,
1444 StartPos: 3,
1445 EndPos: 13,
1446 },
1447 Stmts: []node.Node{
1448 &stmt.Expression{
1449 Position: &position.Position{
1450 StartLine: 1,
1451 EndLine: 1,
1452 StartPos: 3,
1453 EndPos: 13,
1454 },
1455 Expr: &binary.NotIdentical{
1456 Position: &position.Position{
1457 StartLine: 1,
1458 EndLine: 1,
1459 StartPos: 3,
1460 EndPos: 12,
1461 },
1462 Left: &expr.Variable{
1463 Position: &position.Position{
1464 StartLine: 1,
1465 EndLine: 1,
1466 StartPos: 3,
1467 EndPos: 5,
1468 },
1469 VarName: &node.Identifier{
1470 Position: &position.Position{
1471 StartLine: 1,
1472 EndLine: 1,
1473 StartPos: 3,
1474 EndPos: 5,
1475 },
1476 Value: "a",
1477 },
1478 },
1479 Right: &expr.Variable{
1480 Position: &position.Position{
1481 StartLine: 1,
1482 EndLine: 1,
1483 StartPos: 10,
1484 EndPos: 12,
1485 },
1486 VarName: &node.Identifier{
1487 Position: &position.Position{
1488 StartLine: 1,
1489 EndLine: 1,
1490 StartPos: 10,
1491 EndPos: 12,
1492 },
1493 Value: "b",
1494 },

Callers

nothing calls this directly

Calls 4

ParseMethod · 0.95
GetRootNodeMethod · 0.95
NewParserFunction · 0.92
NewParserFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…