<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>ヱビスブログ</title>
    <link>http://thug4dev.com/</link>
    <description>ThugDevLife</description>
    <dc:language>ja</dc:language>
    <generator>Serendipity 1.5.3 - http://www.s9y.org/</generator>
    <pubDate>Tue, 22 Jun 2010 19:03:13 GMT</pubDate>

    <image>
        <url>http://thug4dev.com/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: ヱビスブログ - ThugDevLife</title>
        <link>http://thug4dev.com/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>iOS 4 と復元が終わらない祭り、そして Wi-Fi Sync</title>
    <link>http://thug4dev.com/index.php?/archives/223-iOS-4-Wi-Fi-Sync.html</link>
            <category>iPhone</category>
    
    <comments>http://thug4dev.com/index.php?/archives/223-iOS-4-Wi-Fi-Sync.html#comments</comments>
    <wfw:comment>http://thug4dev.com/wfwcomment.php?cid=223</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://thug4dev.com/rss.php?version=2.0&amp;type=comments&amp;cid=223</wfw:commentRss>
    

    <author>nospam@example.com (kiyosick)</author>
    <content:encoded>
    早速 iOS 4 にしてみましたよ。&lt;br /&gt;
&lt;br /&gt;
ところで以下は妄想だとか白昼夢的内容になります。&lt;br /&gt;
&lt;br /&gt;
ソッコーでアップデートを仕掛けたんですが、「iPhoneソフトウェアを復元中」のプロセスが終わらず次のフェーズに進まない。それこそ10分以上待ってみたんだが何の進展もない。&lt;br /&gt;
&lt;br /&gt;
しょうがないのでケーブルをブッコ抜き、iPhone を再起動。iTunes も強制終了してリトライしたものの変わらず止まる。Mac 自体を再起動してみたり、Last.fm クライアントをサクってみたりとゴチャゴチャやってみるもののカイゼンせず。大体このへんで4時半くらい。&lt;br /&gt;
&lt;br /&gt;
で、ふとメニューバーを見ると Wi-Fi Sync クライアントのアイコンが。アンインストーラーをダウンロードして、Wi-Fi Sync 方面をキチッとサクってから Mac 再起動でリトライ。今度は止まらずスルスル進む！&lt;br /&gt;
&lt;br /&gt;
ってな調子でようやっとインストールに成功。&lt;br /&gt;
まあ Wi-Fi Sync クライアントが本当に原因だったのかどうかわからんですが。&lt;br /&gt;
&lt;br /&gt;
就寝5時半。&lt;br /&gt;
&lt;br /&gt;
そういうシーケンスを幻視したという話ですよ。 
    </content:encoded>

    <pubDate>Tue, 22 Jun 2010 12:03:13 -0700</pubDate>
    <guid isPermaLink="false">http://thug4dev.com/index.php?/archives/223-guid.html</guid>
    
</item>
<item>
    <title>mediatemple の DDoS 問題解消</title>
    <link>http://thug4dev.com/index.php?/archives/222-mediatemple-DDoS.html</link>
    
    <comments>http://thug4dev.com/index.php?/archives/222-mediatemple-DDoS.html#comments</comments>
    <wfw:comment>http://thug4dev.com/wfwcomment.php?cid=222</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://thug4dev.com/rss.php?version=2.0&amp;type=comments&amp;cid=222</wfw:commentRss>
    

    <author>nospam@example.com (kiyosick)</author>
    <content:encoded>
    このブログをホストしてるサービスが DDoS を喰らって DNS の IP アドレスを変更したり、それによって MySQL の方に影響が出てみたりでちょっと厄介だった。とりあえずテスト投稿みたいな感じで。&lt;br /&gt;
&lt;br /&gt;
iPad はソフトウェアキーボードが Dvorak 配列をサポートしたら買う！&lt;br /&gt;
iPhone 4 は多分買わない！ 
    </content:encoded>

    <pubDate>Tue, 08 Jun 2010 14:45:30 -0700</pubDate>
    <guid isPermaLink="false">http://thug4dev.com/index.php?/archives/222-guid.html</guid>
    
</item>
<item>
    <title>[俺メモ]台北市内の Wi-Fi 事情</title>
    <link>http://thug4dev.com/index.php?/archives/221-Wi-Fi.html</link>
    
    <comments>http://thug4dev.com/index.php?/archives/221-Wi-Fi.html#comments</comments>
    <wfw:comment>http://thug4dev.com/wfwcomment.php?cid=221</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://thug4dev.com/rss.php?version=2.0&amp;type=comments&amp;cid=221</wfw:commentRss>
    

    <author>nospam@example.com (kiyosick)</author>
    <content:encoded>
    成人の日を組み込んで2泊3日ほど台北に遊びに行ってきた。&lt;br /&gt;
iPhone を持っていたんだけどもなかなか野良 Wi-Fi が掴めず、ホテルのロビーだとかバーが用意してるモノを使っていた。&lt;br /&gt;
&lt;br /&gt;
台北市内の至る所で WIFLY と hinet という有料の無線 LAN の電波を拾えるんだけども、どうやってアカウントを作るのか良く判らずに歯がゆい思いをしたのだった。&lt;br /&gt;
&lt;br /&gt;
この WIFLY はプリペイド式で、カードはスタバ等で買えるようだ。&lt;br /&gt;
スタバはちょいちょいあった気がする。101に遊びに行った流れでスタバに寄れば良い。&lt;br /&gt;
&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/blog.umashi-umamo.com/?eid=824250&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/blog.umashi-umamo.com/?eid=824250&#039;]);&quot;  href=&quot;http://blog.umashi-umamo.com/?eid=824250&quot;&gt;:: うましうまもブログ！ | 台北市内でiPhoneを使う【WIFLY編】 :::&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
ちなみにスタバは日本のよりもちょいと味が薄かった。&lt;br /&gt;
&lt;br /&gt;
24時間100NT$で、31日利用の場合は500NT$ってのはかなり良心的に思える。&lt;br /&gt;
とにかく台北市内においては全域って言っちゃっても良いんじゃないかって程に引っかかる。&lt;br /&gt;
&lt;br /&gt;
次回は間違いない。 
    </content:encoded>

    <pubDate>Tue, 12 Jan 2010 17:45:33 -0800</pubDate>
    <guid isPermaLink="false">http://thug4dev.com/index.php?/archives/221-guid.html</guid>
    
</item>
<item>
    <title>php injection exploit によって悪意のあるサイトにリダイレクトされていた話</title>
    <link>http://thug4dev.com/index.php?/archives/220-php-injection-exploit.html</link>
    
    <comments>http://thug4dev.com/index.php?/archives/220-php-injection-exploit.html#comments</comments>
    <wfw:comment>http://thug4dev.com/wfwcomment.php?cid=220</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://thug4dev.com/rss.php?version=2.0&amp;type=comments&amp;cid=220</wfw:commentRss>
    

    <author>nospam@example.com (kiyosick)</author>
    <content:encoded>
    twitter にて報告もらいました。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;As of Nov 6, 2009, we have noticed many customers reporting a new php injection exploit. &lt;br /&gt;
&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/kb.mediatemple.net/questions/1715/Working+with+a+php+injected+website&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/kb.mediatemple.net/questions/1715/Working+with+a+php+injected+website&#039;]);&quot;  href=&quot;http://kb.mediatemple.net/questions/1715/Working+with+a+php+injected+website&quot;&gt;http://kb.mediatemple.net/questions/1715/Working+with+a+php+injected+website&lt;/a&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
現在は修正済みで正常にアクセス可能です。&lt;br /&gt;
ご迷惑お掛けしました。 
    </content:encoded>

    <pubDate>Tue, 17 Nov 2009 09:28:39 -0800</pubDate>
    <guid isPermaLink="false">http://thug4dev.com/index.php?/archives/220-guid.html</guid>
    
</item>
<item>
    <title>ちょいとテスト</title>
    <link>http://thug4dev.com/index.php?/archives/219-unknown.html</link>
    
    <comments>http://thug4dev.com/index.php?/archives/219-unknown.html#comments</comments>
    <wfw:comment>http://thug4dev.com/wfwcomment.php?cid=219</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://thug4dev.com/rss.php?version=2.0&amp;type=comments&amp;cid=219</wfw:commentRss>
    

    <author>nospam@example.com (kiyosick)</author>
    <content:encoded>
    テストテストテスト&lt;br /&gt;
Modern Warfare2 実績 1000 になりました。&lt;br /&gt;
もう Spec Ops やりたくない！！！ 
    </content:encoded>

    <pubDate>Tue, 17 Nov 2009 09:16:21 -0800</pubDate>
    <guid isPermaLink="false">http://thug4dev.com/index.php?/archives/219-guid.html</guid>
    
</item>
<item>
    <title>高円寺フェス2009に真っ昼間から出演する The Riot 怒りの10代</title>
    <link>http://thug4dev.com/index.php?/archives/218-2009-The-Riot-10.html</link>
            <category>Games</category>
    
    <comments>http://thug4dev.com/index.php?/archives/218-2009-The-Riot-10.html#comments</comments>
    <wfw:comment>http://thug4dev.com/wfwcomment.php?cid=218</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://thug4dev.com/rss.php?version=2.0&amp;type=comments&amp;cid=218</wfw:commentRss>
    

    <author>nospam@example.com (kiyosick)</author>
    <content:encoded>
    タイトルままですが。&lt;br /&gt;
&lt;br /&gt;
&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/www.mmv.co.jp/special/game/wiiware/discipline/&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/www.mmv.co.jp/special/game/wiiware/discipline/&#039;]);&quot;  href=&quot;http://www.mmv.co.jp/special/game/wiiware/discipline/&quot;&gt;『ディシプリン＊帝国の誕生』&lt;/a&gt;方面で慌ただしい、&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/getnews.jp/archives/25423&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/getnews.jp/archives/25423&#039;]);&quot;  href=&quot;http://getnews.jp/archives/25423&quot;&gt;どうかしている天才ゲームクリエーター&lt;/a&gt;であるところの&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/twitter.com/iidakazutoshi&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/twitter.com/iidakazutoshi&#039;]);&quot;  href=&quot;http://twitter.com/iidakazutoshi&quot;&gt;飯田和敏&lt;/a&gt;がヴォーカルを務める我々 The Riot 怒りの10代がライブをやりますよ、今年も。&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
先日、母に電話したら猛烈にお怒りのご様子だったので、思わず切ってしまった。怒りの10代のマインドは不滅です。というわけでライブの告知！今週の日曜、高円寺（あとは誰かヨロシク）。&lt;br /&gt;
&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/twitter.com/iidakazutoshi/status/5409865609&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/twitter.com/iidakazutoshi/status/5409865609&#039;]);&quot;  href=&quot;http://twitter.com/iidakazutoshi/status/5409865609&quot;&gt;http://twitter.com/iidakazutoshi/status/5409865609&lt;/a&gt;&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
今回は&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/koenjifes.jp/live.html#01&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/koenjifes.jp/live.html#01&#039;]);&quot;  href=&quot;http://koenjifes.jp/live.html#01&quot;&gt;高円寺フェス2009フリーホイーリン&lt;/a&gt;という高円寺中のライブハウスにてドリンク代のみでライブが観れるっちゅーとんでもない企画に参加しちゃうわけです。&lt;br /&gt;
&lt;br /&gt;
11月8日の日曜日。時間は12:30から。昼間の。すごい。&lt;br /&gt;
ハコは &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/koenjifes.jp/shops/shop120.html&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/koenjifes.jp/shops/shop120.html&#039;]);&quot;  href=&quot;http://koenjifes.jp/shops/shop120.html&quot;&gt;Club Mission&#039;s&lt;/a&gt; という大変キレイな所で御座います。&lt;br /&gt;
&lt;br /&gt;
演奏時間は15分。短い？そうか？&lt;br /&gt;
&lt;br /&gt;
15分激高し続ける事はそんなに簡単じゃないと思うんです。&lt;br /&gt;
でも飯田さんを始め、我々は伊達に怒りの10代なんて名前を付けてませんよ。憤死スレスレの15分をお届けするのです。&lt;br /&gt;
&lt;br /&gt;
ref - &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/koenjifes.jp/index.php&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/koenjifes.jp/index.php&#039;]);&quot;  href=&quot;http://koenjifes.jp/index.php&quot;&gt;高円寺フェス2009&lt;/a&gt; 
    </content:encoded>

    <pubDate>Wed, 04 Nov 2009 18:08:11 -0800</pubDate>
    <guid isPermaLink="false">http://thug4dev.com/index.php?/archives/218-guid.html</guid>
    
</item>
<item>
    <title>MacPorts の Screen 4.0.3_3 がおかしいのでなんとかする</title>
    <link>http://thug4dev.com/index.php?/archives/217-MacPorts-Screen-4.0.3_3.html</link>
            <category>Mac</category>
    
    <comments>http://thug4dev.com/index.php?/archives/217-MacPorts-Screen-4.0.3_3.html#comments</comments>
    <wfw:comment>http://thug4dev.com/wfwcomment.php?cid=217</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://thug4dev.com/rss.php?version=2.0&amp;type=comments&amp;cid=217</wfw:commentRss>
    

    <author>nospam@example.com (kiyosick)</author>
    <content:encoded>
    deflogin が unknown command だ、みたいな事を言われるようになってしまった。あと mate コマンドで TextMate が起動出来ない。&lt;br /&gt;
&lt;br /&gt;
これは困るので 4.0.3_1 に戻したい。&lt;br /&gt;
screen はアンインストールした状態で始めます。&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;1. trac で確認する&lt;/strong&gt;&lt;br /&gt;
MacPorts Trac&lt;br /&gt;
&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/trac.macports.org/browser/trunk/dports&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/trac.macports.org/browser/trunk/dports&#039;]);&quot;  href=&quot;http://trac.macports.org/browser/trunk/dports&quot;&gt;http://trac.macports.org/browser/trunk/dports&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
今回の件はチケットがあった。&lt;br /&gt;
&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/trac.macports.org/ticket/18235&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/trac.macports.org/ticket/18235&#039;]);&quot;  href=&quot;http://trac.macports.org/ticket/18235&quot;&gt;http://trac.macports.org/ticket/18235&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
4.0.3_1 のリビジョンを確認する。これだ。&lt;br /&gt;
&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/trac.macports.org/browser/trunk/dports/sysutils/screen/Portfile?rev=45522&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/trac.macports.org/browser/trunk/dports/sysutils/screen/Portfile?rev=45522&#039;]);&quot;  href=&quot;http://trac.macports.org/browser/trunk/dports/sysutils/screen/Portfile?rev=45522&quot;&gt;http://trac.macports.org/browser/trunk/dports/sysutils/screen/Portfile?rev=45522&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;2. svn co する&lt;/strong&gt;&lt;br /&gt;
適当な所でもいいし、自分の local portfile 置き場あるならそこに。俺は $HOME/dports というディレクトリを作ってるのでそこへチェックアウト。&lt;br /&gt;
&lt;pre&gt;
% cd ~/dports
% svn co –r 45522 http://svn.macports.org/repository/macports/trunk/dports/sysutils/screen \
sysutils/screen/&lt;/pre&gt;&lt;br /&gt;
&lt;strong&gt;3. sudo port install する&lt;/strong&gt;&lt;br /&gt;
Portfile のあるディレクトリで port install すると宜しくやってくれるようだ。&lt;br /&gt;
&lt;pre&gt;
% cd ./sysutils/screen
% sudo port install&lt;/pre&gt;&lt;br /&gt;
&lt;strong&gt;4. 確認する&lt;/strong&gt;&lt;br /&gt;
&lt;pre&gt;
% port installed | grep screen
  screen @4.0.3_1 (active)&lt;/pre&gt;&lt;br /&gt;
いいんじゃないでしょうか。&lt;br /&gt;
&lt;br /&gt;
local portfile の手法でチェックアウト後に portindex したんだけれども、どうもリビジョンまでは見てもらえないっぽい？ sudo port install screen @4.0.3_1 にしても 4.0.3_3 が入ってしまった。&lt;br /&gt;
&lt;br /&gt;
screen に限らず MacPorts で older revision のアイテムが欲しい時はこのやり方でいけそう。&lt;br /&gt;
&lt;br /&gt;
ref&lt;br /&gt;
&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/trac.macports.org/wiki/howto/InstallingOlderPort&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/trac.macports.org/wiki/howto/InstallingOlderPort&#039;]);&quot;  href=&quot;https://trac.macports.org/wiki/howto/InstallingOlderPort&quot;&gt;https://trac.macports.org/wiki/howto/InstallingOlderPort&lt;/a&gt;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Thu, 05 Mar 2009 16:32:05 -0800</pubDate>
    <guid isPermaLink="false">http://thug4dev.com/index.php?/archives/217-guid.html</guid>
    
</item>
<item>
    <title>mashable のエントリをはてブするとモバイル扱いされる件</title>
    <link>http://thug4dev.com/index.php?/archives/216-mashable.html</link>
    
    <comments>http://thug4dev.com/index.php?/archives/216-mashable.html#comments</comments>
    <wfw:comment>http://thug4dev.com/wfwcomment.php?cid=216</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://thug4dev.com/rss.php?version=2.0&amp;type=comments&amp;cid=216</wfw:commentRss>
    

    <author>nospam@example.com (kiyosick)</author>
    <content:encoded>
    表題の通り。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;高橋(13:38)&lt;br /&gt;
Mashableのページがはてブできないのはなぜ？&lt;br /&gt;
なぜかモバイル用ページになっちゃう...&lt;br /&gt;
ライブドアクリップではそういうことないかね？&lt;br /&gt;
&lt;br /&gt;
Kiyoshi Yoshida(13:39)&lt;br /&gt;
おお&lt;br /&gt;
ホントだ&lt;br /&gt;
&lt;br /&gt;
高橋(13:40)&lt;br /&gt;
だしょ&lt;br /&gt;
&lt;br /&gt;
Kiyoshi Yoshida(13:40)&lt;br /&gt;
はてなが送ってるUAがおかしいみたいな事かなー&lt;br /&gt;
&lt;br /&gt;
高橋(13:40)&lt;br /&gt;
なんかそんな感じだよね&lt;br /&gt;
ページ取得いってモバイルて言われて帰ってきてるよね&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
はてブするとはてな側からエントリ情報、本文（の一部）、スクリーンショットを取る為のスクリプトがいらっしゃる。&lt;br /&gt;
&lt;br /&gt;
各々の UA は&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Hatena Bookmark/0.1&lt;/li&gt;&lt;li&gt;Hatena2::RemoteDocument/0.02&lt;/li&gt;&lt;li&gt;HatenaScreenshot/1.0 (checker)&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;
こんなんかな。&lt;br /&gt;
スクリーンショットは今回の件とは関係薄そうなので上2件をテスト。&lt;br /&gt;
&lt;br /&gt;
まず Hatena Bookmark/0.1 をためす。&lt;br /&gt;
&lt;blockquote&gt;irb(main):002:0&amp;gt; Net::HTTP.start(&amp;#x27;mashable.com&amp;#x27;){|h| h.get(&amp;#x27;/&amp;#x27;, &amp;quot;User-Agent&amp;quot; =&amp;gt; &amp;quot;Hatena Bookmark/0.1&amp;quot;)}&lt;br /&gt;
=&amp;gt; #&amp;lt;Net::HTTPOK 200 OK readbody=true&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;
次に Hatena2::RemoteDocument/0.02 で。&lt;br /&gt;
&lt;blockquote&gt;irb(main):003:0&amp;gt; Net::HTTP.start(&amp;#x27;mashable.com&amp;#x27;){|h| h.get(&amp;#x27;/&amp;#x27;, &amp;quot;User-Agent&amp;quot; =&amp;gt; &amp;quot;Hatena2::RemoteDocument/0.02&amp;quot;)}&lt;br /&gt;
=&amp;gt; #&amp;lt;Net::HTTPFound 302 Found readbody=true&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;
302 が返って来た！どうもこっちが怪しい。&lt;br /&gt;
&lt;br /&gt;
「Remo」は通し。&lt;br /&gt;
&lt;blockquote&gt;irb(main):005:0&amp;gt; Net::HTTP.start(&amp;#x27;mashable.com&amp;#x27;){|h| h.get(&amp;#x27;/&amp;#x27;, &amp;quot;User-Agent&amp;quot; =&amp;gt; &amp;quot;Hatena2::Remo&amp;quot;)}&lt;br /&gt;
=&amp;gt; #&amp;lt;Net::HTTPOK 200 OK readbody=true&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;
「Remot」は通らず。&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
irb(main):006:0&amp;gt; Net::HTTP.start(&amp;#x27;mashable.com&amp;#x27;){|h| h.get(&amp;#x27;/&amp;#x27;, &amp;quot;User-Agent&amp;quot; =&amp;gt; &amp;quot;Hatena2::Remot&amp;quot;)}&lt;br /&gt;
=&amp;gt; #&amp;lt;Net::HTTPFound 302 Found readbody=true&amp;gt;&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
どうやら「mot」が通らない。&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
irb(main):010:0&amp;gt; Net::HTTP.start(&amp;#x27;mashable.com&amp;#x27;){|h| h.get(&amp;#x27;/&amp;#x27;, &amp;quot;User-Agent&amp;quot; =&amp;gt; &amp;quot;mot&amp;quot;)}&lt;br /&gt;
=&amp;gt; #&amp;lt;Net::HTTPFound 302 Found readbody=true&amp;gt;&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
ユーザーエージェントが「mot」と言えば、それはモトローラ系端末。MOT-V980 とか。&lt;br /&gt;
&lt;br /&gt;
mashable の UA に「mot」が入ってたらモバイル扱いするザックリ具合が主な原因。&lt;br /&gt;
「『mot』で判定するケースがあるから『remote』とか使うな」ってのは自分でクローラ書く時の参考になった。&lt;br /&gt;
&lt;br /&gt;
ちなみに delicious には問題無くブックマーク出来ました。 
    </content:encoded>

    <pubDate>Fri, 03 Oct 2008 15:49:06 -0700</pubDate>
    <guid isPermaLink="false">http://thug4dev.com/index.php?/archives/216-guid.html</guid>
    
</item>
<item>
    <title>今年もHOPPER'Sに出演しますよ</title>
    <link>http://thug4dev.com/index.php?/archives/215-HOPPERS.html</link>
            <category>Games</category>
    
    <comments>http://thug4dev.com/index.php?/archives/215-HOPPERS.html#comments</comments>
    <wfw:comment>http://thug4dev.com/wfwcomment.php?cid=215</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://thug4dev.com/rss.php?version=2.0&amp;type=comments&amp;cid=215</wfw:commentRss>
    

    <author>nospam@example.com (kiyosick)</author>
    <content:encoded>
    グラスホッパーマニュファクチュア設立10周年記念イベント。&lt;br /&gt;
今年は 2 Days で3イベントという無茶苦茶なスケジュール。&lt;br /&gt;
&lt;br /&gt;
2日目であるところの HOPPER&#039;S Vol.3 に去年に引き続き「THE RIOT-怒りの十代-」のギターとして出演します。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
HOPPER&#039;S VOL.3 -A BATTLE OF THE BANDS-&lt;br /&gt;
&lt;br /&gt;
熱狂のロックフェス第３弾！ GhM10周年の祝砲を撃ち鳴らせ！&lt;br /&gt;
&lt;br /&gt;
2008年9月20日（土）　六本木SUPER DELUXE&lt;br /&gt;
OPEN 18:00　START 18:30　CLOSE 22:00&lt;br /&gt;
入場予約価格：3,000円（税込/ドリンク別）　&lt;br /&gt;
&lt;br /&gt;
年齢制限：18歳未満の方は保護者の同伴が必要です。&lt;br /&gt;
年齢確認のため身分証明証をご持参ください。&lt;br /&gt;
&lt;br /&gt;
出演バンド：GhMサウンドチーム／Spelunker／ニュートリノ／THE RIOT-怒りの十代-&lt;br /&gt;
※須田剛一の出演はありません&lt;br /&gt;
&lt;br /&gt;
&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/www.grasshopper.co.jp/GhM10th2DAYZ/ghm2days.html&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/www.grasshopper.co.jp/GhM10th2DAYZ/ghm2days.html&#039;]);&quot;  href=&quot;http://www.grasshopper.co.jp/GhM10th2DAYZ/ghm2days.html&quot;&gt;http://www.grasshopper.co.jp/GhM10th2DAYZ/ghm2days.html&lt;/a&gt;&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
チケットはすでに発売中。&lt;br /&gt;
&lt;br /&gt;
RIOT を結成して1年半くらいですが、結構な数のライブもこなしてますし、CDも出しましたし。&lt;br /&gt;
イベントドリブンなバンドの割に相当充実。 
    </content:encoded>

    <pubDate>Tue, 02 Sep 2008 20:57:02 -0700</pubDate>
    <guid isPermaLink="false">http://thug4dev.com/index.php?/archives/215-guid.html</guid>
    
</item>
<item>
    <title>The door won't open</title>
    <link>http://thug4dev.com/index.php?/archives/214-The-door-wont-open.html</link>
            <category>Blog</category>
    
    <comments>http://thug4dev.com/index.php?/archives/214-The-door-wont-open.html#comments</comments>
    <wfw:comment>http://thug4dev.com/wfwcomment.php?cid=214</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://thug4dev.com/rss.php?version=2.0&amp;type=comments&amp;cid=214</wfw:commentRss>
    

    <author>nospam@example.com (kiyosick)</author>
    <content:encoded>
    「意思の will」にはなかなか気付けないので修業が足りない。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&quot;will&quot;で未来を念じているのは、人です。だから&quot;will&quot;は未来形であると同時に、「意志」という意味があります。&lt;br /&gt;
&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/blog.livedoor.jp/dankogai/archives/51085107.html&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/blog.livedoor.jp/dankogai/archives/51085107.html&#039;]);&quot;  href=&quot;http://blog.livedoor.jp/dankogai/archives/51085107.html&quot;&gt;404 Blog Not Found:English - can の未来形&lt;/a&gt;&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
タイトルくらいわかりやすいと良いんですが、流れの中でポッと出てくると戸惑ってしまう。&lt;br /&gt;
極々個人的な経験で言うと、「意思の will」特に「頑なに〜しようとしない」の「won&#039;t」は個人よりも物体であるとかちょっとした集団のポリシーに使われてるケースに出会う。&quot;PS3 won&#039;t work!&quot;とか&quot;We won&#039;t do that ~&quot;とか。&lt;br /&gt;
&lt;br /&gt;
いわゆる未来の will も中学くらいでは「be going to と同じだよ」という教わり方をした（よね？）わけですけど、実は細かい違いがある。という事は予備校で知った。&lt;br /&gt;
&lt;br /&gt;
で、ここでアサマシです。&lt;br /&gt;
大学受験で散々ブッコんだ英語知識も大学生になってからと言うもの、ボロボロと抜け落ちてしまった。それをある程度戻すのに役立ったのがこの本。「if の省略形仮定法」とか久々に思い出せた。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;amazlet-box&quot; style=&quot;margin-bottom:0px;&quot;&gt;&lt;div class=&quot;amazlet-image&quot; style=&quot;float:left;&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/www.amazon.co.jp/exec/obidos/ASIN/4342010208/yebisublog-22/ref=nosim/&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/www.amazon.co.jp/exec/obidos/ASIN/4342010208/yebisublog-22/ref=nosim/&#039;]);&quot;  href=&quot;http://www.amazon.co.jp/exec/obidos/ASIN/4342010208/yebisublog-22/ref=nosim/&quot; name=&quot;amazletlink&quot; target=&quot;&lt;u&gt;blank&quot;&gt;&lt;img src=&quot;http://ecx.images-amazon.com/images/I/51AEB09SVBL._SL160&lt;/u&gt;.jpg&quot; alt=&quot;総合英語Forest&quot; style=&quot;border: none;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;amazlet-info&quot; style=&quot;float:left;margin-left:15px;line-height:120%&quot;&gt;&lt;div class=&quot;amazlet-name&quot; style=&quot;margin-bottom:10px;line-height:120%&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/www.amazon.co.jp/exec/obidos/ASIN/4342010208/yebisublog-22/ref=nosim/&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/www.amazon.co.jp/exec/obidos/ASIN/4342010208/yebisublog-22/ref=nosim/&#039;]);&quot;  href=&quot;http://www.amazon.co.jp/exec/obidos/ASIN/4342010208/yebisublog-22/ref=nosim/&quot; name=&quot;amazletlink&quot; target=&quot;_blank&quot;&gt;総合英語Forest&lt;/a&gt;&lt;div class=&quot;amazlet-powered-date&quot; style=&quot;font-size:7pt;margin-top:5px;font-family:verdana;line-height:120%&quot;&gt;posted with &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/www.amazlet.com/browse/ASIN/4342010208/yebisublog-22/ref=nosim/&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/www.amazlet.com/browse/ASIN/4342010208/yebisublog-22/ref=nosim/&#039;]);&quot;  href=&quot;http://www.amazlet.com/browse/ASIN/4342010208/yebisublog-22/ref=nosim/&quot; title=&quot;総合英語Forest&quot; target=&quot;_blank&quot;&gt;amazlet&lt;/a&gt; at 08.07.24&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;amazlet-detail&quot;&gt;墺 タカユキ 石黒 昭博 &lt;br /&gt;桐原書店 &lt;br /&gt;売り上げランキング: 220&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;amazlet-link&quot; style=&quot;margin-top: 5px&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/www.amazon.co.jp/exec/obidos/ASIN/4342010208/yebisublog-22/ref=nosim/&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/www.amazon.co.jp/exec/obidos/ASIN/4342010208/yebisublog-22/ref=nosim/&#039;]);&quot;  href=&quot;http://www.amazon.co.jp/exec/obidos/ASIN/4342010208/yebisublog-22/ref=nosim/&quot; name=&quot;amazletlink&quot; target=&quot;_blank&quot;&gt;Amazon.co.jp で詳細を見る&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;amazlet-footer&quot; style=&quot;clear: left&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
中学レベルから高校レベルまでの文法をザラっとすくっている内容。4色刷り。そして安い。各章が文法の形の解説で、基本→理解→応用のパターンがメイン。イラストをちょいちょい使ってるので、それも理解を助けてくれます。&lt;br /&gt;
&lt;br /&gt;
ただ、しょーもない例文が多い。変にカッチョよくしてるのよか分かり易くて良いのかも知れないけど、ちょっと不満。あと大学に入った直後に出てるのも許せない。これが受験時期にあったら手元の文法リファレンスにしてた。ロイヤル英文法使ってました。懐かしい。&lt;br /&gt;
&lt;br /&gt;
英文ブログとか読むには文法理解よりも語彙力が重要かなー。全然足りてない。&lt;br /&gt;
たまに堅めのコラムスタイルなブログを読む時には文法と英文解釈は必要に思える。&lt;br /&gt;
&lt;br /&gt;
「英会話は単語だよ、単語！」みたいな事を言う人をみると「こやつめ、ははは」とか思ってたんですが、実際それは間違いなかった。&lt;br /&gt;
&lt;br /&gt;
日本に来て半年のアメリカ人ゲームプログラマとゴールデン街で飲んだ事があって&lt;br /&gt;
&lt;br /&gt;
俺「most Japanese が play する game は their friends が play してるヤツなんだよ」&lt;br /&gt;
彼「ah...モンハン？」&lt;br /&gt;
&lt;br /&gt;
全然通じる。 
    </content:encoded>

    <pubDate>Thu, 24 Jul 2008 02:04:00 -0700</pubDate>
    <guid isPermaLink="false">http://thug4dev.com/index.php?/archives/214-guid.html</guid>
    
</item>
<item>
    <title>PHPフツウ</title>
    <link>http://thug4dev.com/index.php?/archives/213-PHP.html</link>
            <category>Blog</category>
            <category>PHP</category>
    
    <comments>http://thug4dev.com/index.php?/archives/213-PHP.html#comments</comments>
    <wfw:comment>http://thug4dev.com/wfwcomment.php?cid=213</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://thug4dev.com/rss.php?version=2.0&amp;type=comments&amp;cid=213</wfw:commentRss>
    

    <author>nospam@example.com (kiyosick)</author>
    <content:encoded>
    &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/diary.eth.jp/?date=20080707#p01&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/diary.eth.jp/?date=20080707#p01&#039;]);&quot;  href=&quot;http://diary.eth.jp/?date=20080707#p01&quot;&gt;PHPサイキョウ&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
「rocks」でやった結果。&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Results 1 - 10 of about 6,900 for &quot;PHP rocks&quot;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;
なるほど。&lt;br /&gt;
他はどうか。&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Results 1 - 10 of about 36,900 for &quot;Ruby rocks&quot;&lt;/li&gt;
&lt;li&gt;Results 1 - 10 of about 8,700 for &quot;Python rocks&quot;&lt;/li&gt;
&lt;li&gt;Results 1 - 10 of about 1,580 for &quot;Perl rocks&quot;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;
Ruby 圧倒的過ぎるだろ。&lt;br /&gt;
&lt;br /&gt;
その他。&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Results 1 - 10 of about 10,100 for &quot;C++ rocks&quot;&lt;/li&gt;
&lt;li&gt;Results 1 - 10 of about 9,540 for &quot;Java rocks&quot;&lt;/li&gt;
&lt;li&gt;Results 1 - 10 of about 973 for &quot;C# rocks&quot;&lt;/li&gt;
&lt;li&gt;Results 1 - 10 of about 496 for &quot;JavaScript rocks&quot;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;
C++ と Java が大体同じくらいで Python より多い。意外。&lt;br /&gt;
&lt;br /&gt;
ついでに「rules」でもやってみた。&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Results 1 - 10 of about 24,000 for &quot;PHP rules&quot;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;
すげえ！これは期待出来る！&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Results 1 - 10 of about 31,700 for &quot;Ruby rules&quot;&lt;/li&gt;
&lt;li&gt;Results 1 - 10 of about 9,690 for &quot;Python rules&quot;&lt;/li&gt;
&lt;li&gt;Results 1 - 10 of about 5,570 for &quot;Perl rules&quot;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;
Ruby 強すぎ。&lt;br /&gt;
&lt;br /&gt;
おまけ。&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Results 1 - 2 of 2 for &quot;UnrealScript rocks&quot;&lt;/li&gt;
&lt;li&gt;Results 1 - 3 of 3 for &quot;UnrealScript sucks&quot;&lt;/li&gt;&lt;/ul&gt; 
    </content:encoded>

    <pubDate>Tue, 08 Jul 2008 01:29:03 -0700</pubDate>
    <guid isPermaLink="false">http://thug4dev.com/index.php?/archives/213-guid.html</guid>
    
</item>
<item>
    <title>PHPMock を触ってみた</title>
    <link>http://thug4dev.com/index.php?/archives/212-PHPMock.html</link>
            <category>Blog</category>
            <category>PHP</category>
    
    <comments>http://thug4dev.com/index.php?/archives/212-PHPMock.html#comments</comments>
    <wfw:comment>http://thug4dev.com/wfwcomment.php?cid=212</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://thug4dev.com/rss.php?version=2.0&amp;type=comments&amp;cid=212</wfw:commentRss>
    

    <author>nospam@example.com (kiyosick)</author>
    <content:encoded>
    『次世代 Mock Object フレームワークの雄』として一部から熱く注目されている（と思いたい） &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/code.google.com/p/phpmock/&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/code.google.com/p/phpmock/&#039;]);&quot;  href=&quot;http://code.google.com/p/phpmock/&quot;&gt;PHPMock&lt;/a&gt; ですが、ちょろっとテストコード読んだくらいで触った事が無かったのでトライ。&lt;br /&gt;
&lt;br /&gt;
ちなみに PHPMock のテストコードは PHPSpec で書かれている。個人的には残念な書き味というか、読みやすくない。PHPUnit バンザイ。&lt;br /&gt;
&lt;br /&gt;
ただ PHPUnit の Mock はもうちょっと融通利かせてもらえると有難い。という所で PHPMock はどうか。&lt;br /&gt;
&lt;br /&gt;
Let’s do this.&lt;br /&gt;
&lt;br /&gt;
PHPMock にはまともなドキュメントが一切無い。tgz 玉もないので &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/code.google.com/p/phpmock/source/checkout&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/code.google.com/p/phpmock/source/checkout&#039;]);&quot;  href=&quot;http://code.google.com/p/phpmock/source/checkout&quot;&gt;Google Code からチェックアウト&lt;/a&gt;するしかない。specs ディレクトリにテストコードがあるのでこいつを見れば大体の使い方はわかる。test as document を地で行く感じだ。メソッド名は RSpec の mock/stub に似ているというか似せてある。&lt;br /&gt;
&lt;br /&gt;
テストコードはこんな感じ。&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/download/src/phpmock_demo.zip&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/download/src/phpmock_demo.zip&#039;]);&quot;  href=&quot;http://thug4dev.com/src/phpmock_demo.zip&quot;&gt;ダウンロードはこちら。&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
■ test/ProductServiceTest.php&lt;br /&gt;
&lt;pre class=&quot;textmate-source espresso_libre&quot;&gt;&lt;span class=&quot;source source_php source_php_s2php5&quot;&gt;&lt;span class=&quot;source source_php source_php_embedded source_php_embedded_block source_php_embedded_block_html&quot;&gt;&lt;span class=&quot;punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_begin punctuation_section_embedded_begin_php&quot;&gt;&amp;lt;?php&lt;/span&gt;
&lt;span class=&quot;support support_function support_function_builtin_functions support_function_builtin_functions_php&quot;&gt;define&lt;/span&gt;(&lt;span class=&quot;constant constant_other constant_other_php&quot;&gt;DEMO_ROOT&lt;/span&gt;, &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot;&gt;dirname&lt;/span&gt;(&lt;span class=&quot;support support_function support_function_string support_function_string_php&quot;&gt;dirname&lt;/span&gt;(&lt;span class=&quot;constant constant_language constant_language_php&quot;&gt;&lt;u&gt;_FILE_&lt;/u&gt;&lt;/span&gt;)))&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;meta meta_include meta_include_php&quot;&gt;&lt;span class=&quot;keyword keyword_control keyword_control_import keyword_control_import_include keyword_control_import_include_php&quot;&gt;require_once&lt;/span&gt; &lt;span class=&quot;constant constant_other constant_other_php&quot;&gt;DEMO_ROOT&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;/phpmock/src/PHPMock.php&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&#039;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;meta meta_include meta_include_php&quot;&gt;&lt;span class=&quot;keyword keyword_control keyword_control_import keyword_control_import_include keyword_control_import_include_php&quot;&gt;require_once&lt;/span&gt; &lt;span class=&quot;constant constant_other constant_other_php&quot;&gt;DEMO_ROOT&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php&quot;&gt;/lib/ProductService.php&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;meta meta_include meta_include_php&quot;&gt;&lt;span class=&quot;keyword keyword_control keyword_control_import keyword_control_import_include keyword_control_import_include_php&quot;&gt;require_once&lt;/span&gt; &lt;span class=&quot;constant constant_other constant_other_php&quot;&gt;DEMO_ROOT&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;/lib/IDBConnection.php&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&#039;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;meta meta_include meta_include_php&quot;&gt;&lt;span class=&quot;keyword keyword_control keyword_control_import keyword_control_import_include keyword_control_import_include_php&quot;&gt;require_once&lt;/span&gt; &lt;span class=&quot;constant constant_other constant_other_php&quot;&gt;DEMO_ROOT&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;/lib/Publisher.php&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&#039;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;meta meta_class meta_class_php&quot;&gt;&lt;span class=&quot;storage storage_type storage_type_class storage_type_class_php&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;entity entity_name entity_name_type entity_name_type_class entity_name_type_class_php&quot;&gt;ProductServiceTest&lt;/span&gt; &lt;span class=&quot;storage storage_modifier storage_modifier_extends storage_modifier_extends_php&quot;&gt;extends&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_inherited-class entity_other_inherited-class_php&quot;&gt;PHPUnit_Framework_TestCase&lt;/span&gt;
{&lt;/span&gt;
    &lt;span class=&quot;storage storage_modifier storage_modifier_php&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;constant constant_other constant_other_php&quot;&gt;PRODUCT_ID&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;constant constant_numeric constant_numeric_php&quot;&gt;1234&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
    
    &lt;span class=&quot;storage storage_modifier storage_modifier_php&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;storage storage_type storage_type_php&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;entity entity_name entity_name_function entity_name_function_php&quot;&gt;test_プロダクトを全件取得する&lt;/span&gt; ()
    {
        &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;mockDb&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;support support_class support_class_php&quot;&gt;PHPMock&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_static meta_function-call_static_php&quot;&gt;mock&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;DBConnection&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&#039;&lt;/span&gt;&lt;/span&gt;)&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;mockDb&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;shouldReceive&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;execute&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&#039;&lt;/span&gt;&lt;/span&gt;)
               &lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;withAnyArgs&lt;/span&gt;()
               &lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;once&lt;/span&gt;()
               &lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;andReturn&lt;/span&gt;(
                 &lt;span class=&quot;meta meta_array meta_array_php&quot;&gt;&lt;span class=&quot;support support_function support_function_construct support_function_construct_php&quot;&gt;array&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_array punctuation_definition_array_begin punctuation_definition_array_begin_php&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&#039;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_key keyword_operator_key_php&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;NINJA GAIDEN 2&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&#039;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_array punctuation_definition_array_end punctuation_definition_array_end_php&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
               )&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;this&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;variable variable_other variable_other_property variable_other_property_php&quot;&gt;service&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;setDBConnection&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;mockDb&lt;/span&gt;)&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;this&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;assertNotNull&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;this&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;variable variable_other variable_other_property variable_other_property_php&quot;&gt;service&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;getAll&lt;/span&gt;())&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
    }

    &lt;span class=&quot;storage storage_modifier storage_modifier_php&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;storage storage_type storage_type_php&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;entity entity_name entity_name_function entity_name_function_php&quot;&gt;test_プロダクトIDからパブリッシャの名前を取得する&lt;/span&gt;()
    {
        &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;mockPublisher&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot;&gt;=&lt;/span&gt; 
            &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;this&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;createPublisherMock&lt;/span&gt;(&lt;span class=&quot;storage storage_type storage_type_php&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;constant constant_other constant_other_class constant_other_class_php&quot;&gt;PRODUCT_ID&lt;/span&gt;)&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;this&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;variable variable_other variable_other_property variable_other_property_php&quot;&gt;service&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;setPublisher&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;mockPublisher&lt;/span&gt;)&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;publisher&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;this&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;variable variable_other variable_other_property variable_other_property_php&quot;&gt;service&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;
                &lt;span class=&quot;meta meta_function-call meta_function-call_php&quot;&gt;getPublisherByProductId&lt;/span&gt;(&lt;span class=&quot;storage storage_type storage_type_php&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;constant constant_other constant_other_class constant_other_class_php&quot;&gt;PRODUCT_ID&lt;/span&gt;)&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;this&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;assertEquals&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;Activision&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&#039;&lt;/span&gt;&lt;/span&gt;, &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;publisher&lt;/span&gt;[&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&#039;&lt;/span&gt;&lt;/span&gt;])&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
    }

    &lt;span class=&quot;storage storage_modifier storage_modifier_php&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;storage storage_type storage_type_php&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;entity entity_name entity_name_function entity_name_function_php&quot;&gt;test_クイックモックでfindAllしてみる&lt;/span&gt;()
    {
        &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;mockPublisher&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;support support_class support_class_php&quot;&gt;PHPMock&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_static meta_function-call_static_php&quot;&gt;mock&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;Publisher&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&#039;&lt;/span&gt;&lt;/span&gt;, 
                            &lt;span class=&quot;meta meta_array meta_array_php&quot;&gt;&lt;span class=&quot;support support_function support_function_construct support_function_construct_php&quot;&gt;array&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_array punctuation_definition_array_begin punctuation_definition_array_begin_php&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;findAll&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&#039;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_key keyword_operator_key_php&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;meta meta_array meta_array_php&quot;&gt;&lt;span class=&quot;support support_function support_function_construct support_function_construct_php&quot;&gt;array&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_array punctuation_definition_array_begin punctuation_definition_array_begin_php&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_array punctuation_definition_array_end punctuation_definition_array_end_php&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_array punctuation_definition_array_end punctuation_definition_array_end_php&quot;&gt;)&lt;/span&gt;&lt;/span&gt;)&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;mockPublisher&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;findAll&lt;/span&gt;()&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;this&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;assertTrue&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;mockPublisher&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;verify&lt;/span&gt;())&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
    }

    &lt;span class=&quot;storage storage_modifier storage_modifier_php&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;storage storage_type storage_type_php&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;entity entity_name entity_name_function entity_name_function_php&quot;&gt;test_引数がマッチしなければ例外を投げる&lt;/span&gt;()
    {
        &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;mockPublisher&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot;&gt;=&lt;/span&gt; 
            &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;this&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;createPublisherMock&lt;/span&gt;(&lt;span class=&quot;storage storage_type storage_type_php&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;constant constant_other constant_other_class constant_other_class_php&quot;&gt;PRODUCT_ID&lt;/span&gt;)&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;keyword keyword_control keyword_control_exception keyword_control_exception_php&quot;&gt;try&lt;/span&gt; {
            &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;mockPublisher&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;findByProductId&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot;&gt;9999&lt;/span&gt;)&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
        } &lt;span class=&quot;meta meta_catch meta_catch_php&quot;&gt;&lt;span class=&quot;keyword keyword_control keyword_control_exception keyword_control_exception_php&quot;&gt;catch&lt;/span&gt; (&lt;span class=&quot;support support_class support_class_php&quot;&gt;Exception&lt;/span&gt; &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;e&lt;/span&gt;)&lt;/span&gt; {
            &lt;span class=&quot;keyword keyword_control keyword_control_php&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
        }
        &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;this&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;fail&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php&quot;&gt;An expected exception has not been raised.&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;)&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
    }

    &lt;span class=&quot;storage storage_modifier storage_modifier_php&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;storage storage_type storage_type_php&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;entity entity_name entity_name_function entity_name_function_php&quot;&gt;test_PHPUnitのMockObjectはこんな感じ&lt;/span&gt;()
    {
        &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;mock&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;this&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;getMock&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;DBConnection&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&#039;&lt;/span&gt;&lt;/span&gt;, 
                &lt;span class=&quot;meta meta_array meta_array_php&quot;&gt;&lt;span class=&quot;support support_function support_function_construct support_function_construct_php&quot;&gt;array&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_array punctuation_definition_array_begin punctuation_definition_array_begin_php&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;execute&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&#039;&lt;/span&gt;&lt;/span&gt;, &lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;preparedStatement&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&#039;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_array punctuation_definition_array_end punctuation_definition_array_end_php&quot;&gt;)&lt;/span&gt;&lt;/span&gt;)&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;mock&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;expects&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;this&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;once&lt;/span&gt;())
             &lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;method&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;execute&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&#039;&lt;/span&gt;&lt;/span&gt;)
             &lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;will&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;this&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;returnValue&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;aaaa&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&#039;&lt;/span&gt;&lt;/span&gt;))&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;this&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;assertEquals&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;aaaa&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&#039;&lt;/span&gt;&lt;/span&gt;, &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;mock&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;execute&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php&quot;&gt;sql statement&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;))&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
    }

&lt;span class=&quot;meta meta_function meta_function_php&quot;&gt;    &lt;span class=&quot;storage storage_modifier storage_modifier_php&quot;&gt;public &lt;/span&gt;&lt;span class=&quot;storage storage_type storage_type_function storage_type_function_php&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;entity entity_name entity_name_function entity_name_function_php&quot;&gt;createPublisherMock&lt;/span&gt; &lt;span class=&quot;punctuation punctuation_definition punctuation_definition_parameters punctuation_definition_parameters_begin punctuation_definition_parameters_begin_php&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;meta meta_function meta_function_arguments meta_function_arguments_php&quot;&gt;&lt;span class=&quot;meta meta_function meta_function_argument meta_function_argument_no-default meta_function_argument_no-default_php&quot;&gt;&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;productId&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;)&lt;/span&gt;
    {
        &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;mock&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;support support_class support_class_php&quot;&gt;PHPMock&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_static meta_function-call_static_php&quot;&gt;mock&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;Publisher&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&#039;&lt;/span&gt;&lt;/span&gt;)&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;mock&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;shouldReceive&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;findByProductId&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&#039;&lt;/span&gt;&lt;/span&gt;)
             &lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;with&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;productId&lt;/span&gt;)
             &lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;andReturn&lt;/span&gt;(
                 &lt;span class=&quot;meta meta_array meta_array_php&quot;&gt;&lt;span class=&quot;support support_function support_function_construct support_function_construct_php&quot;&gt;array&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_array punctuation_definition_array_begin punctuation_definition_array_begin_php&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&#039;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_key keyword_operator_key_php&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;Activision&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php&quot;&gt;&#039;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_array punctuation_definition_array_end punctuation_definition_array_end_php&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
             )&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;   
        &lt;span class=&quot;keyword keyword_control keyword_control_php&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;mock&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
    }

&lt;span class=&quot;meta meta_function meta_function_php&quot;&gt;    &lt;span class=&quot;storage storage_modifier storage_modifier_php&quot;&gt;public &lt;/span&gt;&lt;span class=&quot;storage storage_type storage_type_function storage_type_function_php&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;entity entity_name entity_name_function entity_name_function_php&quot;&gt;setUp&lt;/span&gt; &lt;span class=&quot;punctuation punctuation_definition punctuation_definition_parameters punctuation_definition_parameters_begin punctuation_definition_parameters_begin_php&quot;&gt;(&lt;/span&gt;)&lt;/span&gt;
    {
        &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;this&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;variable variable_other variable_other_property variable_other_property_php&quot;&gt;service&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;keyword keyword_other keyword_other_new keyword_other_new_php&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;support support_class support_class_php&quot;&gt;ProductService&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
    }

&lt;span class=&quot;meta meta_function meta_function_php&quot;&gt;    &lt;span class=&quot;storage storage_modifier storage_modifier_php&quot;&gt;public &lt;/span&gt;&lt;span class=&quot;storage storage_type storage_type_function storage_type_function_php&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;entity entity_name entity_name_function entity_name_function_php&quot;&gt;tearDown&lt;/span&gt; &lt;span class=&quot;punctuation punctuation_definition punctuation_definition_parameters punctuation_definition_parameters_begin punctuation_definition_parameters_begin_php&quot;&gt;(&lt;/span&gt;)&lt;/span&gt;
    {
    }
}&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
で、このコードは実行すると「test_引数がマッチしなければ例外を投げる」でコケる。&lt;br /&gt;
PHPMock_Expectation#matchArgs に問題があって&lt;br /&gt;
&lt;br /&gt;
■ phpmock/src/PHPMock/Expectation/Expectation.php&lt;br /&gt;
&lt;pre class=&quot;textmate-source espresso_libre&quot;&gt;&lt;span class=&quot;meta meta_function meta_function_php&quot;&gt;    &lt;span class=&quot;storage storage_modifier storage_modifier_php&quot;&gt;public &lt;/span&gt;&lt;span class=&quot;storage storage_type storage_type_function storage_type_function_php&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;entity entity_name entity_name_function entity_name_function_php&quot;&gt;matchArgs&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_parameters punctuation_definition_parameters_begin punctuation_definition_parameters_begin_php&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;meta meta_function meta_function_arguments meta_function_arguments_php&quot;&gt;&lt;span class=&quot;meta meta_function meta_function_argument meta_function_argument_array meta_function_argument_array_php&quot;&gt;&lt;span class=&quot;storage storage_type storage_type_php&quot;&gt;array&lt;/span&gt; &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;args&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;)&lt;/span&gt;
    {
        &lt;span class=&quot;keyword keyword_control keyword_control_php&quot;&gt;if&lt;/span&gt; (&lt;span class=&quot;support support_function support_function_construct support_function_construct_php&quot;&gt;empty&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;args&lt;/span&gt;) &lt;span class=&quot;keyword keyword_operator keyword_operator_logical keyword_operator_logical_php&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;support support_function support_function_construct support_function_construct_php&quot;&gt;empty&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;this&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;variable variable_other variable_other_property variable_other_property_php&quot;&gt;_expectedArgs&lt;/span&gt;) &lt;span class=&quot;keyword keyword_operator keyword_operator_logical keyword_operator_logical_php&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;support support_function support_function_type support_function_type_php&quot;&gt;is_array&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;this&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;variable variable_other variable_other_property variable_other_property_php&quot;&gt;_expectedArgs&lt;/span&gt;)) {
            &lt;span class=&quot;keyword keyword_control keyword_control_php&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;constant constant_language constant_language_php&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
        } &lt;span class=&quot;keyword keyword_control keyword_control_php&quot;&gt;elseif&lt;/span&gt; (&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;args&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_php&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;this&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;variable variable_other variable_other_property variable_other_property_php&quot;&gt;_expectedArgs&lt;/span&gt;) {
            &lt;span class=&quot;keyword keyword_control keyword_control_php&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;constant constant_language constant_language_php&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
        } &lt;span class=&quot;keyword keyword_control keyword_control_php&quot;&gt;elseif&lt;/span&gt; (&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;this&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;variable variable_other variable_other_property variable_other_property_php&quot;&gt;_expectedArgs&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_php&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;constant constant_language constant_language_php&quot;&gt;true&lt;/span&gt;) {
            &lt;span class=&quot;keyword keyword_control keyword_control_php&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;constant constant_language constant_language_php&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
        } &lt;span class=&quot;keyword keyword_control keyword_control_php&quot;&gt;elseif&lt;/span&gt; (&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;this&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;variable variable_other variable_other_property variable_other_property_php&quot;&gt;_expectedArgs&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_php&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;constant constant_language constant_language_php&quot;&gt;false&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_logical keyword_operator_logical_php&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;support support_function support_function_construct support_function_construct_php&quot;&gt;empty&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php&quot;&gt;$&lt;/span&gt;args&lt;/span&gt;)) {
            &lt;span class=&quot;keyword keyword_control keyword_control_php&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;constant constant_language constant_language_php&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
        }  
        &lt;span class=&quot;keyword keyword_control keyword_control_php&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;constant constant_language constant_language_php&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php&quot;&gt;;&lt;/span&gt;
    }&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
「$this-&gt;_expectedArgs &lt;strong&gt;==&lt;/strong&gt; true」これだと $this-&gt;_expectedArgs に値が入ってれば true になっちゃうという良く話題になるアレです。正解は「$this-&gt;_expectedArgs &lt;strong&gt;===&lt;/strong&gt; true」これですな。&lt;br /&gt;
&lt;br /&gt;
上のコードで使っている DBConnection はインターフェースで Publisher は空っぽのクラス。&lt;br /&gt;
インターフェースに定義されているメソッドは PHPMock#_generateDefForMethods がよしなに実装してくれるので安心。PHPUnit の Mock Object だと定義したメソッドをイチイチ配列で全部ツッコまないといけない。&lt;br /&gt;
&lt;br /&gt;
いわゆるスタブは無くて shouldReceive 一本になると思われる。&lt;br /&gt;
PHPMock#mock の第二引数に array($methodName =&gt; $returnValue) を与える事で簡単にモックが作れるのは好感。&lt;br /&gt;
&lt;br /&gt;
■ まとめ&lt;br /&gt;
	&lt;ul&gt;
	&lt;li&gt;まだまだ挙動が怪しい点はある&lt;/li&gt;
		&lt;li&gt;それでも &lt;span class=&quot;caps&quot;&gt;PHP&lt;/span&gt;Unit の mock よりは楽できる&lt;/li&gt;

		&lt;li&gt;テストコード内でザクザクモック作りたいなら MockInterceptor よりオススメ&lt;/li&gt;
	&lt;/ul&gt; 
    </content:encoded>

    <pubDate>Mon, 23 Jun 2008 20:37:00 -0700</pubDate>
    <guid isPermaLink="false">http://thug4dev.com/index.php?/archives/212-guid.html</guid>
    
</item>
<item>
    <title>Battlefield: Bad Company のミニトレイラーが面白すぎる</title>
    <link>http://thug4dev.com/index.php?/archives/211-Battlefield-Bad-Company.html</link>
            <category>Games</category>
    
    <comments>http://thug4dev.com/index.php?/archives/211-Battlefield-Bad-Company.html#comments</comments>
    <wfw:comment>http://thug4dev.com/wfwcomment.php?cid=211</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://thug4dev.com/rss.php?version=2.0&amp;type=comments&amp;cid=211</wfw:commentRss>
    

    <author>nospam@example.com (kiyosick)</author>
    <content:encoded>
    今週発売される DICE のモダンコンバット FPS「Battlefield: Bad Company」のミニトレイラーが公開されていますが、これがパロディシリーズになっていて非常楽しめる！&lt;br /&gt;
&lt;br /&gt;
■ Snake Eyes（MGS4 パロディ）&lt;br /&gt;
&lt;object width=&quot;425&quot; height=&quot;344&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/7uRX6K-A_Xg&amp;hl=ja&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/7uRX6K-A_Xg&amp;hl=ja&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;425&quot; height=&quot;344&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;
「iPod 持ってるヤツがバレルの中に隠れてるんだよ！」「段ボールに隠れるくらいバカだろ」「ソリッド…メタル…良く判んないけど日本のムービーでそんなのが！」&lt;br /&gt;
これは笑った。&lt;br /&gt;
&lt;br /&gt;
■ Bad World（Gears of War パロディ）&lt;br /&gt;
&lt;object width=&quot;425&quot; height=&quot;344&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/-LnmR1X3G9I&amp;hl=ja&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/-LnmR1X3G9I&amp;hl=ja&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;425&quot; height=&quot;344&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;
GoW の CM で使われていた「Mad World」をフィーチャー。「the dreams in which i&#039;m dying are the best i&#039;ve ever had ってどういう事だよ！」「これを歌え Mama&#039;s little baby loves Short&#039;nin&#039; bread」&lt;br /&gt;
くだらねー。&lt;br /&gt;
&lt;br /&gt;
■ Rainbow Sprinkles（RainbowSix パロディ）&lt;br /&gt;
&lt;object width=&quot;425&quot; height=&quot;344&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/uK9wPfUB0ak&amp;hl=ja&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/uK9wPfUB0ak&amp;hl=ja&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;425&quot; height=&quot;344&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;
RainbowSix はステルスアクション FPS なので「これは隠密ミッションだ！」って感じ。「バックアップしろ」「ドアをブリーチしろ！」という風に仲間に指示して進めるのが R6 のゲームプレイ。B-Company なのでイチイチ言われた通りに行動しない所が良く表現出来てる。&lt;br /&gt;
この3本では一番好き。&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Mon, 23 Jun 2008 10:32:43 -0700</pubDate>
    <guid isPermaLink="false">http://thug4dev.com/index.php?/archives/211-guid.html</guid>
    
</item>
<item>
    <title>[RSpec] xit を知らなかった俺涙目</title>
    <link>http://thug4dev.com/index.php?/archives/210-RSpec-xit.html</link>
            <category>Blog</category>
    
    <comments>http://thug4dev.com/index.php?/archives/210-RSpec-xit.html#comments</comments>
    <wfw:comment>http://thug4dev.com/wfwcomment.php?cid=210</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://thug4dev.com/rss.php?version=2.0&amp;type=comments&amp;cid=210</wfw:commentRss>
    

    <author>nospam@example.com (kiyosick)</author>
    <content:encoded>
    RSpec 使って開発してて、ちょっと一手戻りたい時に it 節というか example をバコっとコメントアウトしてたんですけど。&lt;br /&gt;
&lt;br /&gt;
■example_group_methods.rb&lt;br /&gt;
&lt;pre class=&quot;textmate-source espresso_libre&quot;&gt;&lt;span class=&quot;comment comment_line comment_line_number-sign comment_line_number-sign_ruby&quot;&gt;      &lt;span class=&quot;punctuation punctuation_definition punctuation_definition_comment punctuation_definition_comment_ruby&quot;&gt;#&lt;/span&gt; Use this to temporarily disable an example.
&lt;/span&gt;      &lt;span class=&quot;meta meta_function meta_function_method meta_function_method_with-arguments meta_function_method_with-arguments_ruby&quot;&gt;&lt;span class=&quot;keyword keyword_control keyword_control_def keyword_control_def_ruby&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;entity entity_name entity_name_function entity_name_function_ruby&quot;&gt;xit&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_parameters punctuation_definition_parameters_ruby&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;variable variable_parameter variable_parameter_function variable_parameter_function_ruby&quot;&gt;description&lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;constant constant_language constant_language_ruby&quot;&gt;nil&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_separator punctuation_separator_object punctuation_separator_object_ruby&quot;&gt;,&lt;/span&gt; opts&lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_section punctuation_section_scope punctuation_section_scope_ruby&quot;&gt;{}&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_separator punctuation_separator_object punctuation_separator_object_ruby&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby&quot;&gt;&amp;amp;&lt;/span&gt;block&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_parameters punctuation_definition_parameters_ruby&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
        &lt;span class=&quot;support support_class support_class_ruby&quot;&gt;Kernel&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_separator punctuation_separator_method punctuation_separator_method_ruby&quot;&gt;.&lt;/span&gt;warn&lt;span class=&quot;punctuation punctuation_section punctuation_section_function punctuation_section_function_ruby&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_ruby&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_ruby&quot;&gt;&quot;&lt;/span&gt;Example disabled: &lt;span class=&quot;source source_ruby source_ruby_embedded source_ruby_embedded_source&quot;&gt;&lt;span class=&quot;punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby&quot;&gt;#{&lt;/span&gt;description&lt;span class=&quot;punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_ruby&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_section punctuation_section_function punctuation_section_function_ruby&quot;&gt;)&lt;/span&gt;
      &lt;span class=&quot;keyword keyword_control keyword_control_ruby&quot;&gt;end&lt;/span&gt;
      &lt;span class=&quot;keyword keyword_control keyword_control_pseudo-method keyword_control_pseudo-method_ruby&quot;&gt;alias_method&lt;/span&gt; &lt;span class=&quot;constant constant_other constant_other_symbol constant_other_symbol_ruby&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby&quot;&gt;:&lt;/span&gt;xspecify&lt;/span&gt;&lt;span class=&quot;punctuation punctuation_separator punctuation_separator_object punctuation_separator_object_ruby&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;constant constant_other constant_other_symbol constant_other_symbol_ruby&quot;&gt;&lt;span class=&quot;punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby&quot;&gt;:&lt;/span&gt;xit&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
とびてー。&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Thu, 19 Jun 2008 23:03:52 -0700</pubDate>
    <guid isPermaLink="false">http://thug4dev.com/index.php?/archives/210-guid.html</guid>
    
</item>
<item>
    <title>炎上必至のフレームワーク</title>
    <link>http://thug4dev.com/index.php?/archives/209-unknown.html</link>
            <category>Blog</category>
            <category>PHP</category>
    
    <comments>http://thug4dev.com/index.php?/archives/209-unknown.html#comments</comments>
    <wfw:comment>http://thug4dev.com/wfwcomment.php?cid=209</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://thug4dev.com/rss.php?version=2.0&amp;type=comments&amp;cid=209</wfw:commentRss>
    

    <author>nospam@example.com (kiyosick)</author>
    <content:encoded>
    &lt;div class=&quot;thumbnail&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/skitch.com/kiyoshiyoshida/khug/ts3a0012&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/skitch.com/kiyoshiyoshida/khug/ts3a0012&#039;]);&quot;  href=&quot;http://skitch.com/kiyoshiyoshida/khug/ts3a0012&quot;&gt;&lt;img src=&quot;http://img.skitch.com/20080506-tgm1djku5d9np3kbre8ensdej5.preview.jpg&quot; alt=&quot;TS3A0012&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Lucida Grande, Trebuchet, sans-serif, Helvetica, Arial; font-size: 10px; color: #808080&quot;&gt;Uploaded with &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/plasq.com/&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/plasq.com/&#039;]);&quot;  href=&quot;http://plasq.com/&quot;&gt;plasq&lt;/a&gt;&#039;s &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/skitch.com&#039;]);&quot;  onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/skitch.com&#039;]);&quot;  href=&quot;http://skitch.com&quot;&gt;Skitch&lt;/a&gt;!&lt;/span&gt;&lt;/div&gt; 
    </content:encoded>

    <pubDate>Tue, 06 May 2008 17:03:17 -0700</pubDate>
    <guid isPermaLink="false">http://thug4dev.com/index.php?/archives/209-guid.html</guid>
    
</item>

</channel>
</rss>