PHPUnit2
[ class tree: PHPUnit2 ] [ index: PHPUnit2 ] [ all elements ]

Class: MoneyTest

Source Location: /PHPUnit2-3.0.0alpha11/Samples/Money/MoneyTest.php

Class Overview

PHPUnit2_Framework_Assert
   |
   --PHPUnit2_Framework_TestCase
      |
      --MoneyTest

Tests for the Money and MoneyBag classes.


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2002-2006 Sebastian Bergmann <sb@sebastian-bergmann.de>

Methods


Inherited Variables

Inherited Methods

Class: PHPUnit2_Framework_TestCase

PHPUnit2_Framework_TestCase::at()
PHPUnit2_Framework_TestCase::atLeastOnce()
PHPUnit2_Framework_TestCase::count()
Counts the number of test cases executed by run(TestResult result).
PHPUnit2_Framework_TestCase::createResult()
Creates a default TestResult object.
PHPUnit2_Framework_TestCase::exactly()
PHPUnit2_Framework_TestCase::getMock()
Returns a mock object for the specified class.
PHPUnit2_Framework_TestCase::getName()
Gets the name of a TestCase.
PHPUnit2_Framework_TestCase::iniSet()
This method is a wrapper for the ini_set() function that automatically resets the modified php.ini setting to its original value after the test is run.
PHPUnit2_Framework_TestCase::never()
PHPUnit2_Framework_TestCase::once()
PHPUnit2_Framework_TestCase::onConsecutiveCalls()
PHPUnit2_Framework_TestCase::returnValue()
PHPUnit2_Framework_TestCase::run()
Runs the test case and collects the results in a TestResult object.
PHPUnit2_Framework_TestCase::runBare()
Runs the bare test sequence.
PHPUnit2_Framework_TestCase::runTest()
Override to run the test and assert its state.
PHPUnit2_Framework_TestCase::setName()
Sets the name of a TestCase.
PHPUnit2_Framework_TestCase::setUp()
Sets up the fixture, for example, open a network connection.
PHPUnit2_Framework_TestCase::tearDown()
Tears down the fixture, for example, close a network connection.
PHPUnit2_Framework_TestCase::toString()
Returns a string representation of the test case.
PHPUnit2_Framework_TestCase::__construct()
Constructs a test case with the given name.

Class: PHPUnit2_Framework_Assert

PHPUnit2_Framework_Assert::assertArrayHasKey()
Asserts that an array has a specified key.
PHPUnit2_Framework_Assert::__construct()
Protect constructor since it is a static only class.

Class Details

[line 66]
Tests for the Money and MoneyBag classes.


[ Top ]


Method Detail

setUp   [line 76]

void setUp( )


Overrides PHPUnit2_Framework_TestCase::setUp() (Sets up the fixture, for example, open a network connection.)
[ Top ]

testBagMultiply   [line 87]

void testBagMultiply( )


[ Top ]

testBagNegate   [line 97]

void testBagNegate( )


[ Top ]

testBagNotEquals   [line 138]

void testBagNotEquals( )


[ Top ]

testBagSimpleAdd   [line 104]

void testBagSimpleAdd( )


[ Top ]

testBagSubtract   [line 111]

void testBagSubtract( )


[ Top ]

testBagSumAdd   [line 118]

void testBagSumAdd( )


[ Top ]

testIsZero   [line 125]

void testIsZero( )


[ Top ]

testMixedSimpleAdd   [line 131]

void testMixedSimpleAdd( )


[ Top ]

testMoneyBagEquals   [line 146]

void testMoneyBagEquals( )


[ Top ]

testMoneyBagHash   [line 158]

void testMoneyBagHash( )


[ Top ]

testMoneyEquals   [line 164]

void testMoneyEquals( )


[ Top ]

testMoneyHash   [line 174]

void testMoneyHash( )


[ Top ]

testNormalize2   [line 187]

void testNormalize2( )


[ Top ]

testNormalize3   [line 194]

void testNormalize3( )


[ Top ]

testNormalize4   [line 202]

void testNormalize4( )


[ Top ]

testPrint   [line 210]

void testPrint( )


[ Top ]

testSimpleAdd   [line 215]

void testSimpleAdd( )


[ Top ]

testSimpleBagAdd   [line 222]

void testSimpleBagAdd( )


[ Top ]

testSimpleMultiply   [line 229]

void testSimpleMultiply( )


[ Top ]

testSimpleNegate   [line 236]

void testSimpleNegate( )


[ Top ]

testSimpleSubtract   [line 243]

void testSimpleSubtract( )


[ Top ]

testSimplify   [line 181]

void testSimplify( )


[ Top ]


Documentation generated on Tue, 12 Sep 2006 09:37:22 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.