class ArithmeticsUnitTest in X Autoload 7.2
Hierarchy
- class \Drupal\xautoload\Tests\ArithmeticsUnitTest extends \Drupal\xautoload\Tests\DrupalUnitTestCase
Expanded class hierarchy of ArithmeticsUnitTest
File
- lib/
Drupal/ xautoload/ Tests/ ArithmeticsUnitTest.php, line 5
Namespace
Drupal\xautoload\TestsView source
class ArithmeticsUnitTest extends \DrupalUnitTestCase {
static function getInfo() {
return array(
'name' => 'X Autoload arithmetics test',
'description' => 'This test class is only to prove that you can use xautoload for PSR-0 tests.',
'group' => 'X Autoload',
);
}
function testAddition() {
$this
->assert(5 + 2 == 7, '5 + 2 == 7');
$this
->assert(3 + 14 + 7 == 24, '3 + 14 + 7 == 24');
}
function testMultiplication() {
$this
->assert(5 * 3 == 15, '5 * 3 == 15');
$this
->assert(0.5 * 0.1 == 0.05, '0.5 * 0.1 == 0.05');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ArithmeticsUnitTest:: |
static | function | ||
ArithmeticsUnitTest:: |
function | |||
ArithmeticsUnitTest:: |
function |