(t *testing.T)
| 415 | } |
| 416 | |
| 417 | func TestAbstractClassMethod(t *testing.T) { |
| 418 | src := `<? abstract class Foo{ abstract public function bar(); }` |
| 419 | |
| 420 | expected := &node.Root{ |
| 421 | Position: &position.Position{ |
| 422 | StartLine: 1, |
| 423 | EndLine: 1, |
| 424 | StartPos: 3, |
| 425 | EndPos: 56, |
| 426 | }, |
| 427 | Stmts: []node.Node{ |
| 428 | &stmt.Class{ |
| 429 | Position: &position.Position{ |
| 430 | StartLine: 1, |
| 431 | EndLine: 1, |
| 432 | StartPos: 3, |
| 433 | EndPos: 56, |
| 434 | }, |
| 435 | PhpDocComment: "", |
| 436 | ClassName: &node.Identifier{ |
| 437 | Position: &position.Position{ |
| 438 | StartLine: 1, |
| 439 | EndLine: 1, |
| 440 | StartPos: 18, |
| 441 | EndPos: 21, |
| 442 | }, |
| 443 | Value: "Foo", |
| 444 | }, |
| 445 | Modifiers: []node.Node{ |
| 446 | &node.Identifier{ |
| 447 | Position: &position.Position{ |
| 448 | StartLine: 1, |
| 449 | EndLine: 1, |
| 450 | StartPos: 3, |
| 451 | EndPos: 11, |
| 452 | }, |
| 453 | Value: "abstract", |
| 454 | }, |
| 455 | }, |
| 456 | Stmts: []node.Node{ |
| 457 | &stmt.ClassMethod{ |
| 458 | Position: &position.Position{ |
| 459 | StartLine: 1, |
| 460 | EndLine: 1, |
| 461 | StartPos: 23, |
| 462 | EndPos: 54, |
| 463 | }, |
| 464 | ReturnsRef: false, |
| 465 | PhpDocComment: "", |
| 466 | MethodName: &node.Identifier{ |
| 467 | Position: &position.Position{ |
| 468 | StartLine: 1, |
| 469 | EndLine: 1, |
| 470 | StartPos: 48, |
| 471 | EndPos: 51, |
| 472 | }, |
| 473 | Value: "bar", |
| 474 | }, |
nothing calls this directly
no test coverage detected
searching dependent graphs…