public function test_collection_supports_callables() { $col = new Collection('callable'); $col = $col->add(function () { }); $col = $col->add([$col, 'add']); $col = $col->add(new Invoker()); $this->assertEquals(3, $col->count()); }