mult() public method

Multiplies the NumArray with a factor
Since: 1.0.4
public mult ( mixed $factor )
$factor mixed factor
コード例 #1
0
ファイル: MultTest.php プロジェクト: buaa556/gongkesheng
 /**
  * Tests if cache will be flushed after use of NumArray::mult
  */
 public function testMultCache()
 {
     $numArray = new NumArray(5);
     $numArray->setCache('key', 6);
     $numArray->mult(4);
     $this->assertFalse($numArray->inCache('key'));
 }