{"action":"created","issue":{"url":"https://api.github.com/repos/php-mock/php-mock-phpunit/issues/17","repository_url":"https://api.github.com/repos/php-mock/php-mock-phpunit","labels_url":"https://api.github.com/repos/php-mock/php-mock-phpunit/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/php-mock/php-mock-phpunit/issues/17/comments","events_url":"https://api.github.com/repos/php-mock/php-mock-phpunit/issues/17/events","html_url":"https://github.com/php-mock/php-mock-phpunit/issues/17","id":266234072,"number":17,"title":"sample test doesn't work","user":{"login":"bartonhammond","id":1282364,"avatar_url":"https://avatars3.githubusercontent.com/u/1282364?v=4","gravatar_id":"","url":"https://api.github.com/users/bartonhammond","html_url":"https://github.com/bartonhammond","followers_url":"https://api.github.com/users/bartonhammond/followers","following_url":"https://api.github.com/users/bartonhammond/following{/other_user}","gists_url":"https://api.github.com/users/bartonhammond/gists{/gist_id}","starred_url":"https://api.github.com/users/bartonhammond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartonhammond/subscriptions","organizations_url":"https://api.github.com/users/bartonhammond/orgs","repos_url":"https://api.github.com/users/bartonhammond/repos","events_url":"https://api.github.com/users/bartonhammond/events{/privacy}","received_events_url":"https://api.github.com/users/bartonhammond/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-17T18:38:20Z","updated_at":"2017-10-17T19:19:08Z","closed_at":"2017-10-17T19:19:08Z","author_association":"NONE","body":"here is test:\r\n\r\n```\r\n<?php\r\nclass UtilTest extends \\PHPUnit\\Framework\\TestCase {\r\n    use \\phpmock\\phpunit\\PHPMock;\r\n    public function testTime()\r\n    {\r\n        $time = $this->getFunctionMock(__NAMESPACE__, \"time\");\r\n        $time->expects($this->once())->willReturn(3);\r\n        $this->assertEquals(3, time());\r\n    }\r\n}\r\n```\r\nand console output:\r\n\r\n```\r\n$ vendor/bin/phpunit \r\nPHPUnit 5.7.23 by Sebastian Bergmann and contributors.\r\n\r\nF                                                                   1 / 1 (100%)\r\n\r\nTime: 48 ms, Memory: 5.25MB\r\n\r\nThere was 1 failure:\r\n\r\n1) UtilTest::testTime\r\nFailed asserting that 1508265379 matches expected 3.\r\n\r\n/Users/barton/projects/wisnet/wisnetds/Tests/utilities/UtilTest.php:13\r\n\r\nFAILURES!\r\nTests: 1, Assertions: 1, Failures: 1.\r\n\r\n```\r\n\r\nAnd php version:\r\n```\r\n~/projects/wisnet/wisnetds (unittest)$ php -v\r\nPHP 5.6.31 (cli) (built: Aug  7 2017 20:28:16) \r\nCopyright (c) 1997-2016 The PHP Group\r\nZend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies\r\n    with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans\r\n~/projects/wisnet/wisnetds (unittest)$ \r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/php-mock/php-mock-phpunit/issues/comments/337340683","html_url":"https://github.com/php-mock/php-mock-phpunit/issues/17#issuecomment-337340683","issue_url":"https://api.github.com/repos/php-mock/php-mock-phpunit/issues/17","id":337340683,"user":{"login":"malkusch","id":1623984,"avatar_url":"https://avatars3.githubusercontent.com/u/1623984?v=4","gravatar_id":"","url":"https://api.github.com/users/malkusch","html_url":"https://github.com/malkusch","followers_url":"https://api.github.com/users/malkusch/followers","following_url":"https://api.github.com/users/malkusch/following{/other_user}","gists_url":"https://api.github.com/users/malkusch/gists{/gist_id}","starred_url":"https://api.github.com/users/malkusch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malkusch/subscriptions","organizations_url":"https://api.github.com/users/malkusch/orgs","repos_url":"https://api.github.com/users/malkusch/repos","events_url":"https://api.github.com/users/malkusch/events{/privacy}","received_events_url":"https://api.github.com/users/malkusch/received_events","type":"User","site_admin":false},"created_at":"2017-10-17T19:19:08Z","updated_at":"2017-10-17T19:19:08Z","author_association":"CONTRIBUTOR","body":"Put `UtilTest` into a namespace."}}
{"actor":{"display_login":"malkusch"}}