CWIS Developer Documentation
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 }
static Create()
Initialize a new qualifier.
Definition: Qualifier.php:19