Example #1
0
 function test_collection_can_be_created_statically_with_children()
 {
     $children_1 = Collection::bar();
     $children_2 = Collection::baz();
     $coll = Collection::foo($children_1, $children_2);
     $this->assertInstanceOf('Respect\\Data\\Collections\\Collection', $coll);
     $this->assertTrue($coll->hasChildren());
     $this->assertEquals(2, count($coll->getChildren()));
 }