/** * Get the services provided by the provider. * * @return array */ public function provides() { $list = []; // Carregar lista de provider dos comandos $list = array_merge($list, Str::format(array_keys($this->commands), 'command.%s')); // Carregar lista de providers $list = array_merge($list, array_keys($this->providers)); return $list; }
public function testFormat() { $str = Str::format('netforce', 'nome: %s'); $this->assertEquals('nome: netforce', $str); }