@@ -265,8 +265,8 @@ function onError(&$model) {
265
265
* @return void
266
266
*/
267
267
function beforeTest (&$ model ) {
268
- $ model ->beforeTestResult [] = get_class ($ this );
269
- return get_class ($ this );
268
+ $ model ->beforeTestResult [] = strtolower ( get_class ($ this ) );
269
+ return strtolower ( get_class ($ this ) );
270
270
}
271
271
/**
272
272
* testMethod method
@@ -983,24 +983,24 @@ function testBehaviorMethodDispatchingWithData() {
983
983
* @return void
984
984
*/
985
985
function testBehaviorTrigger () {
986
- $ Apple = new Apple ();
986
+ $ Apple =& new Apple ();
987
987
$ Apple ->Behaviors ->attach ('Test ' );
988
988
$ Apple ->Behaviors ->attach ('Test2 ' );
989
989
$ Apple ->Behaviors ->attach ('Test3 ' );
990
990
991
991
$ Apple ->beforeTestResult = array ();
992
992
$ Apple ->Behaviors ->trigger ($ Apple , 'beforeTest ' );
993
- $ expected = array ('TestBehavior ' , 'Test2Behavior ' , 'Test3Behavior ' );
993
+ $ expected = array ('testbehavior ' , 'test2behavior ' , 'test3behavior ' );
994
994
$ this ->assertIdentical ($ Apple ->beforeTestResult , $ expected );
995
995
996
996
$ Apple ->beforeTestResult = array ();
997
- $ Apple ->Behaviors ->trigger ($ Apple , 'beforeTest ' , array (), array ('break ' => true , 'breakOn ' => 'Test2Behavior ' ));
998
- $ expected = array ('TestBehavior ' , 'Test2Behavior ' );
997
+ $ Apple ->Behaviors ->trigger ($ Apple , 'beforeTest ' , array (), array ('break ' => true , 'breakOn ' => 'test2behavior ' ));
998
+ $ expected = array ('testbehavior ' , 'test2behavior ' );
999
999
$ this ->assertIdentical ($ Apple ->beforeTestResult , $ expected );
1000
1000
1001
1001
$ Apple ->beforeTestResult = array ();
1002
- $ Apple ->Behaviors ->trigger ($ Apple , 'beforeTest ' , array (), array ('break ' => true , 'breakOn ' => array ('Test2Behavior ' , 'Test3Behavior ' )));
1003
- $ expected = array ('TestBehavior ' , 'Test2Behavior ' );
1002
+ $ Apple ->Behaviors ->trigger ($ Apple , 'beforeTest ' , array (), array ('break ' => true , 'breakOn ' => array ('test2behavior ' , 'test3behavior ' )));
1003
+ $ expected = array ('testbehavior ' , 'test2behavior ' );
1004
1004
$ this ->assertIdentical ($ Apple ->beforeTestResult , $ expected );
1005
1005
}
1006
1006
/**
0 commit comments