コード例 #1
0
 function testQA()
 {
     $get = $_GET;
     unset($_GET['psu-qa']);
     $this->assertFalse(PSU::qa(null, true), 'false when psu-qa missing');
     $_GET['psu-qa'] = 'foobar';
     $this->assertEquals(PSU::qa(null, true), 'foobar', 'string result when area is not passed');
     $this->assertTrue(PSU::qa('foobar', true), 'string result when qa matches');
     $this->assertFalse(PSU::qa('baz', true), 'false when psu-qa does not match');
     $_GET = $get;
 }