{"action":"created","comment":{"url":"https://api.github.com/repos/fusioneng/speed-bumps/pulls/comments/34892198","id":34892198,"diff_hunk":"@@ -0,0 +1,39 @@\n+<?php\n+\n+class Test_Speed_Bumps_Filter_Usage extends WP_UnitTestCase {\n+\n+\tpublic function setUp() {\n+\t\tparent::setUp();\n+\t\t$this->speed_bumps = Speed_Bumps();\n+\t}\n+\n+\tpublic function tearDown() {\n+\t\tparent::tearDown();\n+\t\t$this->speed_bumps->clear_speed_bump( 'speed_bump_test' );\n+\t}\n+\n+\tpublic function test_speed_bump_filter_usage() {\n+\t\t$this->speed_bumps->register_speed_bump( 'speed_bump_test', array(\n+\t\t\t'string_to_inject' => function() { return '<div id=\"speed-bump-test\"></div>'; },\n+\t\t\t'minimum_content_length' => false,\n+\t\t\t'from_start' => false,\n+\t\t\t'from_end' => false,\n+\t\t));\n+\n+\t\tadd_filter( 'the_content', function( $content ) {\n+\t\t\treturn apply_filters( 'speed_bumps_inject_content', $content );\n+\t\t}, 1 );\n+\t\t$content = 'At a recent dinner, a friend confided that she was spending her masturbation sessions with a new lover: porn GIFs. “They’re incredible,” she said. I didn’t get it give you up.\n+\n+I know what a GIF is—four to six seconds of silent video looped. That seems like the perfect amount of time to capture a kitten falling into a garbage can or Tina Fey rolling her eyes, but the notion that one moving image could translate into a satisfactory—nay, “incredible”—sexual experience? Well, that didn’t compute. So she passed me her phone.\n+\n+And then, I was gone.\n+\n+While GIFs may seem like a flash in the pan—really, how can four seconds turn you on?—the nature of the loop actually allows the viewer to spend an elongated amount of time taking in the presented scenario. GIFs give the viewer time to notice the caress of a hand floating from neck to shoulder to forearm, the tensing of an abdomen, the arching of a back, and the reflex of a thigh. After a few loops, you may find yourself empathizing with the players involved. Maybe you can even feel what they’re feeling.\n+\n+Of course, porn GIFs don’t appeal only to women, but the “microporn” does appear to have struck a unique chord with the ladies, according to Hester—an audience known to feel alienated by mainstream porn, historically geared toward men. Spend five minutes on Tumblr, and you’ll find yourself sucked into a pulsing subculture of porn GIFs curated for women, living on pages like Porn-Gifs-For-Women and YummyPornForGirls. GIFs that almost exclusively spotlight erotic female pleasure.';","path":"tests/test-speed-bumps-filter-usage.php","position":34,"original_position":34,"commit_id":"16ce0178072753f7af6563a1838b330fd3b29dac","original_commit_id":"16ce0178072753f7af6563a1838b330fd3b29dac","user":{"login":"goldenapples","id":665992,"avatar_url":"https://avatars.githubusercontent.com/u/665992?v=3","gravatar_id":"","url":"https://api.github.com/users/goldenapples","html_url":"https://github.com/goldenapples","followers_url":"https://api.github.com/users/goldenapples/followers","following_url":"https://api.github.com/users/goldenapples/following{/other_user}","gists_url":"https://api.github.com/users/goldenapples/gists{/gist_id}","starred_url":"https://api.github.com/users/goldenapples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldenapples/subscriptions","organizations_url":"https://api.github.com/users/goldenapples/orgs","repos_url":"https://api.github.com/users/goldenapples/repos","events_url":"https://api.github.com/users/goldenapples/events{/privacy}","received_events_url":"https://api.github.com/users/goldenapples/received_events","type":"User","site_admin":false},"body":"nice example text :point_right: :ok_hand: ","created_at":"2015-07-17T14:10:28Z","updated_at":"2015-07-17T14:10:28Z","html_url":"https://github.com/fusioneng/speed-bumps/pull/54#discussion_r34892198","pull_request_url":"https://api.github.com/repos/fusioneng/speed-bumps/pulls/54","_links":{"self":{"href":"https://api.github.com/repos/fusioneng/speed-bumps/pulls/comments/34892198"},"html":{"href":"https://github.com/fusioneng/speed-bumps/pull/54#discussion_r34892198"},"pull_request":{"href":"https://api.github.com/repos/fusioneng/speed-bumps/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/fusioneng/speed-bumps/pulls/54","id":40178342,"html_url":"https://github.com/fusioneng/speed-bumps/pull/54","diff_url":"https://github.com/fusioneng/speed-bumps/pull/54.diff","patch_url":"https://github.com/fusioneng/speed-bumps/pull/54.patch","issue_url":"https://api.github.com/repos/fusioneng/speed-bumps/issues/54","number":54,"state":"open","locked":false,"title":"First pass at a basic filter w/ closure test","user":{"login":"davisshaver","id":1636964,"avatar_url":"https://avatars.githubusercontent.com/u/1636964?v=3","gravatar_id":"","url":"https://api.github.com/users/davisshaver","html_url":"https://github.com/davisshaver","followers_url":"https://api.github.com/users/davisshaver/followers","following_url":"https://api.github.com/users/davisshaver/following{/other_user}","gists_url":"https://api.github.com/users/davisshaver/gists{/gist_id}","starred_url":"https://api.github.com/users/davisshaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davisshaver/subscriptions","organizations_url":"https://api.github.com/users/davisshaver/orgs","repos_url":"https://api.github.com/users/davisshaver/repos","events_url":"https://api.github.com/users/davisshaver/events{/privacy}","received_events_url":"https://api.github.com/users/davisshaver/received_events","type":"User","site_admin":false},"body":"See https://github.com/fusioneng/speed-bumps/issues/53","created_at":"2015-07-16T21:30:25Z","updated_at":"2015-07-17T14:10:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1958c82865050086faa3e26a2029034bcbedb079","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fusioneng/speed-bumps/pulls/54/commits","review_comments_url":"https://api.github.com/repos/fusioneng/speed-bumps/pulls/54/comments","review_comment_url":"https://api.github.com/repos/fusioneng/speed-bumps/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fusioneng/speed-bumps/issues/54/comments","statuses_url":"https://api.github.com/repos/fusioneng/speed-bumps/statuses/16ce0178072753f7af6563a1838b330fd3b29dac","head":{"label":"fusioneng:add-test-for-basic-speed-bump-filter","ref":"add-test-for-basic-speed-bump-filter","sha":"16ce0178072753f7af6563a1838b330fd3b29dac","user":{"login":"fusioneng","id":8161069,"avatar_url":"https://avatars.githubusercontent.com/u/8161069?v=3","gravatar_id":"","url":"https://api.github.com/users/fusioneng","html_url":"https://github.com/fusioneng","followers_url":"https://api.github.com/users/fusioneng/followers","following_url":"https://api.github.com/users/fusioneng/following{/other_user}","gists_url":"https://api.github.com/users/fusioneng/gists{/gist_id}","starred_url":"https://api.github.com/users/fusioneng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusioneng/subscriptions","organizations_url":"https://api.github.com/users/fusioneng/orgs","repos_url":"https://api.github.com/users/fusioneng/repos","events_url":"https://api.github.com/users/fusioneng/events{/privacy}","received_events_url":"https://api.github.com/users/fusioneng/received_events","type":"Organization","site_admin":false},"repo":{"id":35431371,"name":"speed-bumps","full_name":"fusioneng/speed-bumps","owner":{"login":"fusioneng","id":8161069,"avatar_url":"https://avatars.githubusercontent.com/u/8161069?v=3","gravatar_id":"","url":"https://api.github.com/users/fusioneng","html_url":"https://github.com/fusioneng","followers_url":"https://api.github.com/users/fusioneng/followers","following_url":"https://api.github.com/users/fusioneng/following{/other_user}","gists_url":"https://api.github.com/users/fusioneng/gists{/gist_id}","starred_url":"https://api.github.com/users/fusioneng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusioneng/subscriptions","organizations_url":"https://api.github.com/users/fusioneng/orgs","repos_url":"https://api.github.com/users/fusioneng/repos","events_url":"https://api.github.com/users/fusioneng/events{/privacy}","received_events_url":"https://api.github.com/users/fusioneng/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fusioneng/speed-bumps","description":"","fork":false,"url":"https://api.github.com/repos/fusioneng/speed-bumps","forks_url":"https://api.github.com/repos/fusioneng/speed-bumps/forks","keys_url":"https://api.github.com/repos/fusioneng/speed-bumps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fusioneng/speed-bumps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fusioneng/speed-bumps/teams","hooks_url":"https://api.github.com/repos/fusioneng/speed-bumps/hooks","issue_events_url":"https://api.github.com/repos/fusioneng/speed-bumps/issues/events{/number}","events_url":"https://api.github.com/repos/fusioneng/speed-bumps/events","assignees_url":"https://api.github.com/repos/fusioneng/speed-bumps/assignees{/user}","branches_url":"https://api.github.com/repos/fusioneng/speed-bumps/branches{/branch}","tags_url":"https://api.github.com/repos/fusioneng/speed-bumps/tags","blobs_url":"https://api.github.com/repos/fusioneng/speed-bumps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fusioneng/speed-bumps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fusioneng/speed-bumps/git/refs{/sha}","trees_url":"https://api.github.com/repos/fusioneng/speed-bumps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fusioneng/speed-bumps/statuses/{sha}","languages_url":"https://api.github.com/repos/fusioneng/speed-bumps/languages","stargazers_url":"https://api.github.com/repos/fusioneng/speed-bumps/stargazers","contributors_url":"https://api.github.com/repos/fusioneng/speed-bumps/contributors","subscribers_url":"https://api.github.com/repos/fusioneng/speed-bumps/subscribers","subscription_url":"https://api.github.com/repos/fusioneng/speed-bumps/subscription","commits_url":"https://api.github.com/repos/fusioneng/speed-bumps/commits{/sha}","git_commits_url":"https://api.github.com/repos/fusioneng/speed-bumps/git/commits{/sha}","comments_url":"https://api.github.com/repos/fusioneng/speed-bumps/comments{/number}","issue_comment_url":"https://api.github.com/repos/fusioneng/speed-bumps/issues/comments{/number}","contents_url":"https://api.github.com/repos/fusioneng/speed-bumps/contents/{+path}","compare_url":"https://api.github.com/repos/fusioneng/speed-bumps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fusioneng/speed-bumps/merges","archive_url":"https://api.github.com/repos/fusioneng/speed-bumps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fusioneng/speed-bumps/downloads","issues_url":"https://api.github.com/repos/fusioneng/speed-bumps/issues{/number}","pulls_url":"https://api.github.com/repos/fusioneng/speed-bumps/pulls{/number}","milestones_url":"https://api.github.com/repos/fusioneng/speed-bumps/milestones{/number}","notifications_url":"https://api.github.com/repos/fusioneng/speed-bumps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fusioneng/speed-bumps/labels{/name}","releases_url":"https://api.github.com/repos/fusioneng/speed-bumps/releases{/id}","created_at":"2015-05-11T15:08:48Z","updated_at":"2015-07-16T14:56:31Z","pushed_at":"2015-07-17T13:49:00Z","git_url":"git://github.com/fusioneng/speed-bumps.git","ssh_url":"git@github.com:fusioneng/speed-bumps.git","clone_url":"https://github.com/fusioneng/speed-bumps.git","svn_url":"https://github.com/fusioneng/speed-bumps","homepage":"http://fusion.net","size":595,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":15,"forks":1,"open_issues":15,"watchers":1,"default_branch":"master"}},"base":{"label":"fusioneng:master","ref":"master","sha":"ff6fcfad580a481bd4bb47675fdc3fc1cffaaf95","user":{"login":"fusioneng","id":8161069,"avatar_url":"https://avatars.githubusercontent.com/u/8161069?v=3","gravatar_id":"","url":"https://api.github.com/users/fusioneng","html_url":"https://github.com/fusioneng","followers_url":"https://api.github.com/users/fusioneng/followers","following_url":"https://api.github.com/users/fusioneng/following{/other_user}","gists_url":"https://api.github.com/users/fusioneng/gists{/gist_id}","starred_url":"https://api.github.com/users/fusioneng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusioneng/subscriptions","organizations_url":"https://api.github.com/users/fusioneng/orgs","repos_url":"https://api.github.com/users/fusioneng/repos","events_url":"https://api.github.com/users/fusioneng/events{/privacy}","received_events_url":"https://api.github.com/users/fusioneng/received_events","type":"Organization","site_admin":false},"repo":{"id":35431371,"name":"speed-bumps","full_name":"fusioneng/speed-bumps","owner":{"login":"fusioneng","id":8161069,"avatar_url":"https://avatars.githubusercontent.com/u/8161069?v=3","gravatar_id":"","url":"https://api.github.com/users/fusioneng","html_url":"https://github.com/fusioneng","followers_url":"https://api.github.com/users/fusioneng/followers","following_url":"https://api.github.com/users/fusioneng/following{/other_user}","gists_url":"https://api.github.com/users/fusioneng/gists{/gist_id}","starred_url":"https://api.github.com/users/fusioneng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusioneng/subscriptions","organizations_url":"https://api.github.com/users/fusioneng/orgs","repos_url":"https://api.github.com/users/fusioneng/repos","events_url":"https://api.github.com/users/fusioneng/events{/privacy}","received_events_url":"https://api.github.com/users/fusioneng/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fusioneng/speed-bumps","description":"","fork":false,"url":"https://api.github.com/repos/fusioneng/speed-bumps","forks_url":"https://api.github.com/repos/fusioneng/speed-bumps/forks","keys_url":"https://api.github.com/repos/fusioneng/speed-bumps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fusioneng/speed-bumps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fusioneng/speed-bumps/teams","hooks_url":"https://api.github.com/repos/fusioneng/speed-bumps/hooks","issue_events_url":"https://api.github.com/repos/fusioneng/speed-bumps/issues/events{/number}","events_url":"https://api.github.com/repos/fusioneng/speed-bumps/events","assignees_url":"https://api.github.com/repos/fusioneng/speed-bumps/assignees{/user}","branches_url":"https://api.github.com/repos/fusioneng/speed-bumps/branches{/branch}","tags_url":"https://api.github.com/repos/fusioneng/speed-bumps/tags","blobs_url":"https://api.github.com/repos/fusioneng/speed-bumps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fusioneng/speed-bumps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fusioneng/speed-bumps/git/refs{/sha}","trees_url":"https://api.github.com/repos/fusioneng/speed-bumps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fusioneng/speed-bumps/statuses/{sha}","languages_url":"https://api.github.com/repos/fusioneng/speed-bumps/languages","stargazers_url":"https://api.github.com/repos/fusioneng/speed-bumps/stargazers","contributors_url":"https://api.github.com/repos/fusioneng/speed-bumps/contributors","subscribers_url":"https://api.github.com/repos/fusioneng/speed-bumps/subscribers","subscription_url":"https://api.github.com/repos/fusioneng/speed-bumps/subscription","commits_url":"https://api.github.com/repos/fusioneng/speed-bumps/commits{/sha}","git_commits_url":"https://api.github.com/repos/fusioneng/speed-bumps/git/commits{/sha}","comments_url":"https://api.github.com/repos/fusioneng/speed-bumps/comments{/number}","issue_comment_url":"https://api.github.com/repos/fusioneng/speed-bumps/issues/comments{/number}","contents_url":"https://api.github.com/repos/fusioneng/speed-bumps/contents/{+path}","compare_url":"https://api.github.com/repos/fusioneng/speed-bumps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fusioneng/speed-bumps/merges","archive_url":"https://api.github.com/repos/fusioneng/speed-bumps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fusioneng/speed-bumps/downloads","issues_url":"https://api.github.com/repos/fusioneng/speed-bumps/issues{/number}","pulls_url":"https://api.github.com/repos/fusioneng/speed-bumps/pulls{/number}","milestones_url":"https://api.github.com/repos/fusioneng/speed-bumps/milestones{/number}","notifications_url":"https://api.github.com/repos/fusioneng/speed-bumps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fusioneng/speed-bumps/labels{/name}","releases_url":"https://api.github.com/repos/fusioneng/speed-bumps/releases{/id}","created_at":"2015-05-11T15:08:48Z","updated_at":"2015-07-16T14:56:31Z","pushed_at":"2015-07-17T13:49:00Z","git_url":"git://github.com/fusioneng/speed-bumps.git","ssh_url":"git@github.com:fusioneng/speed-bumps.git","clone_url":"https://github.com/fusioneng/speed-bumps.git","svn_url":"https://github.com/fusioneng/speed-bumps","homepage":"http://fusion.net","size":595,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":15,"forks":1,"open_issues":15,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fusioneng/speed-bumps/pulls/54"},"html":{"href":"https://github.com/fusioneng/speed-bumps/pull/54"},"issue":{"href":"https://api.github.com/repos/fusioneng/speed-bumps/issues/54"},"comments":{"href":"https://api.github.com/repos/fusioneng/speed-bumps/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/fusioneng/speed-bumps/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/fusioneng/speed-bumps/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fusioneng/speed-bumps/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/fusioneng/speed-bumps/statuses/16ce0178072753f7af6563a1838b330fd3b29dac"}}}}