Skip to content

Instantly share code, notes, and snippets.

@kkanazaw kkanazaw/gist:8764838
Last active Aug 29, 2015

What would you like to do?
class HogeTest extends PHPUnit_Framework_TestCase {
// テスト実行前にtmpディレクトリ以下に*.phpファイルをコピー
// でtmp以下のファイルを置換する
public static function setUpBeforeClass() {
`mkdir -p tmp; cp *.php tmp/`;
`find tmp/ -name '*.php' | xargs perl -i -pe 's/(require_once)/\/\/$1/g;'`;
function testNew() {
$hoge = new Hoge();
public static function tearDownAfterClass() {
`rm -rf ./tmp`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.