{"action":"created","issue":{"url":"https://api.github.com/repos/turanct/omikron/issues/4","labels_url":"https://api.github.com/repos/turanct/omikron/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/turanct/omikron/issues/4/comments","events_url":"https://api.github.com/repos/turanct/omikron/issues/4/events","html_url":"https://github.com/turanct/omikron/issues/4","id":103942666,"number":4,"title":"omikron is not too happy about exceptions","user":{"login":"mathiasverraes","id":489516,"avatar_url":"https://avatars.githubusercontent.com/u/489516?v=3","gravatar_id":"","url":"https://api.github.com/users/mathiasverraes","html_url":"https://github.com/mathiasverraes","followers_url":"https://api.github.com/users/mathiasverraes/followers","following_url":"https://api.github.com/users/mathiasverraes/following{/other_user}","gists_url":"https://api.github.com/users/mathiasverraes/gists{/gist_id}","starred_url":"https://api.github.com/users/mathiasverraes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathiasverraes/subscriptions","organizations_url":"https://api.github.com/users/mathiasverraes/orgs","repos_url":"https://api.github.com/users/mathiasverraes/repos","events_url":"https://api.github.com/users/mathiasverraes/events{/privacy}","received_events_url":"https://api.github.com/users/mathiasverraes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-30T19:59:19Z","updated_at":"2015-08-30T20:00:57Z","closed_at":null,"body":"``` php\r\n<?php\r\nfunction bad() { throw new \\Exception(\"Something\");}\r\nreturn\r\nwithin(\"X\",\r\n    describe(\"Y\",\r\n        it(\"Z\", function(){ return\r\n            expect(\r\n                bad(),\r\n            toBe(\r\n                \"ok\"\r\n            ));\r\n        })\r\n    )\r\n);\r\n```\r\n\r\noutput:\r\n\r\n```\r\nPHP Warning:  array_map(): An error occurred while invoking the map callback in vendor/turanct/omikron/src/input.php on line 40\r\nPHP Stack trace:\r\nPHP   1. {main}() vendor/turanct/omikron/bin/omikron:0\r\nPHP   2. getTopics() vendor/turanct/omikron/bin/omikron:30\r\nPHP   3. array_map() vendor/turanct/omikron/src/input.php:40\r\n\r\nWarning: array_map(): An error occurred while invoking the map callback in vendor/turanct/omikron/src/input.php on line 40\r\n\r\nCall Stack:\r\n    0.0002     235352   1. {main}() vendor/turanct/omikron/bin/omikron:0\r\n    0.0015     367312   2. getTopics() vendor/turanct/omikron/bin/omikron:30\r\n    0.0016     368144   3. array_map() vendor/turanct/omikron/src/input.php:40\r\n\r\nPHP Fatal error:  Uncaught exception 'Exception' with message 'Something' in topics/topic-Day.php:3\r\nStack trace:\r\n#0 topics/topic-Day.php(9): bad()\r\n#1 vendor/turanct/omikron/src/omikron.php(50): {closure}()\r\n#2 topics/topic-Day.php(13): it('Z', Object(Closure))\r\n#3 vendor/turanct/omikron/src/input.php(37): include('/Users/mathias/...')\r\n#4 [internal function]: {closure}('/Users/mathias/...')\r\n#5 vendor/turanct/omikron/src/input.php(40): array_map(Object(Closure), Array)\r\n#6 vendor/turanct/omikron/bin/omikron(30): getTopics(Array)\r\n#7 {main}\r\n  thrown in topics/topic-Day.php on line 3\r\n\r\nFatal error: Uncaught exception 'Exception' with message 'Something' in topics/topic-Day.php on line 3\r\n\r\nException: Something in topics/topic-Day.php on line 3\r\n\r\nCall Stack:\r\n    0.0002     235352   1. {main}() vendor/turanct/omikron/bin/omikron:0\r\n    0.0015     367312   2. getTopics() vendor/turanct/omikron/bin/omikron:30\r\n    0.0016     368144   3. array_map() vendor/turanct/omikron/src/input.php:40\r\n    0.0016     368712   4. {closure:vendor/turanct/omikron/src/input.php:36-38}() vendor/turanct/omikron/src/input.php:40\r\n    0.0016     372872   5. include('topics/topic-Day.php') vendor/turanct/omikron/src/input.php:37\r\n    0.0016     373376   6. it() topics/topic-Day.php:13\r\n    0.0016     373416   7. {closure:topics/topic-Day.php:7-13}() vendor/turanct/omikron/src/omikron.php:50\r\n    0.0016     373448   8. bad() topics/topic-Day.php:9\r\n```"},"comment":{"url":"https://api.github.com/repos/turanct/omikron/issues/comments/136178894","html_url":"https://github.com/turanct/omikron/issues/4#issuecomment-136178894","issue_url":"https://api.github.com/repos/turanct/omikron/issues/4","id":136178894,"user":{"login":"mathiasverraes","id":489516,"avatar_url":"https://avatars.githubusercontent.com/u/489516?v=3","gravatar_id":"","url":"https://api.github.com/users/mathiasverraes","html_url":"https://github.com/mathiasverraes","followers_url":"https://api.github.com/users/mathiasverraes/followers","following_url":"https://api.github.com/users/mathiasverraes/following{/other_user}","gists_url":"https://api.github.com/users/mathiasverraes/gists{/gist_id}","starred_url":"https://api.github.com/users/mathiasverraes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathiasverraes/subscriptions","organizations_url":"https://api.github.com/users/mathiasverraes/orgs","repos_url":"https://api.github.com/users/mathiasverraes/repos","events_url":"https://api.github.com/users/mathiasverraes/events{/privacy}","received_events_url":"https://api.github.com/users/mathiasverraes/received_events","type":"User","site_admin":false},"created_at":"2015-08-30T20:00:57Z","updated_at":"2015-08-30T20:00:57Z","body":"Expected \r\n\r\n```\r\ntopics: 1\r\nfeatures: 1\r\nassertions: 1\r\n\r\nFAILED: X: Y Z\r\n\r\nException: Something in topics/topic-Day.php on line 3\r\n\r\nCall Stack:\r\n    0.0002     235352   1. {main}() vendor/turanct/omikron/bin/omikron:0\r\n    0.0015     367312   2. getTopics() vendor/turanct/omikron/bin/omikron:30\r\n    0.0016     368144   3. array_map() vendor/turanct/omikron/src/input.php:40\r\n    0.0016     368712   4. {closure:vendor/turanct/omikron/src/input.php:36-38}() vendor/turanct/omikron/src/input.php:40\r\n    0.0016     372872   5. include('topics/topic-Day.php') vendor/turanct/omikron/src/input.php:37\r\n    0.0016     373376   6. it() topics/topic-Day.php:13\r\n    0.0016     373416   7. {closure:topics/topic-Day.php:7-13}() vendor/turanct/omikron/src/omikron.php:50\r\n    0.0016     373448   8. bad() topics/topic-Day.php:9\r\n\r\n```"}}