1 | <?php |
||
5 | class GitProjectTest extends BaseProjectTest |
||
6 | { |
||
7 | public function testInstallation() |
||
42 | |||
43 | /** |
||
44 | * @depends testInstallation |
||
45 | */ |
||
46 | public function testCommittingGoodCode() |
||
47 | { |
||
48 | $this->assertNotFalse(file_put_contents('test1.php', '<php echo "Hi!";')); |
||
49 | |||
50 | $this->assertCommandSuccessful('git add .'); |
||
51 | $this->assertCommandSuccessful('git commit -m test1'); |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @depends testCommittingGoodCode |
||
56 | */ |
||
57 | public function testCommittingBadCode() |
||
58 | { |
||
59 | $this->assertNotFalse(file_put_contents('test2.php', '<?php 3ch"o')); |
||
60 | |||
61 | $this->assertCommandSuccessful('git add .'); |
||
62 | $this->assertCommand('git commit -m test2', 1); |
||
63 | } |
||
64 | |||
65 | /** |
||
66 | * @depends testCommittingGoodCode |
||
67 | * @depends testCommittingBadCode |
||
68 | */ |
||
69 | public function testUninstallation() |
||
83 | } |
||
84 |