<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>heavenshell</author_name>
  <author_url>https://blog.hatena.ne.jp/heavenshell/</author_url>
  <blog_title>Memo</blog_title>
  <blog_url>https://gene.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>仕事で単体の書き捨てスクリプトを書く必要があったので作成した。 何をやるかというと標準入力の値をログに出力するって機能。 標準入力の値は $source = file_get_contents('php://stdin'); とかで取得。 書き捨てだけど、どうせならテストコードも作りたかったから簡単なライブラリにした。 テスティングフレームワークとかは大げさだったので、 phpt 形式で作成。 で、テストコードを書いている時に標準入力ってテストコードでどうやって表現するのか分からなかった。 echo とか、 exec で Linux のコマンドを呼んだりとか色々やったんだけど、 file_ge…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgene.hatenablog.com%2Fentry%2F20090129%2F1233230514&quot; title=&quot; 標準入力の値をテストコードで設定する方法 - Memo&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-01-29 21:01:54</published>
  <title> 標準入力の値をテストコードで設定する方法</title>
  <type>rich</type>
  <url>https://gene.hatenablog.com/entry/20090129/1233230514</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
