Пример #1
0
 /**
  * @covers Xoops\Form\DateSelect::render
  */
 public function testRender()
 {
     $value = $this->object->render();
     $this->assertTrue(is_string($value));
 }
Пример #2
0
 /**
  * @covers Xoops\Form\DateSelect::__construct
  * @covers Xoops\Form\DateSelect::render
  */
 public function test__construct()
 {
     $oldWay = new DateSelect('mycaption', 'myname');
     $newWay = new DateSelect(['caption' => 'mycaption', 'type' => 'text', 'name' => 'myname']);
     $this->assertEquals($oldWay->render(), $newWay->render());
 }