Skip to content

Commit 79ebced

Browse files
committed
test
1 parent ab57114 commit 79ebced

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.devtools/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ echo "==============================="
3737
echo
3838

3939
info "Stopping previously started services, if any."
40-
#killall -9 php >/dev/null 2>&1 || true
40+
kill -SIGKILL "$(ps aux | grep 'php -S' | grep -v grep | awk '{print $2}')" >/dev/null 2>&1 || true
4141

4242
info "Starting the PHP webserver."
4343
nohup php -S "${WEBSERVER_HOST}:${WEBSERVER_PORT}" -t "$(pwd)/build/web" "$(pwd)/build/web/.ht.router.php" >/tmp/php.log 2>&1 &

.scaffold/tests/phpunit/Functional/ScaffoldFunctionalTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ public function testBasic() {
4242
$process = new Process(['./.devtools/start.sh'], $this->testDir);
4343
$status = $process->run();
4444
$this->assertEquals(0, $status);
45+
$process = new Process(['./.devtools/provision.sh'], $this->testDir);
46+
$status = $process->run();
47+
$this->assertEquals(0, $status);
4548
}
4649

4750
protected function tearDown(): void {

0 commit comments

Comments
 (0)