{"action":"created","issue":{"url":"https://api.github.com/repos/kenjis/ci-phpunit-test/issues/130","repository_url":"https://api.github.com/repos/kenjis/ci-phpunit-test","labels_url":"https://api.github.com/repos/kenjis/ci-phpunit-test/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/kenjis/ci-phpunit-test/issues/130/comments","events_url":"https://api.github.com/repos/kenjis/ci-phpunit-test/issues/130/events","html_url":"https://github.com/kenjis/ci-phpunit-test/pull/130","id":165007713,"number":130,"title":"change getDouble add constructor args","user":{"login":"ytetsuro","id":17704892,"avatar_url":"https://avatars.githubusercontent.com/u/17704892?v=3","gravatar_id":"","url":"https://api.github.com/users/ytetsuro","html_url":"https://github.com/ytetsuro","followers_url":"https://api.github.com/users/ytetsuro/followers","following_url":"https://api.github.com/users/ytetsuro/following{/other_user}","gists_url":"https://api.github.com/users/ytetsuro/gists{/gist_id}","starred_url":"https://api.github.com/users/ytetsuro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ytetsuro/subscriptions","organizations_url":"https://api.github.com/users/ytetsuro/orgs","repos_url":"https://api.github.com/users/ytetsuro/repos","events_url":"https://api.github.com/users/ytetsuro/events{/privacy}","received_events_url":"https://api.github.com/users/ytetsuro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-12T07:03:02Z","updated_at":"2016-07-12T07:06:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kenjis/ci-phpunit-test/pulls/130","html_url":"https://github.com/kenjis/ci-phpunit-test/pull/130","diff_url":"https://github.com/kenjis/ci-phpunit-test/pull/130.diff","patch_url":"https://github.com/kenjis/ci-phpunit-test/pull/130.patch"},"body":"If i want to create a \" Mock \" on \"SplFileObject\" this feature was thought that want .\r\n\r\n```php\r\n<?php\r\n\r\npublic function test_parse_csv()\r\n{\r\n    // disable constructor\r\n    $spl_mock = $this->getDobule('SplFileObject', [\r\n         'current' => ['foo', 'bar'],\r\n         'next'      => NULL\r\n    ]);\r\n}\r\n```\r\n\r\n*LogicException: The parent constructor was not called: the object is in an invalid state*\r\n\r\n================\r\n\r\n```php\r\n<?php\r\n\r\npublic function test_parse_csv()\r\n{\r\n    // enable constructor\r\n    $spl_mock = $this->getDobule('SplFileObject', [\r\n         'current' => ['foo', 'bar'],\r\n         'next'      => NULL\r\n    ], true);\r\n}\r\n```\r\n\r\n*RuntimeException: SplFileObject::__construct() expects at least 1 parameter, 0 given*\r\n\r\n================\r\n\r\nTherefore , I want to describe as follows .\r\n\r\n\r\n```php\r\n<?php\r\n\r\npublic function test_parse_csv()\r\n{\r\n    // set constructor args\r\n    $spl_mock = $this->getDobule('SplFileObject', [\r\n         'current' => ['foo', 'bar'],\r\n         'next'      => NULL\r\n    ], ['php://memory']);\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/kenjis/ci-phpunit-test/issues/comments/231955412","html_url":"https://github.com/kenjis/ci-phpunit-test/pull/130#issuecomment-231955412","issue_url":"https://api.github.com/repos/kenjis/ci-phpunit-test/issues/130","id":231955412,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T07:06:34Z","updated_at":"2016-07-12T07:06:34Z","body":"\n[![Coverage Status](https://coveralls.io/builds/6963758/badge)](https://coveralls.io/builds/6963758)\n\nCoverage decreased (-0.08%) to 72.526% when pulling **9bc3dbcd8095ad837ce68e1e6fc79e9f5a60b4f1 on ytetsuro:patch-1** into **b1ea0eb93945ef03be4c8267f194c9983b1bef81 on kenjis:master**.\n"}}
{"actor":{"display_login":"coveralls"}}