Ejemplo n.º 1
0
 /**
  * testAcceptReturnsReturnValueOfVisitMethod
  *
  * @return void
  * @covers PHP_Depend_Code_ASTNode
  * @covers PHP_Depend_Code_ASTVariableVariable
  * @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('visitVariableVariable'))->will($this->returnValue(42));
     $expr = new PHP_Depend_Code_ASTVariableVariable();
     self::assertEquals(42, $expr->accept($visitor));
 }
Ejemplo n.º 2
0
 /**
  * testVariableVariableHasExpectedEndColumn
  *
  * @param PHP_Depend_Code_ASTVariableVariable $variable
  *
  * @return void
  * @depends testVariableVariable
  */
 public function testVariableVariableHasExpectedEndColumn($variable)
 {
     $this->assertEquals(12, $variable->getEndColumn());
 }