PHP Class MathPHP\Sequence\BasicTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: markrogoyski/math-php

Méthodes publiques

Méthode 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 méthode

dataProviderForCubicNumber() public méthode

dataProviderForFactorial() public méthode

dataProviderForGeometricProgression() public méthode

dataProviderForPowersOfTen() public méthode

dataProviderForPowersOfTwo() public méthode

dataProviderForSquareNumber() public méthode

testArithmeticProgression() public méthode

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

testCubicNumber() public méthode

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

testFactorial() public méthode

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

testGeometricProgression() public méthode

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

testGeometricProgressionExceptionRIsZero() public méthode

testPowersOfTen() public méthode

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

testPowersOfTwo() public méthode

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

testSquareNumber() public méthode

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