GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    ぐぬ管 (GNU social JP管理人) (gnusocialjp@gnusocial.jp)'s status on Saturday, 20-Jan-2024 12:37:28 JSTぐぬ管 (GNU social JP管理人)ぐぬ管 (GNU social JP管理人)
    in reply to
    • ぐぬ管 (GNU social JP管理人)
    「header後にdieするテストのアンチパターン - uzullaがブログ」

    これでしょうね。外部プロセスでexecして、exitCodeで試験します。途中で終わることを試験できればひとまずOKです。
    In conversationSaturday, 20-Jan-2024 12:37:28 JST from Qvitterpermalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: ogimage.blog.st-hatena.com
      header後にdieするテストのアンチパターン
      from uzulla
      明後日土曜日はPHPConference Fukuoka 2019ですね、楽しみなuzullaです。 さて、Hachioji.pmのSlackでPHPのテスト手法について質問があって、結果的にその解決策はいいのが無かったんですけど、過去こういうことはしたことがあるよってメモ書きです。 エントリ名に「header後にdieするテストのアンチパターン」とかきましたが、そもそもheader() からのexit() コンボがアンチパターンですので、イケてるフレームワークを正しく使う方々には本エントリは役立たないはずです。 PHPのexitは終了してしまう さて、phpで以下みたいな「リダイレクトした直…
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.