ci-phpunit-testのCodeIgniter 3.0.1対応
ci-phpunit-testをCodeIgniter 3.0.1対応させるための作業メモです。
現状の変更点の把握
$ cd ci-app-for-ci-phpunit-test/
$ cd vendor/kenjis/ci-phpunit-test/
$ bin/check-diff.sh > ci-phpunit-test-ci300.diff
tests/Bootstrap.phpおよびtests/_ci_phpunit_test/replacing/core/Loader.phpでの変更点が確認できる。
新バージョン(3.0.1)での変更点の把握
ci-phpunit-testフォルダにCodeIgniter-3.0.0.zipおよびCodeIgniter-3.0.1.zipを配置しておく。
$ bin/check-ci-diff.sh CodeIgniter-3.0.0.zip CodeIgniter-3.0.1.zip
CodeIgniter-3.0.0-CodeIgniter-3.0.1.diffおよびCodeIgniter-3.0.0-CodeIgniter-3.0.1.ci-phpunit-test-only.diffが作成される。
変更ファイル一覧
ci-phpunit-testで変更しているCodeIgniterのファイルは以下の通り。
index.php → tests/Bootstrap.php
system/core/Loader.php → tests/_ci_phpunit_test/replacing/core/Loader.php
system/core/Common.php → tests/_ci_phpunit_test/replacing/core/Common.php
system/helpers/url_helper.php → tests/_ci_phpunit_test/replacing/helper/url_helper.php
必要なファイルのアップデート
作成した
ci-phpunit-test-ci300.diffCodeIgniter-3.0.0-CodeIgniter-3.0.1.ci-phpunit-test-only.diffCodeIgniter-3.0.0-CodeIgniter-3.0.1.diff
を確認し、必要なファイルをアップデートする。
変更範囲については、https://github.com/kenjis/ci-phpunit-test/blob/master/docs/HowToWriteTests.md#can-and-cant も参照のこと。
アップデート内容の確認
$ bin/check-diff.sh
tests/Bootstrap.phpおよびtests/_ci_phpunit_test/replacing/core/Loader.phpでの変更点が確認できる。
関連
Date: 2015/08/12



![徹底攻略PHP5技術者認定[上級]試験問題集 [PJ0-200]対応 徹底攻略PHP5技術者認定[上級]試験問題集 [PJ0-200]対応](http://tatsu-zine.com/images/books/164/cover_s.jpg)

