{"action":"created","issue":{"url":"https://api.github.com/repos/phpba/phpba.github.io/issues/39","repository_url":"https://api.github.com/repos/phpba/phpba.github.io","labels_url":"https://api.github.com/repos/phpba/phpba.github.io/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/phpba/phpba.github.io/issues/39/comments","events_url":"https://api.github.com/repos/phpba/phpba.github.io/issues/39/events","html_url":"https://github.com/phpba/phpba.github.io/pull/39","id":135675984,"number":39,"title":"Post sobre Traits","user":{"login":"mlalbuquerque","id":467958,"avatar_url":"https://avatars.githubusercontent.com/u/467958?v=3","gravatar_id":"","url":"https://api.github.com/users/mlalbuquerque","html_url":"https://github.com/mlalbuquerque","followers_url":"https://api.github.com/users/mlalbuquerque/followers","following_url":"https://api.github.com/users/mlalbuquerque/following{/other_user}","gists_url":"https://api.github.com/users/mlalbuquerque/gists{/gist_id}","starred_url":"https://api.github.com/users/mlalbuquerque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlalbuquerque/subscriptions","organizations_url":"https://api.github.com/users/mlalbuquerque/orgs","repos_url":"https://api.github.com/users/mlalbuquerque/repos","events_url":"https://api.github.com/users/mlalbuquerque/events{/privacy}","received_events_url":"https://api.github.com/users/mlalbuquerque/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-23T08:59:41Z","updated_at":"2016-02-24T00:14:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/phpba/phpba.github.io/pulls/39","html_url":"https://github.com/phpba/phpba.github.io/pull/39","diff_url":"https://github.com/phpba/phpba.github.io/pull/39.diff","patch_url":"https://github.com/phpba/phpba.github.io/pull/39.patch"},"body":"Mais um mini post, dessa vez sobre traits e como usei."},"comment":{"url":"https://api.github.com/repos/phpba/phpba.github.io/issues/comments/187980548","html_url":"https://github.com/phpba/phpba.github.io/pull/39#issuecomment-187980548","issue_url":"https://api.github.com/repos/phpba/phpba.github.io/issues/39","id":187980548,"user":{"login":"mlalbuquerque","id":467958,"avatar_url":"https://avatars.githubusercontent.com/u/467958?v=3","gravatar_id":"","url":"https://api.github.com/users/mlalbuquerque","html_url":"https://github.com/mlalbuquerque","followers_url":"https://api.github.com/users/mlalbuquerque/followers","following_url":"https://api.github.com/users/mlalbuquerque/following{/other_user}","gists_url":"https://api.github.com/users/mlalbuquerque/gists{/gist_id}","starred_url":"https://api.github.com/users/mlalbuquerque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlalbuquerque/subscriptions","organizations_url":"https://api.github.com/users/mlalbuquerque/orgs","repos_url":"https://api.github.com/users/mlalbuquerque/repos","events_url":"https://api.github.com/users/mlalbuquerque/events{/privacy}","received_events_url":"https://api.github.com/users/mlalbuquerque/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T00:14:25Z","updated_at":"2016-02-24T00:14:25Z","body":"Boa... Vou colocar que mostrarei como fazer isso no próximo post. Massa\nmesmo\n\nEm Ter, 23 de fev de 2016 20:15, Jonata Weber <notifications@github.com>\nescreveu:\n\n> Massa! Uma dúvida da galera tb é como testar uma Trait, já que não pode\n> ser instanciada ou chamada de maneira estática. O único jeito que encontrei\n> foi \"mockando\" o objeto com PHPUnit, conforme a documentação\n> <https://phpunit.de/manual/current/en/test-doubles.html#test-doubles.mocking-traits-and-abstract-classes>\n> deles. Ainda não vi essa parte de testes com Traits em artigos brasileiros,\n> fica aí como sugestão, quem sabe nos próximos.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/phpba/phpba.github.io/pull/39#issuecomment-187958850>.\n>\n-- \n\nMarcio Albuquerque\n==================\nAnalista de Infra SERPRO\nCelular - 071 98880 4994\n"}}