セッションを絡んだ箇所のテストコードを PHPUnit で書いていると Zend_Session_Exception: Session must be started before any output has been sent to the browser; output started in /usr/local/lib/php/PHPUnit/Util/Printer.php/174というつれないエラーが出た。 id:shimooka さんの所に PHPUnit で header already sent 〜に対処するパッチがあるので、それを当てて PHPUnit を実行するとうまい事動いた。 http://d.hatena.ne.jp/shimooka/20090811/1249983652 id:shimooka ++ が、Piece Framework の Stagehand