{"action":"created","issue":{"url":"https://api.github.com/repos/GeckoPackages/GeckoPHPUnit/issues/12","repository_url":"https://api.github.com/repos/GeckoPackages/GeckoPHPUnit","labels_url":"https://api.github.com/repos/GeckoPackages/GeckoPHPUnit/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/GeckoPackages/GeckoPHPUnit/issues/12/comments","events_url":"https://api.github.com/repos/GeckoPackages/GeckoPHPUnit/issues/12/events","html_url":"https://github.com/GeckoPackages/GeckoPHPUnit/issues/12","id":136315347,"number":12,"title":"[2.x] New asserts","user":{"login":"SpacePossum","id":10462973,"avatar_url":"https://avatars.githubusercontent.com/u/10462973?v=3","gravatar_id":"","url":"https://api.github.com/users/SpacePossum","html_url":"https://github.com/SpacePossum","followers_url":"https://api.github.com/users/SpacePossum/followers","following_url":"https://api.github.com/users/SpacePossum/following{/other_user}","gists_url":"https://api.github.com/users/SpacePossum/gists{/gist_id}","starred_url":"https://api.github.com/users/SpacePossum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpacePossum/subscriptions","organizations_url":"https://api.github.com/users/SpacePossum/orgs","repos_url":"https://api.github.com/users/SpacePossum/repos","events_url":"https://api.github.com/users/SpacePossum/events{/privacy}","received_events_url":"https://api.github.com/users/SpacePossum/received_events","type":"User","site_admin":false},"labels":[{"id":331123597,"url":"https://api.github.com/repos/GeckoPackages/GeckoPHPUnit/labels/feature%20request","name":"feature request","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-02-25T08:17:09Z","updated_at":"2016-11-22T10:41:25Z","closed_at":null,"body":"```php\r\n// assert\r\n\r\n// $method must be a string, $input is mixed, $message string default ''\r\n$this->assertHasMethod($method, $input, [$message]);\r\n$this->assertHasNotMethod($method, $input, [$message]);\r\n\r\n// constraint\r\nreturn is_object($other) && method_exists($input, $other);\r\n```\r\n\r\n```php\r\n// assert\r\n\r\n// $input is mixed, $message string default ''\r\n$this->assertFunctionExists($input, [$message]);\r\n\r\n// constraint\r\nreturn function_exists($other);\r\n```\r\n\r\n```php\r\n// assert\r\n\r\n// $input is mixed, $message string default ''\r\n$this->assertTraversable($input, [$message]);\r\n\r\n// constraint:\r\nreturn $other instanceof Traversable || is_array($other);\r\n```"},"comment":{"url":"https://api.github.com/repos/GeckoPackages/GeckoPHPUnit/issues/comments/262206830","html_url":"https://github.com/GeckoPackages/GeckoPHPUnit/issues/12#issuecomment-262206830","issue_url":"https://api.github.com/repos/GeckoPackages/GeckoPHPUnit/issues/12","id":262206830,"user":{"login":"SpacePossum","id":10462973,"avatar_url":"https://avatars.githubusercontent.com/u/10462973?v=3","gravatar_id":"","url":"https://api.github.com/users/SpacePossum","html_url":"https://github.com/SpacePossum","followers_url":"https://api.github.com/users/SpacePossum/followers","following_url":"https://api.github.com/users/SpacePossum/following{/other_user}","gists_url":"https://api.github.com/users/SpacePossum/gists{/gist_id}","starred_url":"https://api.github.com/users/SpacePossum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpacePossum/subscriptions","organizations_url":"https://api.github.com/users/SpacePossum/orgs","repos_url":"https://api.github.com/users/SpacePossum/repos","events_url":"https://api.github.com/users/SpacePossum/events{/privacy}","received_events_url":"https://api.github.com/users/SpacePossum/received_events","type":"User","site_admin":false},"created_at":"2016-11-22T10:41:24Z","updated_at":"2016-11-22T10:41:24Z","body":"PolyfillAssertTraits\r\n\r\n- directoryExists -> now part of PHPUni 5.6\r\n- check revisions of `phpunit/src/Framework/Constraint/IsType.php` for polyfill\r\n- check trait conflict resolving and deprecating of methods"}}
{"actor":{"display_login":"SpacePossum"}}