Skip to content

PHPUnit テスト基盤の導入 #158

@tanakakc

Description

@tanakakc

概要

QHM 独自拡張に対する PHPUnit テストを導入し、CI で自動テストを実行できるようにする。

対応内容

  • devcontainer 設定追加
  • PHPUnit 9.6 導入
  • GitHub Actions CI ワークフロー追加
  • QHM ユーティリティ関数のテスト追加
    • h() / h_decode()
    • is_image()
    • get_mimetype()
    • wrap_script_tag()
    • is_url()
    • wikiescape()
    • get_bs_style()
  • QHM 独自拡張 (lib/qhm_*.php) のテスト追加
    • qhm_template.php
    • qhm_init.php
    • qhm_init_main.php
    • qhm_init_killer.php
    • qhm_message.php
  • plugin 配下のファイル群のテスト追加

テスト実行環境

  • PHP 7.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions