PHP Class MathPHP\Sequence\BasicTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: markrogoyski/math-php

Public Methods

Method Description
dataProviderForArithmeticProgression ( )
dataProviderForCubicNumber ( )
dataProviderForFactorial ( )
dataProviderForGeometricProgression ( )
dataProviderForPowersOfTen ( )
dataProviderForPowersOfTwo ( )
dataProviderForSquareNumber ( )
testArithmeticProgression ( integer $n, integer $d, integer $a₁, array $progression )
testCubicNumber ( integer $n, array $cubes )
testFactorial ( integer $n, array $powers )
testGeometricProgression ( integer $n, $a, $r, array $progression )
testGeometricProgressionExceptionRIsZero ( )
testPowersOfTen ( integer $n, array $powers )
testPowersOfTwo ( integer $n, array $powers )
testSquareNumber ( integer $n, array $squares )

Method Details

dataProviderForArithmeticProgression() public method

dataProviderForCubicNumber() public method

dataProviderForFactorial() public method

dataProviderForGeometricProgression() public method

dataProviderForPowersOfTen() public method

dataProviderForPowersOfTwo() public method

dataProviderForSquareNumber() public method

testArithmeticProgression() public method

public testArithmeticProgression ( integer $n, integer $d, integer $a₁, array $progression )
$n integer
$d integer
$a₁ integer
$progression array

testCubicNumber() public method

public testCubicNumber ( integer $n, array $cubes )
$n integer
$cubes array

testFactorial() public method

public testFactorial ( integer $n, array $powers )
$n integer
$powers array

testGeometricProgression() public method

public testGeometricProgression ( integer $n, $a, $r, array $progression )
$n integer
$progression array

testGeometricProgressionExceptionRIsZero() public method

testPowersOfTen() public method

public testPowersOfTen ( integer $n, array $powers )
$n integer
$powers array

testPowersOfTwo() public method

public testPowersOfTwo ( integer $n, array $powers )
$n integer
$powers array

testSquareNumber() public method

public testSquareNumber ( integer $n, array $squares )
$n integer
$squares array