5require_once(__DIR__ . 
"/../../../../libs/composer/vendor/autoload.php");
 
    6require_once(__DIR__ . 
"/../../Base.php");
 
    8use \ILIAS\UI\Component as 
C;
 
   21        return new \ILIAS\UI\Implementation\Component\Listing\Factory();
 
   29        $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Listing\\Factory", $f);
 
   30        $this->assertInstanceOf(
 
   31            "ILIAS\\UI\\Component\\Listing\\Ordered",
 
   32            $f->ordered(array(
"1"))
 
   34        $this->assertInstanceOf(
 
   35            "ILIAS\\UI\\Component\\Listing\\Unordered",
 
   36            $f->unordered(array(
"1"))
 
   38        $this->assertInstanceOf(
 
   39            "ILIAS\\UI\\Component\\Listing\\Descriptive",
 
   40            $f->descriptive(array(
"k1"=>
"c1"))
 
   48        $l = $f->ordered(array(
"1",
"2"));
 
   50        $items = array(
"1",
"2");
 
   51        $this->assertEquals(
$l->getItems(), $items);
 
   57        $l = $f->unordered(array(
"1",
"2"));
 
   59        $items = array(
"1",
"2");
 
   60        $this->assertEquals(
$l->getItems(), $items);
 
   66        $l = $f->descriptive(array(
"k1"=>
"c1",
"k2"=>
"c2"));
 
   68        $items = array(
"k1"=>
"c1",
"k2"=>
"c2");
 
   69        $this->assertEquals(
$l->getItems(), $items);
 
   75        $l = $f->ordered(array())->withItems(array(
"1",
"2"));
 
   77        $items = array(
"1",
"2");
 
   78        $this->assertEquals(
$l->getItems(), $items);
 
   84        $l = $f->unordered(array())->withItems(array(
"1",
"2"));
 
   86        $items = array(
"1",
"2");
 
   87        $this->assertEquals(
$l->getItems(), $items);
 
   93        $l = $f->descriptive(array())->withItems(array(
"k1"=>
"c1",
"k2"=>
"c2"));
 
   95        $items = array(
"k1"=>
"c1",
"k2"=>
"c2");
 
   96        $this->assertEquals(
$l->getItems(), $items);
 
  104        $l = $f->ordered(array(
"1",
"2"));
 
  113        $this->assertEquals($expected, 
$html);
 
  121            $f->descriptive(array(
"1"));
 
  122        } 
catch (InvalidArgumentException $e) {
 
  123            $this->assertEquals(get_class($e), 
"InvalidArgumentException");
 
  132            $f->descriptive(array(
"1",
"1"));
 
  133        } 
catch (InvalidArgumentException $e) {
 
  134            $this->assertEquals(get_class($e), 
"InvalidArgumentException");
 
  143        $l = $f->unordered(array(
"1",
"2"));
 
  152        $this->assertEquals($expected, 
$html);
 
  159        $l = $f->descriptive(array(
"k1"=>
"c1",
"k2"=>
"c2"));
 
  170        $this->assertEquals($expected, 
$html);
 
An exception for terminatinating execution or to throw for unit testing.
Provides common functionality for UI tests.
getDefaultRenderer(JavaScriptBinding $js_binding=null)
Test on button implementation.
test_render_ordered_listing()
test_descriptive_with_items()
test_descriptive_invalid_items3()
test_unordered_get_items()
test_descriptive_get_items()
test_implements_factory_interface()
test_render_unordered_listing()
test_unordered_with_items()
test_ordered_with_items()
test_descriptive_invalid_items2()
test_render_descriptive_listing()