getTotalTokens() public method

Get the total number of tokens in this tokensDocument
public getTotalTokens ( ) : integer
return integer
 public function testSingleHapaxFreqDist()
 {
     $freqDist = new FreqDist(array("time"));
     $this->assertTrue(count($freqDist->getHapaxes()) === 1);
     $this->assertEquals(1, $freqDist->getTotalTokens());
     $this->assertEquals(1, $freqDist->getTotalUniqueTokens());
 }