Changeset View
Changeset View
Standalone View
Standalone View
src/phage/__tests__/PhageAgentTestCase.php
| <?php | <?php | ||||
| final class PhageAgentTestCase extends PhutilTestCase { | final class PhageAgentTestCase extends PhutilTestCase { | ||||
| public function testPhagePHPAgent() { | public function testPhagePHPAgent() { | ||||
| if (phutil_is_windows()) { | |||||
| $this->assertSkipped(pht('Phage does not target Windows.')); | |||||
| } | |||||
| return $this->runBootloaderTests(new PhagePHPAgentBootloader()); | return $this->runBootloaderTests(new PhagePHPAgentBootloader()); | ||||
| } | } | ||||
| private function runBootloaderTests(PhageAgentBootloader $boot) { | private function runBootloaderTests(PhageAgentBootloader $boot) { | ||||
| $name = get_class($boot); | $name = get_class($boot); | ||||
| $exec = new ExecFuture('%C', $boot->getBootCommand()); | $exec = new ExecFuture('%C', $boot->getBootCommand()); | ||||
| $exec->write($boot->getBootSequence(), $keep_open = true); | $exec->write($boot->getBootSequence(), $keep_open = true); | ||||
| Show All 36 Lines | |||||