summaryrefslogtreecommitdiffstats
path: root/tests/GitDeploy
diff options
context:
space:
mode:
authorRob Loach <robloach@gmail.com>2015-02-07 22:05:07 -0500
committerRob Loach <robloach@gmail.com>2015-02-07 22:05:07 -0500
commitbc0f13b93a3b20f1640c75c9f28fe77b5a4c89ca (patch)
tree3530b776e0b69f6d7449a46224f46487ca576578 /tests/GitDeploy
parent7ca89a5eb6c7993658c9efce339f6805a0ee8351 (diff)
downloadgit-deploy-0.0.4.zip
git-deploy-0.0.4.tar.gz
git-deploy-0.0.4.tar.bz2
Rename to Git Deploy0.0.4
Diffstat (limited to 'tests/GitDeploy')
-rw-r--r--tests/GitDeploy/Tests/Fixtures/git-deploy.json4
-rw-r--r--tests/GitDeploy/Tests/GitDeployTest.php19
2 files changed, 23 insertions, 0 deletions
diff --git a/tests/GitDeploy/Tests/Fixtures/git-deploy.json b/tests/GitDeploy/Tests/Fixtures/git-deploy.json
new file mode 100644
index 0000000..4ca1730
--- /dev/null
+++ b/tests/GitDeploy/Tests/Fixtures/git-deploy.json
@@ -0,0 +1,4 @@
+{
+ "mywebsite": "https://github.com/my/website.git",
+ "myotherwebsite": "https://github.com/my/otherwebsite.git"
+}
diff --git a/tests/GitDeploy/Tests/GitDeployTest.php b/tests/GitDeploy/Tests/GitDeployTest.php
new file mode 100644
index 0000000..ff1bf10
--- /dev/null
+++ b/tests/GitDeploy/Tests/GitDeployTest.php
@@ -0,0 +1,19 @@
+<?php
+
+namespace GitDeploy\Tests\GitDeployTest;
+
+use GitDeploy\GitDeploy;
+
+class GitDeployTest extends \PHPUnit_Framework_TestCase
+{
+ protected $fixtures;
+
+ public function __construct() {
+ $this->fixtures = __DIR__ . '/Fixtures/';
+ }
+
+ public function testFromFile() {
+ $gitdeploy = GitDeploy::fromFile($this->fixtures . 'git-deploy.json');
+ $this->assertNotEmpty($gitdeploy);
+ }
+}