diff options
Diffstat (limited to 'tests/GitDeploy')
-rw-r--r-- | tests/GitDeploy/Tests/Fixtures/git-deploy.json | 4 | ||||
-rw-r--r-- | tests/GitDeploy/Tests/GitDeployTest.php | 19 |
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); + } +} |