/**
  * testAcceptReturnsReturnValueOfVisitMethod
  *
  * @return void
  * @covers PHP_Depend_Code_ASTNode
  * @covers PHP_Depend_Code_ASTListExpression
  * @group pdepend
  * @group pdepend::ast
  * @group unittest
  */
 public function testAcceptReturnsReturnValueOfVisitMethod()
 {
     $visitor = $this->getMock('PHP_Depend_Code_ASTVisitorI');
     $visitor->expects($this->once())->method('__call')->with($this->equalTo('visitListExpression'))->will($this->returnValue(42));
     $expr = new PHP_Depend_Code_ASTListExpression();
     self::assertEquals(42, $expr->accept($visitor));
 }
 /**
  * testListExpressionWithNestedListHasExpectedEndColumn
  *
  * @param PHP_Depend_Code_ASTListExpression $expr
  *
  * @return void
  * @since 1.0.2
  * @depends testListExpressionWithNestedList
  */
 public function testListExpressionWithNestedListHasExpectedEndColumn($expr)
 {
     $this->assertEquals(42, $expr->getEndColumn());
 }