PHP Class Jyxo\Time\TimeTest

See also: Jyxo\Time\Time
Author: Jaroslav Hanslík
Author: Ondřej Nešpor
Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: jyxo/php

Public Methods

Method Description
testCall ( ) Tests the __call() method.
testConstruct ( ) Tests the constructor.
testCreateFromFormat ( ) Tests the createFromFormat() method.
testFormat ( ) Tests the format() method.
testFormatAsInterval ( ) Tests the formatAsInterval() method.
testFormatExtended ( ) Tests the formatExtended() method.
testGet ( ) Tests the get() method.
testGetTimezone ( ) Tests the getTimezone() method.
testHasHappened ( ) Tests the hasHappened() method.
testMagicGet ( ) Tests the __get() method.
testMinus ( ) Tests the minus() method.
testNow ( ) Tests the now() method.
testPlus ( ) Tests the plus() method.
testSerialize ( ) Tests the serialize() function.
testSetTimeZone ( ) Tests the setTimezone() method.
testToString ( ) Tests the __toString() method and generally Unix timestamp handling.
testTruncate ( ) Tests the truncate() method.
testUnserialize ( ) Tests the serialize() function.

Protected Methods

Method Description
setUp ( ) Prepares the testing environment.

Method Details

setUp() protected method

Prepares the testing environment.
protected setUp ( )

testCall() public method

Tests the __call() method.
See also: Jyxo\Time\Time::__call()
public testCall ( )

testConstruct() public method

Tests the constructor.
See also: Jyxo\Time\Time::__construct()
public testConstruct ( )

testCreateFromFormat() public method

Tests the createFromFormat() method.
See also: Jyxo\Time\Time::createFromFormat()

testFormat() public method

Tests the format() method.
See also: Jyxo\Time\Time::format()
public testFormat ( )

testFormatAsInterval() public method

Tests the formatAsInterval() method.
See also: Jyxo\Time\Time::formatAsInterval()

testFormatExtended() public method

Tests the formatExtended() method.
See also: Jyxo\Time\Time::formatExtended()
public testFormatExtended ( )

testGet() public method

Tests the get() method.
See also: Jyxo\Time\Time::get()
public testGet ( )

testGetTimezone() public method

Tests the getTimezone() method.
See also: Jyxo\Time\Time::getTimezone()
public testGetTimezone ( )

testHasHappened() public method

Tests the hasHappened() method.
See also: Jyxo\Time\Time::hasHappened()
public testHasHappened ( )

testMagicGet() public method

Tests the __get() method.
See also: Jyxo\Time\Time::__get()
public testMagicGet ( )

testMinus() public method

Tests the minus() method.
See also: Jyxo\Time\Time::minus()
public testMinus ( )

testNow() public method

Tests the now() method.
See also: Jyxo\Time\Time::now()
public testNow ( )

testPlus() public method

Tests the plus() method.
See also: Jyxo\Time\Time::plus()
public testPlus ( )

testSerialize() public method

Tests the serialize() function.
See also: Jyxo\Time\Time::serialize()
public testSerialize ( )

testSetTimeZone() public method

Tests the setTimezone() method.
See also: Jyxo\Time\Time::setTimezone()
public testSetTimeZone ( )

testToString() public method

Tests the __toString() method and generally Unix timestamp handling.
See also: Jyxo\Time\Time::__toString()
public testToString ( )

testTruncate() public method

Tests the truncate() method.
See also: Jyxo\Time\Time::truncate()
public testTruncate ( )

testUnserialize() public method

Tests the serialize() function.
See also: Jyxo\Time\Time::unserialize()
public testUnserialize ( )