Beispiel #1
0
 /**
  * testGetEndLineReturnsEndLineOfLastToken
  *
  * @return void
  * @group pdepend
  * @group pdepend::code
  * @group unittest
  */
 public function testGetEndLineReturnsEndLineOfLastToken()
 {
     $cache = $this->getMock('PHP_Depend_Util_Cache_Driver');
     $cache->expects($this->once())->method('type')->will($this->returnValue($cache));
     $interface = new PHP_Depend_Code_Interface(__CLASS__);
     $interface->setCache($cache)->setTokens(array(new PHP_Depend_Token(1, 'a', 23, 42, 0, 0), new PHP_Depend_Token(2, 'b', 17, 32, 0, 0)));
     self::assertEquals(32, $interface->getEndLine());
 }