* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Deployer; class PartyTest extends DepCase { protected function load() { require DEPLOYER_FIXTURES . '/recipe/party.php'; } protected function setUp() { self::$currentPath = self::$tmpPath . '/localhost'; } public function testEnvironment() { $output = $this->start('test_env'); self::assertContains('env value ext', $output); self::assertContains('env value local', $output); } public function testInvoke() { $output = $this->start('test_invoke'); self::assertContains('first', $output); self::assertContains('second', $output); } public function testInvokeGroup() { $output = $this->start('test_invoke_group'); self::assertContains('first', $output); self::assertContains('second', $output); } public function testOn() { $output = $this->start('test_on'); self::assertContains( "\n" . "\n" . "\n" . "\n" . "\n", $output); } }