{"action":"created","issue":{"url":"https://api.github.com/repos/splitbrain/dokuwiki/issues/1476","repository_url":"https://api.github.com/repos/splitbrain/dokuwiki","labels_url":"https://api.github.com/repos/splitbrain/dokuwiki/issues/1476/labels{/name}","comments_url":"https://api.github.com/repos/splitbrain/dokuwiki/issues/1476/comments","events_url":"https://api.github.com/repos/splitbrain/dokuwiki/issues/1476/events","html_url":"https://github.com/splitbrain/dokuwiki/pull/1476","id":135131817,"number":1476,"title":"Function redeclare lib/exe/ajax.php","user":{"login":"yurii-github","id":1162656,"avatar_url":"https://avatars.githubusercontent.com/u/1162656?v=3","gravatar_id":"","url":"https://api.github.com/users/yurii-github","html_url":"https://github.com/yurii-github","followers_url":"https://api.github.com/users/yurii-github/followers","following_url":"https://api.github.com/users/yurii-github/following{/other_user}","gists_url":"https://api.github.com/users/yurii-github/gists{/gist_id}","starred_url":"https://api.github.com/users/yurii-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurii-github/subscriptions","organizations_url":"https://api.github.com/users/yurii-github/orgs","repos_url":"https://api.github.com/users/yurii-github/repos","events_url":"https://api.github.com/users/yurii-github/events{/privacy}","received_events_url":"https://api.github.com/users/yurii-github/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/splitbrain/dokuwiki/labels/Bug","name":"Bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-20T23:04:47Z","updated_at":"2016-05-10T17:52:46Z","closed_at":"2016-05-10T17:52:46Z","pull_request":{"url":"https://api.github.com/repos/splitbrain/dokuwiki/pulls/1476","html_url":"https://github.com/splitbrain/dokuwiki/pull/1476","diff_url":"https://github.com/splitbrain/dokuwiki/pull/1476.diff","patch_url":"https://github.com/splitbrain/dokuwiki/pull/1476.patch"},"body":"i cannot test ajax request because of this. This is just a possible solution - i did separation by first function name\r\n\r\nalso i have removed header() as it is useless and breaks tests too\r\n\r\nregards"},"comment":{"url":"https://api.github.com/repos/splitbrain/dokuwiki/issues/comments/218237337","html_url":"https://github.com/splitbrain/dokuwiki/pull/1476#issuecomment-218237337","issue_url":"https://api.github.com/repos/splitbrain/dokuwiki/issues/1476","id":218237337,"user":{"login":"yurii-github","id":1162656,"avatar_url":"https://avatars.githubusercontent.com/u/1162656?v=3","gravatar_id":"","url":"https://api.github.com/users/yurii-github","html_url":"https://github.com/yurii-github","followers_url":"https://api.github.com/users/yurii-github/followers","following_url":"https://api.github.com/users/yurii-github/following{/other_user}","gists_url":"https://api.github.com/users/yurii-github/gists{/gist_id}","starred_url":"https://api.github.com/users/yurii-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurii-github/subscriptions","organizations_url":"https://api.github.com/users/yurii-github/orgs","repos_url":"https://api.github.com/users/yurii-github/repos","events_url":"https://api.github.com/users/yurii-github/events{/privacy}","received_events_url":"https://api.github.com/users/yurii-github/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T17:52:46Z","updated_at":"2016-05-10T17:52:46Z","body":"it is not possible to unit test ajax requests because functions get re-declared (they are included in initial ajax file that must be called/included everytime\r\n\r\nanyway, i'm closing it as it looks not important\r\n\r\nregards"}}