/** * 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)); }
/** * testVariableVariableHasExpectedEndColumn * * @param PHP_Depend_Code_ASTVariableVariable $variable * * @return void * @depends testVariableVariable */ public function testVariableVariableHasExpectedEndColumn($variable) { $this->assertEquals(12, $variable->getEndColumn()); }