throws Exception {
ASTNode node = getAstNode(matchingStr);
ASTNode notMatchingNode = getAstNode(notMatchingStr);
Assert.assertTrue(node.subtreeMatch(new PHPASTMatcher(), node));
Assert.assertFalse(node.subtreeMatch(new PHPASTMatcher(),
notMatchingNode));
Assert.assertFalse(node.subtreeMatch(new PHPASTMatcher(), new Object()));
Assert.assertFalse(node.subtreeMatch(new PHPASTMatcher(), null));
}