Пример #1
0
 /**
  * testThrowStatementHasExpectedEndColumn
  *
  * @param PHP_Depend_Code_ASTThrowStatement $stmt
  *
  * @return void
  * @depends testThrowStatement
  */
 public function testThrowStatementHasExpectedEndColumn($stmt)
 {
     $this->assertSame(38, $stmt->getEndColumn());
 }
Пример #2
0
 /**
  * testAcceptReturnsReturnValueOfVisitMethod
  *
  * @return void
  * @covers PHP_Depend_Code_ASTNode
  * @covers PHP_Depend_Code_ASTThrowStatement
  * @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('visitThrowStatement'))->will($this->returnValue(42));
     $stmt = new PHP_Depend_Code_ASTThrowStatement();
     self::assertEquals(42, $stmt->accept($visitor));
 }