Alternc  3.2
Alternc logiel libre pour l'h├ębergement
 All Data Structures Namespaces Files Functions Variables Pages
DummyTest Class Reference

This is a fake test for the purpose of showing how tests work and eventually validate the test environment works. More...

+ Inheritance diagram for DummyTest:

Public Member Functions

 testDependance ()
 This function will be executed by methods.
 testHasDependancy ($dependancyStatus)
 testDependance
 testPushAndPop ()
- Public Member Functions inherited from AlterncTest
 getConnection ()
 loadDataSet ($file_name)

Protected Member Functions

 setUp ()
 The setup is automatically run before each test.
 tearDown ()
 The tearDown is automatically run after each test.
 notTested ()
 This function will NOT be executed as its name doesn't start with test*.

Detailed Description

This is a fake test for the purpose of showing how tests work and eventually validate the test environment works.

The following methods are available : assertArrayHasKey() assertClassHasAttribute() assertClassHasStaticAttribute() assertContains() assertContainsOnly() assertContainsOnlyInstancesOf() assertCount() assertEmpty() assertEqualXMLStructure() assertEquals() assertFalse() assertFileEquals() assertFileExists() assertGreaterThan() assertGreaterThanOrEqual() assertInstanceOf() assertInternalType() assertJsonFileEqualsJsonFile() assertJsonStringEqualsJsonFile() assertJsonStringEqualsJsonString() assertLessThan() assertLessThanOrEqual() assertNull() assertObjectHasAttribute() assertRegExp() assertStringMatchesFormat() assertStringMatchesFormatFile() assertSame() assertSelectCount() assertSelectEquals() assertSelectRegExp() assertStringEndsWith() assertStringEqualsFile() assertStringStartsWith() assertTag() assertThat() assertTrue() assertXmlFileEqualsXmlFile() assertXmlStringEqualsXmlFile() assertXmlStringEqualsXmlString()

Definition at line 48 of file DummyTest.php.

Member Function Documentation

notTested ( )
protected

This function will NOT be executed as its name doesn't start with test*.

Definition at line 70 of file DummyTest.php.

{
}
setUp ( )
protected

The setup is automatically run before each test.

Definition at line 53 of file DummyTest.php.

{
}
tearDown ( )
protected

The tearDown is automatically run after each test.

Definition at line 60 of file DummyTest.php.

testDependance ( )

This function will be executed by methods.

Returns
boolean

Definition at line 79 of file DummyTest.php.

{
$this->assertTrue(TRUE);
return TRUE;
}
testHasDependancy (   $dependancyStatus)

testDependance

Parameters
bool$dependancyStatusReceived from dependance return

Definition at line 89 of file DummyTest.php.

{
$this->assertTrue($dependancyStatus);
}
testPushAndPop ( )

Definition at line 95 of file DummyTest.php.

{
$stack = array();
$this->assertEquals(0, count($stack));
array_push($stack, 'foo');
$this->assertEquals('foo', $stack[count($stack)-1]);
$this->assertEquals(1, count($stack));
$this->assertEquals('foo', array_pop($stack));
$this->assertEquals(0, count($stack));
}

The documentation for this class was generated from the following file: