{"action":"opened","number":93,"pull_request":{"url":"https://api.github.com/repos/firebase/php-jwt/pulls/93","id":68379187,"html_url":"https://github.com/firebase/php-jwt/pull/93","diff_url":"https://github.com/firebase/php-jwt/pull/93.diff","patch_url":"https://github.com/firebase/php-jwt/pull/93.patch","issue_url":"https://api.github.com/repos/firebase/php-jwt/issues/93","number":93,"state":"open","locked":false,"title":"Use static $timestamp instead of time()","user":{"login":"josephmcdermott","id":6955944,"avatar_url":"https://avatars.githubusercontent.com/u/6955944?v=3","gravatar_id":"","url":"https://api.github.com/users/josephmcdermott","html_url":"https://github.com/josephmcdermott","followers_url":"https://api.github.com/users/josephmcdermott/followers","following_url":"https://api.github.com/users/josephmcdermott/following{/other_user}","gists_url":"https://api.github.com/users/josephmcdermott/gists{/gist_id}","starred_url":"https://api.github.com/users/josephmcdermott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josephmcdermott/subscriptions","organizations_url":"https://api.github.com/users/josephmcdermott/orgs","repos_url":"https://api.github.com/users/josephmcdermott/repos","events_url":"https://api.github.com/users/josephmcdermott/events{/privacy}","received_events_url":"https://api.github.com/users/josephmcdermott/received_events","type":"User","site_admin":false},"body":"I am unit testing an application where I want to assert that certain JWT values will in fact be marked as 'expired' or 'not ready' but it is proving difficult due to the dynamic values within JWT::decode() method generated by time().\r\n\r\nThis PR allows a static property to be specified, fixing the value of 'current time' for the test suite.","created_at":"2016-04-29T14:22:00Z","updated_at":"2016-04-29T14:22:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/firebase/php-jwt/pulls/93/commits","review_comments_url":"https://api.github.com/repos/firebase/php-jwt/pulls/93/comments","review_comment_url":"https://api.github.com/repos/firebase/php-jwt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/firebase/php-jwt/issues/93/comments","statuses_url":"https://api.github.com/repos/firebase/php-jwt/statuses/bb6d53b94367d4e32bbcc0f7e90b658b37fdbdfd","head":{"label":"josephmcdermott:specify-current-timestamp","ref":"specify-current-timestamp","sha":"bb6d53b94367d4e32bbcc0f7e90b658b37fdbdfd","user":{"login":"josephmcdermott","id":6955944,"avatar_url":"https://avatars.githubusercontent.com/u/6955944?v=3","gravatar_id":"","url":"https://api.github.com/users/josephmcdermott","html_url":"https://github.com/josephmcdermott","followers_url":"https://api.github.com/users/josephmcdermott/followers","following_url":"https://api.github.com/users/josephmcdermott/following{/other_user}","gists_url":"https://api.github.com/users/josephmcdermott/gists{/gist_id}","starred_url":"https://api.github.com/users/josephmcdermott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josephmcdermott/subscriptions","organizations_url":"https://api.github.com/users/josephmcdermott/orgs","repos_url":"https://api.github.com/users/josephmcdermott/repos","events_url":"https://api.github.com/users/josephmcdermott/events{/privacy}","received_events_url":"https://api.github.com/users/josephmcdermott/received_events","type":"User","site_admin":false},"repo":{"id":57389091,"name":"php-jwt","full_name":"josephmcdermott/php-jwt","owner":{"login":"josephmcdermott","id":6955944,"avatar_url":"https://avatars.githubusercontent.com/u/6955944?v=3","gravatar_id":"","url":"https://api.github.com/users/josephmcdermott","html_url":"https://github.com/josephmcdermott","followers_url":"https://api.github.com/users/josephmcdermott/followers","following_url":"https://api.github.com/users/josephmcdermott/following{/other_user}","gists_url":"https://api.github.com/users/josephmcdermott/gists{/gist_id}","starred_url":"https://api.github.com/users/josephmcdermott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josephmcdermott/subscriptions","organizations_url":"https://api.github.com/users/josephmcdermott/orgs","repos_url":"https://api.github.com/users/josephmcdermott/repos","events_url":"https://api.github.com/users/josephmcdermott/events{/privacy}","received_events_url":"https://api.github.com/users/josephmcdermott/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/josephmcdermott/php-jwt","description":"PEAR package for JWT","fork":true,"url":"https://api.github.com/repos/josephmcdermott/php-jwt","forks_url":"https://api.github.com/repos/josephmcdermott/php-jwt/forks","keys_url":"https://api.github.com/repos/josephmcdermott/php-jwt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/josephmcdermott/php-jwt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/josephmcdermott/php-jwt/teams","hooks_url":"https://api.github.com/repos/josephmcdermott/php-jwt/hooks","issue_events_url":"https://api.github.com/repos/josephmcdermott/php-jwt/issues/events{/number}","events_url":"https://api.github.com/repos/josephmcdermott/php-jwt/events","assignees_url":"https://api.github.com/repos/josephmcdermott/php-jwt/assignees{/user}","branches_url":"https://api.github.com/repos/josephmcdermott/php-jwt/branches{/branch}","tags_url":"https://api.github.com/repos/josephmcdermott/php-jwt/tags","blobs_url":"https://api.github.com/repos/josephmcdermott/php-jwt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/josephmcdermott/php-jwt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/josephmcdermott/php-jwt/git/refs{/sha}","trees_url":"https://api.github.com/repos/josephmcdermott/php-jwt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/josephmcdermott/php-jwt/statuses/{sha}","languages_url":"https://api.github.com/repos/josephmcdermott/php-jwt/languages","stargazers_url":"https://api.github.com/repos/josephmcdermott/php-jwt/stargazers","contributors_url":"https://api.github.com/repos/josephmcdermott/php-jwt/contributors","subscribers_url":"https://api.github.com/repos/josephmcdermott/php-jwt/subscribers","subscription_url":"https://api.github.com/repos/josephmcdermott/php-jwt/subscription","commits_url":"https://api.github.com/repos/josephmcdermott/php-jwt/commits{/sha}","git_commits_url":"https://api.github.com/repos/josephmcdermott/php-jwt/git/commits{/sha}","comments_url":"https://api.github.com/repos/josephmcdermott/php-jwt/comments{/number}","issue_comment_url":"https://api.github.com/repos/josephmcdermott/php-jwt/issues/comments{/number}","contents_url":"https://api.github.com/repos/josephmcdermott/php-jwt/contents/{+path}","compare_url":"https://api.github.com/repos/josephmcdermott/php-jwt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/josephmcdermott/php-jwt/merges","archive_url":"https://api.github.com/repos/josephmcdermott/php-jwt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/josephmcdermott/php-jwt/downloads","issues_url":"https://api.github.com/repos/josephmcdermott/php-jwt/issues{/number}","pulls_url":"https://api.github.com/repos/josephmcdermott/php-jwt/pulls{/number}","milestones_url":"https://api.github.com/repos/josephmcdermott/php-jwt/milestones{/number}","notifications_url":"https://api.github.com/repos/josephmcdermott/php-jwt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/josephmcdermott/php-jwt/labels{/name}","releases_url":"https://api.github.com/repos/josephmcdermott/php-jwt/releases{/id}","deployments_url":"https://api.github.com/repos/josephmcdermott/php-jwt/deployments","created_at":"2016-04-29T14:04:49Z","updated_at":"2016-04-29T14:04:50Z","pushed_at":"2016-04-29T14:18:30Z","git_url":"git://github.com/josephmcdermott/php-jwt.git","ssh_url":"git@github.com:josephmcdermott/php-jwt.git","clone_url":"https://github.com/josephmcdermott/php-jwt.git","svn_url":"https://github.com/josephmcdermott/php-jwt","homepage":"","size":314,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"firebase:master","ref":"master","sha":"c35d52bd53fafd4a92c72c8e0b8489ebfc1a4306","user":{"login":"firebase","id":1335026,"avatar_url":"https://avatars.githubusercontent.com/u/1335026?v=3","gravatar_id":"","url":"https://api.github.com/users/firebase","html_url":"https://github.com/firebase","followers_url":"https://api.github.com/users/firebase/followers","following_url":"https://api.github.com/users/firebase/following{/other_user}","gists_url":"https://api.github.com/users/firebase/gists{/gist_id}","starred_url":"https://api.github.com/users/firebase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firebase/subscriptions","organizations_url":"https://api.github.com/users/firebase/orgs","repos_url":"https://api.github.com/users/firebase/repos","events_url":"https://api.github.com/users/firebase/events{/privacy}","received_events_url":"https://api.github.com/users/firebase/received_events","type":"Organization","site_admin":false},"repo":{"id":7391446,"name":"php-jwt","full_name":"firebase/php-jwt","owner":{"login":"firebase","id":1335026,"avatar_url":"https://avatars.githubusercontent.com/u/1335026?v=3","gravatar_id":"","url":"https://api.github.com/users/firebase","html_url":"https://github.com/firebase","followers_url":"https://api.github.com/users/firebase/followers","following_url":"https://api.github.com/users/firebase/following{/other_user}","gists_url":"https://api.github.com/users/firebase/gists{/gist_id}","starred_url":"https://api.github.com/users/firebase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firebase/subscriptions","organizations_url":"https://api.github.com/users/firebase/orgs","repos_url":"https://api.github.com/users/firebase/repos","events_url":"https://api.github.com/users/firebase/events{/privacy}","received_events_url":"https://api.github.com/users/firebase/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/firebase/php-jwt","description":"PEAR package for JWT","fork":true,"url":"https://api.github.com/repos/firebase/php-jwt","forks_url":"https://api.github.com/repos/firebase/php-jwt/forks","keys_url":"https://api.github.com/repos/firebase/php-jwt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/firebase/php-jwt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/firebase/php-jwt/teams","hooks_url":"https://api.github.com/repos/firebase/php-jwt/hooks","issue_events_url":"https://api.github.com/repos/firebase/php-jwt/issues/events{/number}","events_url":"https://api.github.com/repos/firebase/php-jwt/events","assignees_url":"https://api.github.com/repos/firebase/php-jwt/assignees{/user}","branches_url":"https://api.github.com/repos/firebase/php-jwt/branches{/branch}","tags_url":"https://api.github.com/repos/firebase/php-jwt/tags","blobs_url":"https://api.github.com/repos/firebase/php-jwt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/firebase/php-jwt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/firebase/php-jwt/git/refs{/sha}","trees_url":"https://api.github.com/repos/firebase/php-jwt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/firebase/php-jwt/statuses/{sha}","languages_url":"https://api.github.com/repos/firebase/php-jwt/languages","stargazers_url":"https://api.github.com/repos/firebase/php-jwt/stargazers","contributors_url":"https://api.github.com/repos/firebase/php-jwt/contributors","subscribers_url":"https://api.github.com/repos/firebase/php-jwt/subscribers","subscription_url":"https://api.github.com/repos/firebase/php-jwt/subscription","commits_url":"https://api.github.com/repos/firebase/php-jwt/commits{/sha}","git_commits_url":"https://api.github.com/repos/firebase/php-jwt/git/commits{/sha}","comments_url":"https://api.github.com/repos/firebase/php-jwt/comments{/number}","issue_comment_url":"https://api.github.com/repos/firebase/php-jwt/issues/comments{/number}","contents_url":"https://api.github.com/repos/firebase/php-jwt/contents/{+path}","compare_url":"https://api.github.com/repos/firebase/php-jwt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/firebase/php-jwt/merges","archive_url":"https://api.github.com/repos/firebase/php-jwt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/firebase/php-jwt/downloads","issues_url":"https://api.github.com/repos/firebase/php-jwt/issues{/number}","pulls_url":"https://api.github.com/repos/firebase/php-jwt/pulls{/number}","milestones_url":"https://api.github.com/repos/firebase/php-jwt/milestones{/number}","notifications_url":"https://api.github.com/repos/firebase/php-jwt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/firebase/php-jwt/labels{/name}","releases_url":"https://api.github.com/repos/firebase/php-jwt/releases{/id}","deployments_url":"https://api.github.com/repos/firebase/php-jwt/deployments","created_at":"2012-12-31T22:30:39Z","updated_at":"2016-04-28T23:13:58Z","pushed_at":"2016-04-25T08:35:39Z","git_url":"git://github.com/firebase/php-jwt.git","ssh_url":"git@github.com:firebase/php-jwt.git","clone_url":"https://github.com/firebase/php-jwt.git","svn_url":"https://github.com/firebase/php-jwt","homepage":"","size":398,"stargazers_count":1087,"watchers_count":1087,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":189,"mirror_url":null,"open_issues_count":24,"forks":189,"open_issues":24,"watchers":1087,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/firebase/php-jwt/pulls/93"},"html":{"href":"https://github.com/firebase/php-jwt/pull/93"},"issue":{"href":"https://api.github.com/repos/firebase/php-jwt/issues/93"},"comments":{"href":"https://api.github.com/repos/firebase/php-jwt/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/firebase/php-jwt/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/firebase/php-jwt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/firebase/php-jwt/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/firebase/php-jwt/statuses/bb6d53b94367d4e32bbcc0f7e90b658b37fdbdfd"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":12,"deletions":3,"changed_files":1}}