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

Function TestNotEqual

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

Source from the content-addressed store, hash-verified

1360}
1361
1362func TestNotEqual(t *testing.T) {
1363 src := `<? $a != $b;`
1364
1365 expected := &node.Root{
1366 Position: &position.Position{
1367 StartLine: 1,
1368 EndLine: 1,
1369 StartPos: 3,
1370 EndPos: 12,
1371 },
1372 Stmts: []node.Node{
1373 &stmt.Expression{
1374 Position: &position.Position{
1375 StartLine: 1,
1376 EndLine: 1,
1377 StartPos: 3,
1378 EndPos: 12,
1379 },
1380 Expr: &binary.NotEqual{
1381 Position: &position.Position{
1382 StartLine: 1,
1383 EndLine: 1,
1384 StartPos: 3,
1385 EndPos: 11,
1386 },
1387 Left: &expr.Variable{
1388 Position: &position.Position{
1389 StartLine: 1,
1390 EndLine: 1,
1391 StartPos: 3,
1392 EndPos: 5,
1393 },
1394 VarName: &node.Identifier{
1395 Position: &position.Position{
1396 StartLine: 1,
1397 EndLine: 1,
1398 StartPos: 3,
1399 EndPos: 5,
1400 },
1401 Value: "a",
1402 },
1403 },
1404 Right: &expr.Variable{
1405 Position: &position.Position{
1406 StartLine: 1,
1407 EndLine: 1,
1408 StartPos: 9,
1409 EndPos: 11,
1410 },
1411 VarName: &node.Identifier{
1412 Position: &position.Position{
1413 StartLine: 1,
1414 EndLine: 1,
1415 StartPos: 9,
1416 EndPos: 11,
1417 },
1418 Value: "b",
1419 },

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…