CWIS Developer Documentation

- Home
- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

Qualifier--Test.php
Go to the documentation of this file.
1 <?PHP
2
3 class Qualifier_Test extends PHPUnit\Framework\TestCase
4 {
5
6 public function testQualifier()
7 {
8 $MyQual = Qualifier::Create("Test");
9
10 $ToTest = ["Name", "NSpace", "Url"];
11 foreach ($ToTest as $Thing)
12 {
13 $TestVal = "Test ".$Thing;
14 $this->assertEquals(
15 $MyQual->$Thing($TestVal), $TestVal);
16 $this->assertEquals(
17 $MyQual->$Thing(), $TestVal);
18 }
19
20 $MyQual->Destroy();
21 }
22 }
PHP
PHP
Definition: RSSClient--Test.php:12
Qualifier_Test
Definition: Qualifier--Test.php:3
Qualifier\Create
static Create()
Initialize a new qualifier.
Definition: Qualifier.php:19
Qualifier_Test\testQualifier
testQualifier()
Definition: Qualifier--Test.php:6