public function casting_invokeable() { $type = new FunctionType([Type::$VAR], Type::$VAR); $inv = new FunctionTypeInvokeable(); $this->assertInstanceOf('Closure', $type->cast($inv)); }