div() public method

Divides the NumArray with a divisor
Since: 1.0.4
public div ( mixed $divisor )
$divisor mixed divisor
Esempio n. 1
0
 /**
  * Tests if cache will be flushed after use of NumArray::div
  */
 public function testDivCache()
 {
     $numArray = new NumArray(5);
     $numArray->setCache('key', 6);
     $numArray->div(4);
     $this->assertFalse($numArray->inCache('key'));
 }