2007-02-24 04:19 hawkring * Core/Controller.php, examples, examples/webapp, examples/webapp/components, examples/webapp/config, examples/webapp/config/default.php, examples/webapp/config/env, examples/webapp/config/env/devel.php, examples/webapp/config/root.dicon.php: Core/Controller.php examples/* 追加 2007-02-01 08:27 hawkring * Framework.php, tests/root/Kaede_FrameworkTest.php: Framework.php:追加 2007-02-01 07:52 hawkring * Core/ErrorHandler.php, tests/Core/ErrorHandlerTest.php: エラーメッセージの英語を少し修正 setupメソッドの戻り値がbooleanになっていなかったのを修正 2007-02-01 00:05 hawkring * tests/Core/ErrorHandlerTest.php: テストに使用していたデータ(PEAR_ErrorStackのエラー配列) の形式が間違っていたので修正 2007-01-31 12:19 hawkring * data/errors.ja-utf8.ini: メッセージを少し修正 2007-01-31 12:16 hawkring * Util/VarDump.php, data/templates, data/templates/errorDebug.php: Util/VarDump.php: dBug/Var_Dump/var_dumpに対するWrapper data/templates/errorDebug.php: デバッグ用のエラーテンプレート 追加 2007-01-31 12:14 hawkring * Core/ErrorHandler.php, tests/Core/ErrorHandlerTest.php, tests/Core/fixture, tests/Core/fixture/errorTemplate.php: Core/ErrorHandler.php - setupメソッド内にmessageCallbackの設定を追加 - テンプレートファイルのincludeを、Kaede_Util_File::loadOnceから直接includeに変更  (変数を通してテンプレートファイル内に情報を渡す必要があるため) - context[method] -> context[function] 2007-01-31 11:37 hawkring * Core/ErrorHandler.php, tests/Core/ErrorHandlerTest.php, tests/Util/fixture/child/foo.ini, tests/Util/fixture/test.ini: Core/ErrorHandler.php追加 2007-01-31 06:58 hawkring * Util/File.php, tests/Util/FileTest.php: Util/File.php: getIncludableFileメソッド追加 parseIniFileメソッド追加 2007-01-31 05:57 hawkring * Core/ErrorHandler, Core/ErrorHandler/MessageGenerator.php, tests/Core/ErrorHandler_MessageGeneratorTest.php: Core/ErrorHandler/MessageGenerator.php追加 2007-01-31 05:56 hawkring * tests/run.php: テストファイルのパターンを修正 xxxTest.php~のようなファイルが含まれないようにした 2007-01-29 13:54 hawkring * DIx/ContainerFactory.php, data/errors.ja-utf8.ini: errors.ja-utf8.ini: メッセージフォーマットが一部間違っていたので修正 DIx/ContainerFactory.php: initメソッドで設定ファイルの検索パスを設定するようにした 2007-01-28 00:40 hawkring * Error.php, tests/root/Kaede_ErrorTest.php, tests/run.php: PEAR_ErrorStackに使用するパッケージ名を Kaede_CoreからKaede_Frameworkに変更 2007-01-28 00:36 hawkring * DIx/ConstMap/Config.php, tests/DIx/ConstMap_ConfigTest.php: DIx/ConstMap/Config.php: keyに '*' を指定した場合、設定全体を配列として返すようにした 2007-01-28 00:32 hawkring * Util/File.php: realpathはファイルが存在しない場合に 必ずしもfalseを返すわけではない(BSD系のシステム等)ので、 file_existsを併用するようにした realpathのこの動作についてはマニュアル参照 2007-01-27 12:03 hawkring * DIx/EventListener/AnnotationBinding.php, tests/DIx/EventListener_AnnotationBindingTest.php: DIx/EventListener/AnnotationBinding.php イベントbeforeInitializeOnceに与えられる 引数の解釈が間違っていたので修正 2007-01-27 11:42 hawkring * DIx/ContainerFactory.php, tests/DIx/ContainerFactoryTest.php: DIx/ContainerFactory.php: initメソッド他実装 テストは最小限 直接newする代わりにSingletonRegistryを使えば Mockを使った完全なテストも不可能ではないが、煩雑になりすぎるので止めた 2007-01-27 07:36 hawkring * GlobalConfig.php, tests/DIx/ConstMap_ConfigTest.php: GlobalConfig.php コンストラクタの引数として デフォルトの設定を追加 2007-01-27 07:34 hawkring * DI/ConstMap/Config.php, DIx/ConstMap, DIx/ConstMap/Config.php, tests/DI/ConstMap_ConfigTest.php, tests/DIx/ConstMap_ConfigTest.php: ConstMap/Config.phpの名前空間を DIからDIxに変更 2007-01-26 07:31 hawkring * DI/ConstMap/Config.php, data/errors.ja-utf8.ini, tests/DI/ConstMap_ConfigTest.php: DI/ConstMap/Config.php追加 2007-01-26 07:22 hawkring * tests/root/Kaede_GlobalConfigTest.php, tests/root/fixture/test2.php: 連続してファイルを読み込む場合のテストを追加 2007-01-26 07:02 hawkring * GlobalConfig.php, tests/root/Kaede_GlobalConfigTest.php, tests/root/fixture, tests/root/fixture/test1.php, tests/root/fixture/test2.php, tests/root/fixture/test3.php, tests/root/fixture/test4.php: GlobalConfig.php追加 2007-01-23 12:12 hawkring * DIx/EventListener/AnnotationBinding.php, tests/DIx/EventListener_AnnotationBindingTest.php: DIx/EventListener/AnnotationBinding.php TODOとなっていた以下のメソッドを追加 - beforeCreateOnce - mergeInitializers - beforeInitializeOnce 2007-01-22 12:50 hawkring * DIx/EventListener/AnnotationBinding.php, tests/DIx/EventListener_AnnotationBindingTest.php: DIx/EventListener/AnnotationBinding.php: 作りかけ 追加すべきメソッド - beforeCreateOnce(Event_Notification $n) : void - beforeInitializeOnce(Event_Notification $n) : void - mergeInitializers(array $initializers, string $class) : array 2007-01-22 07:13 hawkring * Util/PseudoAnnotation.php, tests/Util/PseudoAnnotationTest.php, tests/Util/PseudoAnnotationTestPHP5.php: publicなプロパティによる擬似的なアノテーションを取得するためのクラス Util/PseudoAnnotation.php追加 2007-01-19 13:32 hawkring * DIx/EventListener, DIx/EventListener/AutoNaming.php, tests/DIx, tests/DIx/EventListener_AutoNamingTest.php: 自動命名のためのEventListener DIx/EventListener/AutoNaming.php追加 2007-01-18 07:49 hawkring * DI/Container.php, data/errors.ja-utf8.ini: Containerで発生するエラーについて、 メッセージにコンテナのpath情報を含めるようにした 2007-01-18 07:46 hawkring * DI/ComponentDef.php, DI/Container.php, data/errors.ja-utf8.ini, tests/DI/ContainerTest.php: DI/ComponentDef.php: インスタンス生成時にはキーを省略できるようにした DI/Container.php: その代わり、登録時にキーが空でないかどうかをチェックするようにした 2007-01-17 12:57 hawkring * DIx, DIx/ConfigParserFactory.php, DIx/ContainerFactory.php: DIx/ConfigParserFactory.php DIx/ContainerFactory.php 追加 ともに仮の内容 2007-01-17 12:26 hawkring * DI/ConfigParserFactory.php, Util/Naming, Util/Naming/PEAR.php, tests/Util/Naming_PEARTest.php: Util/Naming/PEAR.php追加 2007-01-17 12:12 hawkring * DI/ConfigParserFactory.php, data/errors.ja-utf8.ini, tests/DI/ConfigParserFactoryTest.php: DI/ConfigParserFactory.php追加 2007-01-17 11:57 hawkring * data/errors.ja-utf8.ini, tests/Util/AttrTestPHP5.php: 不要なメッセージエントリを削除 2007-01-15 07:26 hawkring * Core/SingletonRegistry.php: Core/SingletonRegistry.php: インスタンスの一意生を判断する方法を、 "$id@$className" という文字列から、 [$className][$id]という2次元配列に変更した 2007-01-15 07:02 hawkring * Core/SingletonRegistry.php, tests/Core, tests/Core/SingletonRegistryTest.php: Core/SingletonRegistry.php追加 2007-01-14 16:29 hawkring * DI/ContainerFactory.php, data/errors.ja-utf8.ini, tests/DI/ContainerFactoryTest.php: コンテナの構築仮定で発生したエラーは全て CONTAINER_BUILD_FAILUREエラーとして認識するように修正 2007-01-14 15:29 hawkring * DI/ContainerFactory.php, tests/DI/ContainerFactoryTest.php: DI/ContainerFactory.php: 設定ファイルの検索パスを保持するsearchPathプロパティを追加 getContainerメソッドの中でpathを解決するのに、 getRealPathメソッドを使用するようにした 2007-01-14 07:11 hawkring * Util/File.php: Util/File.php: コメント追加 2007-01-14 07:09 hawkring * Util/File.php, tests/Util/FileTest.php, tests/Util/fixture/child, tests/Util/fixture/child/foo.php, tests/Util/fixture/foo.php: Util/File.php: getRealPathメソッド追加 2007-01-14 06:52 hawkring * tests/Util/FileTest.php, tests/Util/fixture, tests/Util/fixture/loadable.php, tests/fixture/loadable.php: テスト用ファイルを移動 2007-01-14 06:43 hawkring * DI/ObjectInitializer/Setter.php, tests/DI/ObjectInitializer_SetterTest.php: DI/ObjectInitializer/Setter.php追加 2007-01-13 12:20 hawkring * Reflection/Method, tests/Reflection/Method_SetterTestPHP5.php: 不要になったReflection/Method/Setter.phpを削除 2007-01-13 12:18 hawkring * Reflection/Class.php, Util/Attr/PHP5.php, Util/Reflection.php, tests/Reflection/ClassTestPHP5.php, tests/Util/AttrTest.php, tests/Util/AttrTestPHP5.php: Reflection/Class.php: - hasMethod追加 - getSetter削除、Reflection_Method_Setterに対する依存を無くした Util/Reflection.php: getMethodをpublicメソッドに変更 Util/Attr/PHP5.php: - Reflection_Method_Setterの代わりにReflection_Methodを使うようにした - PHP5において、呼び出し前のTypeHintingのチェックは止めにした(調べる範囲にきりがなくなるので) 2007-01-13 10:57 hawkring * Util/Reflection.php: invokeInstanceMethodのロジックを Kaede_Reflection_Method::invokeArgs を使用したものに変更 2007-01-13 10:36 hawkring * Reflection/Method.php, tests/Reflection/MethodTestPHP5.php: Reflection/Method.php追加 やはりReflection周辺はもう少しきちんと整理することにする 2007-01-10 12:44 hawkring * Util/Attr/PHP5.php, data/errors.ja-utf8.ini, tests/Util/AttrTestPHP5.php: Util/Attr/PHP5.php Reflection/* をメソッドを使用してリファクタリング 2007-01-10 12:41 hawkring * Reflection/Class.php, tests/Reflection/ClassTestPHP5.php: Reflection/Class.phpに Kaede_Reflection_Method_Setter のインスタンスを取得する getSetterメソッド追加 2007-01-10 12:20 hawkring * Common.php, Reflection/Method, Reflection/Method/Setter.php, data/errors.ja-utf8.ini, tests/Reflection, tests/Reflection/Method_SetterTestPHP5.php: Reflection/Method/Setter.php試験的に追加 2007-01-10 08:30 hawkring * Util/Attr, Util/Attr.php, Util/Attr/PHP4.php, Util/Attr/PHP5.php, data/errors.ja-utf8.ini, tests/Util/AttrTest.php, tests/Util/AttrTestPHP5.php: Util/Attr追加 しかしPHP5版が想像以上に複雑になったので、要リファクタリング 2007-01-08 08:18 hawkring * DI/ComponentBuilder.php, Error.php, tests/DI/ComponentBuilderTest.php, tests/root/Kaede_ErrorTest.php: root/Kaede_ErrorTest.php: ネストした場合のテストを追加 その結果、複数のインスタンスが存在すると厄介な問題が発生すると分かったので、 Error.php: Kaede_Errorはシングルトンとした DI/ComponentBuilder.php: Kaede_Error::singletonを使うように修正 2007-01-08 04:04 hawkring * Error.php: 無限ループに陥るバグがあったので修正 2007-01-08 03:39 hawkring * DI/ComponentBuilder.php, data/errors.ja-utf8.ini, tests/DI/ComponentBuilderTest.php, tests/lib/Mock.php, tests/lib/Setup.php, tests/lib/UnitTestCase.php: test/lib/Mock.php: SimpleMock(@SimpleMock)のサブクラスKaede_Test_Mockを追加 このクラスは指定したメソッドで ErrorStackにエラーをpushするsetPushErrorメソッドを備える (このクラス自体のテストも追加すべきか?) test/lib/Setup.php: Kaede_Test_MockをMockBaseClassとして設定 DI/ComponentBuilder.php: Kaede_Error::start(),end() を使用したエラー処理を追加 DI/ComponentBuilderTest.php: Kaede_Test_Mock::setPushErrorを使用した、 上記のテストを追加 2007-01-08 02:50 hawkring * Error.php, tests/root, tests/root/Kaede_ErrorTest.php: catch節における再throwに似た操作を実現するメソッド start(), handleError(), end()を追加 しかしこれらを使ったテストを書くには、 SimpleTestのMockを拡張する必要がありそう 2007-01-07 09:07 hawkring * DI/ConfigParser, DI/ConfigParser.php, DI/ConfigParser/PHP.php, data/errors.ja-utf8.ini, tests/DI/ConfigParser_PHPTest.php, tests/DI/fixture, tests/DI/fixture/config1.php: PHP配列でDIContainer設定を記述するためのクラス DI/ConfigParser/PHP.php追加 2007-01-06 07:47 hawkring * DI/ComponentBuilder/Initializer.php, tests/DI/ComponentBuilder_InitializerTest.php: コンポーネントの初期化前に一度だけ実行されるbeforeInitializeOnceイベント追加 2007-01-06 07:34 hawkring * DI/ComponentBuilder/Factory.php, tests/DI/ComponentBuilder_FactoryTest.php: instanceModeに関わらず、 オブジェクト生成前に一度だけ発行されるイベントbeforeCreateOnceを追加 2007-01-06 05:50 hawkring * DI/ComponentBuilder.php, tests/DI/ComponentBuilderTest.php: ComponentBuilder/FileLoader を使用した動的なファイル読み込み機能を追加 2007-01-06 05:31 hawkring * DI/ComponentBuilder/FileLoader.php, tests/DI/ComponentBuilder_FileLoaderTest.php: DI/ComponentBuilder/FileLoader.php追加 2007-01-06 04:30 hawkring * tests/DI, tests/DI/AssemblerTest.php, tests/DI/ComponentBuilderTest.php, tests/DI/ComponentBuilder_FactoryTest.php, tests/DI/ComponentBuilder_InitializerTest.php, tests/DI/ConstMap_PHPTest.php, tests/DI/ContainerFactoryTest.php, tests/DI/ContainerTest.php, tests/DI/ObjectInitializer_InitMethodTest.php, tests/DI_AssemblerTest.php, tests/DI_ComponentBuilderTest.php, tests/DI_ComponentBuilder_FactoryTest.php, tests/DI_ComponentBuilder_InitializerTest.php, tests/DI_ConstMap_PHPTest.php, tests/DI_ContainerFactoryTest.php, tests/DI_ContainerTest.php, tests/DI_ObjectInitializer_InitMethodTest.php, tests/Util, tests/Util/CallTest.php, tests/Util/FileTest.php, tests/Util/GenericFactoryTest.php, tests/Util/ReflectionTestPHP5.php, tests/Util_CallTest.php, tests/Util_FileTest.php, tests/Util_GenericFactoryTest.php, tests/Util_ReflectionTestPHP5.php, tests/run.php: テストファイルが増えてきたのでディレクトリ階層を作った またディレクトリごとに実行できるようにrun.phpを改良した 2007-01-05 06:54 hawkring * DI/ComponentBuilder/Factory.php, DI/ComponentBuilder/Initializer.php, DI/ComponentDef.php, Util/GenericFactory.php, tests/DI_ComponentBuilderTest.php, tests/DI_ComponentBuilder_FactoryTest.php, tests/DI_ComponentBuilder_InitializerTest.php, tests/DI_ContainerFactoryTest.php: [リファクタリング] ComponentDef.php: プロパティ名変更 - constructInfo -> constructor - constructArgs -> args - initializeInfo -> Initializers 2007-01-05 06:41 hawkring * DI/ComponentBuilder/BuildingProcess.php, DI/ComponentDef.php, tests/DI_ComponentBuilder_FactoryTest.php, tests/DI_ComponentBuilder_InitializerTest.php: [リファクタリング] ComponentDef.php: - 汎用のコンポーネント属性を保持する attributes プロパティを追加 - cyclicDependencyプロパティを廃止、attributes[cyclicDependency]として扱うように変更 2007-01-04 13:58 hawkring * DI/Assembler.php, tests/DI_AssemblerTest.php: 定数参照用の正規表現修正 定数タイプ(クラス定数参照で言えばクラス名に相当する部分)に 英大文字・数字しか許可しないのは厳しすぎるので、単語構成文字\wに変更した 2007-01-04 11:30 hawkring * DI/ContainerFactory.php, tests/DI_ContainerFactoryTest.php: DI/ContainerFactory.php追加 テストには未だ未実装の ConfigParserFactoryおよびConfigParserのMockを使用している 2007-01-04 08:38 hawkring * Core, Core/ConfigParser.php, DI/ConfigParserFactory.php: Core/ConfigParser.php: 追加 DI/ConfigParserFactory.php: 仮の形で追加 2007-01-04 08:32 hawkring * DI/Container.php: getChildメソッド追加 2007-01-03 12:44 hawkring * Util/File.php, tests/Util_FileTest.php, tests/fixture, tests/fixture/loadable.php: Util/File.phpとそのテスト、およびテストに使うファイルを追加 2007-01-03 06:28 hawkring * DI/ObjectInitializer/InitMethod/PHP5.php, Util/Reflection.php, tests/Util_ReflectionTestPHP5.php: Util/Reflection.phpにinvokeInstanceMethodを追加 ReflectionMethod::invokeArgsが存在しない5.0.xに対処 2007-01-03 02:04 hawkring * DI/Container.php, tests/DI_ContainerTest.php: registerメソッドを追加 コンテナ自身をcontainerという名前で登録するようにした 2007-01-03 01:48 hawkring * DI/Container.php, tests/DI_ContainerTest.php: DI/Container.php追加 2007-01-02 12:41 hawkring * DI/ComponentDef.php: ComponentDef.phpでComponentKeyを小文字に変換するのは止めた (エラーメッセージ等における視認性が悪くなるため) 小文字への変換はContainer側で行うことにする 2007-01-02 04:57 hawkring * DI/ComponentBuilder.php, tests/DI_ComponentBuilderTest.php: DI/ComponentBuilder.php追加 2007-01-01 11:47 hawkring * DI/ComponentBuilder/Factory.php, tests/DI_ComponentBuilder_FactoryTest.php: DI/ComponentBuilder/Factory.php追加 テストの構成はDI/ComponentBuilder/Initializerとほぼ同じ 2007-01-01 11:31 hawkring * tests/DI_ComponentBuilder_InitializerTest.php: SimpleTestのMock::expectAtは呼び出された回数まではチェックしないので、 必要な箇所にexpectCallCountを追加した 2007-01-01 11:24 hawkring * tests/DI_ComponentBuilder_InitializerTest.php: 初期化後に循環参照フラグcyclicDependencyがfalseになっていることを確認するテストを追加 2007-01-01 07:31 hawkring * tests/DI_ComponentBuilder_InitializerTest.php: 不要なテストコード削除 2007-01-01 04:42 hawkring * DI/ComponentBuilder/Initializer.php, tests/DI_ComponentBuilder_InitializerTest.php: Event処理を実装 Event処理についてのテストは、Mockを使用した単純なテストの他に、 Event_Dispatcherを直に使ったものも一応用意した 2006-12-31 12:21 hawkring * DI/ComponentBuilder, DI/ComponentBuilder/BuildingProcess.php, DI/ComponentBuilder/Initializer.php, tests/DI_ComponentBuilder_InitializerTest.php: ComponentDefからコンポーネントを組み立てるためのクラス群(の一部)を追加 DI/ComponentBuilder/Initializer.php: イベント処理が未実装 2006-12-31 02:22 hawkring * DI/ObjectInitializer, DI/ObjectInitializer.php, DI/ObjectInitializer/InitMethod, DI/ObjectInitializer/InitMethod.php, DI/ObjectInitializer/InitMethod/Base.php, DI/ObjectInitializer/InitMethod/PHP4.php, DI/ObjectInitializer/InitMethod/PHP5.php, data/errors.ja-utf8.ini, tests/DI_ObjectInitializer_InitMethodTest.php: DI/ObjectInitializer およびその実装の一つ DI/ObjectInitializer/InitMethod を追加 2006-12-31 02:04 hawkring * Error.php, data/errors.ja-utf8.ini, tests/Util_CallTest.php, tests/Util_ReflectionTestPHP5.php: エラーはやはり一元的に管理したいので、 PHP5のExceptionもKaede_Errorパッケージにpushするよう変更した (通常のErrorとの違いはエラーコードで表現することにした) 2006-12-30 07:55 hawkring * DI/ConstMap/PHP.php, data/errors.ja-utf8.ini, tests/DI_ConstMap_PHPTest.php: 関数definedおよびconstantはクラス定数も扱えるということに気付いたので、 DI/ConstMap/PHP.php を拡張してクラス定数を扱えるようにした 2006-12-30 07:28 hawkring * DI/ConstMap, DI/ConstMap/PHP.php, data/errors.ja-utf8.ini, tests/DI_ConstMap_PHPTest.php: DI/ConstMap/PHP.php 追加 2006-12-30 04:01 hawkring * DI/Assembler.php, DI/ConstMap.php, data/errors.ja-utf8.ini, tests/DI_AssemblerTest.php: DI/Assembler.php, DI/ConstMap.php 追加 2006-12-29 07:15 hawkring * tests/lib/UnitTestCase.php: PEAR_ErrorStackのerror配列を対象とするassertメソッドを追加 2006-12-29 06:41 hawkring * data, data/errors.ja-utf8.ini: メッセージリソースファイルを追加 置き場所や内容、形式については仮のもの 2006-12-29 06:30 hawkring * DI, DI/AbstractContainer.php, DI/ComponentDef.php: DI/AbstractContainer.php, DI/ComponentDef.php追加 2006-12-29 06:04 hawkring * Common.php, Error.php, Reflection/Class.php, Util/Call.php, Util/Call/PHP4.php, Util/Call/PHP5.php, Util/GenericFactory.php, Util/Reflection.php: copyrightコメントを追加 2006-12-29 03:17 hawkring * Util/GenericFactory.php, tests/Util_GenericFactoryTest.php: Util/GenericFactory.php追加 2006-12-29 02:22 hawkring * tests/Util_CallTest.php: staticメソッド呼び出しのテストを追加 2006-12-28 04:55 hawkring * Util/Call/PHP5.php, Util/Reflection.php, tests/Util_CallTest.php, tests/Util_ReflectionTestPHP5.php: Util/Reflection.php: PHP5で使用する際の利便性のために、Exceptionを再throwするモードを追加 2006-12-28 04:34 hawkring * Error.php, Util/Call, Util/Call.php, Util/Call/PHP4.php, Util/Call/PHP5.php, tests/Util_CallTest.php: Util/Call追加 PHP4.phpはほぼScarletのパクリ PHP5.phpはcall_user_func_arrayおよびReflectionを使用する 2006-12-28 03:55 hawkring * Reflection, Reflection/Class.php, Util, Util/Reflection.php, tests/Util_ReflectionTestPHP5.php: Reflection関連のクラス追加 Reflection/Class.phpはまだ仮の内容 2006-12-27 15:31 hawkring * Common.php, Error.php, tests/lib/SetupDecorator.php, tests/lib/UnitTestCase.php: EncodingをUTF-8に変更 2006-12-27 14:53 hawkring * Common.php, Error.php, tests, tests/lib, tests/lib/Setup.php, tests/lib/SetupDecorator.php, tests/lib/UnitTestCase.php, tests/run.php: テスト用のライブラリおよびテストを駆動するための最低限のファイル群追加 2006-12-27 06:42 hawkring * Kaede, Kaede/branches, Kaede/tags, .: Kaede initial import