public static function make($items) { if (is_null($items)) { return new static(); } if ($items instanceof Collection) { return $items; } return new static(is_array($items) ? $items : array($items)); }
public function testMakeMethod() { $collection = Collection::make('foo'); $this->assertEquals(array('foo'), $collection->all()); }