{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-php/issues/37","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-php","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-php/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-php/issues/37/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-php/issues/37/events","html_url":"https://github.com/GoogleCloudPlatform/gcloud-php/issues/37","id":151249370,"number":37,"title":"[Discussion] Should cloud test utilities be in this repo?","user":{"login":"tmatsuo","id":41815,"avatar_url":"https://avatars.githubusercontent.com/u/41815?v=3","gravatar_id":"","url":"https://api.github.com/users/tmatsuo","html_url":"https://github.com/tmatsuo","followers_url":"https://api.github.com/users/tmatsuo/followers","following_url":"https://api.github.com/users/tmatsuo/following{/other_user}","gists_url":"https://api.github.com/users/tmatsuo/gists{/gist_id}","starred_url":"https://api.github.com/users/tmatsuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmatsuo/subscriptions","organizations_url":"https://api.github.com/users/tmatsuo/orgs","repos_url":"https://api.github.com/users/tmatsuo/repos","events_url":"https://api.github.com/users/tmatsuo/events{/privacy}","received_events_url":"https://api.github.com/users/tmatsuo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-26T21:58:08Z","updated_at":"2016-04-28T17:58:47Z","closed_at":null,"body":"I'm thinking to upload our testing libraries to packagist. I'm thinking to have a namespace `Google/Cloud/TestUtils` or something.\r\n\r\nThe library is now in one of our repo:\r\nhttps://github.com/GoogleCloudPlatform/php-docs-samples/tree/master/testing\r\n\r\n[`GaeApp.php`](https://github.com/GoogleCloudPlatform/php-docs-samples/blob/master/testing/GaeApp.php) represents App Engine application, you can do something like:\r\n```php\r\n$gaeApp = new GaeApp('project_id', 'version_id');\r\n$gaeApp->run(); // Run devappserver\r\n$gaeApp->deploy(); // Deploy to the cloud\r\n$gaeApp->getLocalBaseUrl(); // returns a base URL of the devserver\r\n$gaeApp->getBaseUrl(); // returns a base URL of deployed app\r\n```\r\n\r\n[`LocalTestTrait.php`](https://github.com/GoogleCloudPlatform/php-docs-samples/blob/master/testing/LocalTestTrait.php) and [`E2EDeploymentTrait.php`](https://github.com/GoogleCloudPlatform/php-docs-samples/blob/master/testing/E2EDeploymentTrait.php) allows you to easily write e2e tests for your app (examples; [1](https://github.com/GoogleCloudPlatform/php-docs-samples/blob/master/appengine/standard/modules/tests/e2e/DeployTest.php), [2](https://github.com/GoogleCloudPlatform/php-docs-samples/blob/master/appengine/standard/modules/tests/e2e/LocalTest.php)).\r\n\r\nI'd like to ask you guys. Do you think this library should be in this repo? or should I create a new repo?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-php/issues/comments/215511127","html_url":"https://github.com/GoogleCloudPlatform/gcloud-php/issues/37#issuecomment-215511127","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-php/issues/37","id":215511127,"user":{"login":"tmatsuo","id":41815,"avatar_url":"https://avatars.githubusercontent.com/u/41815?v=3","gravatar_id":"","url":"https://api.github.com/users/tmatsuo","html_url":"https://github.com/tmatsuo","followers_url":"https://api.github.com/users/tmatsuo/followers","following_url":"https://api.github.com/users/tmatsuo/following{/other_user}","gists_url":"https://api.github.com/users/tmatsuo/gists{/gist_id}","starred_url":"https://api.github.com/users/tmatsuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmatsuo/subscriptions","organizations_url":"https://api.github.com/users/tmatsuo/orgs","repos_url":"https://api.github.com/users/tmatsuo/repos","events_url":"https://api.github.com/users/tmatsuo/events{/privacy}","received_events_url":"https://api.github.com/users/tmatsuo/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T17:58:47Z","updated_at":"2016-04-28T17:58:47Z","body":"Yeah that's my thought too. Also the test utility is almost always in the dev dependency. I think we should have separate packagist entries.\r\n\r\nMy current plan is here:\r\n\r\nRepo: `GoogleCloudPlatform/php-testutils`\r\nNamespace: `Google/Cloud/TestUtils`\r\nPackagist: `google/cloud-testutils`\r\n\r\nSounds good? Our namespaces share the base part, so you won't be able to have sub directory `TestUtils` in the future, I don't see it's a problem though."}}