";
- $this->assertStringContainsString($expected, $result);
+ self::assertStringContainsString($expected, $result);
$parms = ['default'=>12, 'indicators'=>false, 'navigation'=>false, 'wrap'=>false, 'interval'=>false, 'data'=>false];
$result = $this->_frm->carousel('test-carousel', $slides, $parms);
$expected = "
";
- $this->assertStringContainsString($expected, $result);
+ self::assertStringContainsString($expected, $result);
}
@@ -371,7 +371,7 @@ public function testUrl()
public function testText()
{
$result = $this->_frm->renderElement('crazy"key', "crazy'value", ['type' => 'text']);
- $this->assertEquals(
+ self::assertEquals(
"
",
$result
@@ -381,7 +381,7 @@ public function testText()
public function testTextBadNormalizationSource()
{
$result = $this->_frm->renderElement('crazy"key', "crazy'value", ['type' => 'text']);
- $this->assertEquals(
+ self::assertEquals(
"
",
$result
@@ -432,21 +432,21 @@ public function testDatepicker()
$actual = $this->_frm->datepicker('date_field',$time,'type=datetime&format=MM, dd, yyyy hh:ii');
$expected = "
";
- $this->assertEquals($expected, $actual);
+ self::assertEquals($expected, $actual);
// test timezone change...
date_default_timezone_set('America/Phoenix');
$actual = $this->_frm->datepicker('date_field',$time,'type=datetime&format=MM, dd, yyyy hh:ii');
$expected = "
";
- $this->assertEquals($expected, $actual);
+ self::assertEquals($expected, $actual);
date_default_timezone_set($prevTimeZone);
}
public function testUserlist()
{
- $list = $this->_frm->userlist('name',null);
- $this->assertStringContainsString("
",$list);
+ $list = $this->_frm->userlist('name');
+ self::assertStringContainsString("
",$list);
}
/*
@@ -500,7 +500,7 @@ public function testProgressBar()
foreach($tests as $var)
{
$result = $this->_frm->progressBar('progress', $var['value']);
- $this->assertStringContainsString($var['expected'],$result);
+ self::assertStringContainsString($var['expected'],$result);
}
}
@@ -520,7 +520,7 @@ public function testCheckbox()
$result = $this->_frm->checkbox('name', 2, 2);
$expected = "
";
- $this->assertEquals($expected,$result);
+ self::assertEquals($expected,$result);
}
@@ -535,15 +535,15 @@ public function testCheckboxes()
$result = $this->_frm->checkboxes('name', $opts, array(2=>'two'));
$expected = "
";
- $this->assertEquals($expected,$result);
+ self::assertEquals($expected,$result);
$result = $this->_frm->checkboxes('name', $opts, 2, array('useKeyValues'=> 1));
$expected = "
";
- $this->assertEquals($expected,$result);
+ self::assertEquals($expected,$result);
$result = $this->_frm->checkboxes('name', $opts, 'two', array('useLabelValues'=> 1));
$expected= "
";
- $this->assertEquals($expected,$result);
+ self::assertEquals($expected,$result);
}
/*
@@ -624,7 +624,7 @@ public function testSelect()
$expected = "
";
- $this->assertEquals($expected,$actual);
+ self::assertEquals($expected,$actual);
// test group opt-array.
@@ -636,12 +636,12 @@ public function testSelect()
$actual = $this->_frm->select('name', $opt_array, $selected, $options);
$expected = "