@@ -38,7 +38,7 @@ public function testNameAccessors()
3838 {
3939 $ classGenerator = new ClassGenerator ();
4040 $ classGenerator ->setName ('TestClass ' );
41- self ::assertEquals ($ classGenerator ->getName (), ' TestClass ' );
41+ self ::assertEquals (' TestClass ' , $ classGenerator ->getName ());
4242 }
4343
4444 public function testClassDocBlockAccessors ()
@@ -61,7 +61,7 @@ public function testExtendedClassAccessors()
6161 {
6262 $ classGenerator = new ClassGenerator ();
6363 $ classGenerator ->setExtendedClass ('ExtendedClass ' );
64- self ::assertEquals ($ classGenerator ->getExtendedClass (), ' ExtendedClass ' );
64+ self ::assertEquals (' ExtendedClass ' , $ classGenerator ->getExtendedClass ());
6565 }
6666
6767 public function testHasExtendedClass ()
@@ -86,7 +86,7 @@ public function testImplementedInterfacesAccessors()
8686 {
8787 $ classGenerator = new ClassGenerator ();
8888 $ classGenerator ->setImplementedInterfaces (['Class1 ' , 'Class2 ' ]);
89- self ::assertEquals ($ classGenerator -> getImplementedInterfaces (), ['Class1 ' , 'Class2 ' ]);
89+ self ::assertEquals (['Class1 ' , 'Class2 ' ], $ classGenerator -> getImplementedInterfaces () );
9090 }
9191
9292 public function testHasImplementedInterface ()
@@ -123,7 +123,7 @@ public function testPropertyAccessors()
123123
124124 $ property = $ classGenerator ->getProperty ('propTwo ' );
125125 self ::assertInstanceOf (PropertyGenerator::class, $ property );
126- self ::assertEquals ($ property ->getName (), ' propTwo ' );
126+ self ::assertEquals (' propTwo ' , $ property ->getName ());
127127
128128 // add a new property
129129 $ classGenerator ->addProperty ('prop3 ' );
@@ -602,7 +602,7 @@ public function testCanAddConstant()
602602
603603 self ::assertInstanceOf (PropertyGenerator::class, $ constant );
604604 self ::assertTrue ($ constant ->isConst ());
605- self ::assertEquals ($ constant ->getDefaultValue ()->getValue (), ' value ' );
605+ self ::assertEquals (' value ' , $ constant ->getDefaultValue ()->getValue ());
606606 }
607607
608608 /**
@@ -618,8 +618,8 @@ public function testCanAddConstantsWithArrayOfGenerators()
618618 ]);
619619
620620 self ::assertCount (2 , $ classGenerator ->getConstants ());
621- self ::assertEquals ($ classGenerator ->getConstant ('x ' )->getDefaultValue ()->getValue (), ' value1 ' );
622- self ::assertEquals ($ classGenerator ->getConstant ('y ' )->getDefaultValue ()->getValue (), ' value2 ' );
621+ self ::assertEquals (' value1 ' , $ classGenerator ->getConstant ('x ' )->getDefaultValue ()->getValue ());
622+ self ::assertEquals (' value2 ' , $ classGenerator ->getConstant ('y ' )->getDefaultValue ()->getValue ());
623623 }
624624
625625 /**
@@ -635,8 +635,8 @@ public function testCanAddConstantsWithArrayOfKeyValues()
635635 ]);
636636
637637 self ::assertCount (2 , $ classGenerator ->getConstants ());
638- self ::assertEquals ($ classGenerator ->getConstant ('x ' )->getDefaultValue ()->getValue (), ' value1 ' );
639- self ::assertEquals ($ classGenerator ->getConstant ('y ' )->getDefaultValue ()->getValue (), ' value2 ' );
638+ self ::assertEquals (' value1 ' , $ classGenerator ->getConstant ('x ' )->getDefaultValue ()->getValue ());
639+ self ::assertEquals (' value2 ' , $ classGenerator ->getConstant ('y ' )->getDefaultValue ()->getValue ());
640640 }
641641
642642 /**
@@ -743,7 +743,7 @@ public function testAddPropertyIsBackwardsCompatibleWithConstants()
743743
744744 $ classGenerator ->addProperty ('x ' , 'value1 ' , PropertyGenerator::FLAG_CONSTANT );
745745
746- self ::assertEquals ($ classGenerator ->getConstant ('x ' )->getDefaultValue ()->getValue (), ' value1 ' );
746+ self ::assertEquals (' value1 ' , $ classGenerator ->getConstant ('x ' )->getDefaultValue ()->getValue ());
747747 }
748748
749749 /**
@@ -760,8 +760,8 @@ public function testAddPropertiesIsBackwardsCompatibleWithConstants()
760760 $ classGenerator ->addProperties ($ constants );
761761
762762 self ::assertCount (2 , $ classGenerator ->getConstants ());
763- self ::assertEquals ($ classGenerator ->getConstant ('x ' )->getDefaultValue ()->getValue (), ' value1 ' );
764- self ::assertEquals ($ classGenerator ->getConstant ('y ' )->getDefaultValue ()->getValue (), ' value2 ' );
763+ self ::assertEquals (' value1 ' , $ classGenerator ->getConstant ('x ' )->getDefaultValue ()->getValue ());
764+ self ::assertEquals (' value2 ' , $ classGenerator ->getConstant ('y ' )->getDefaultValue ()->getValue ());
765765 }
766766
767767 /**
@@ -773,7 +773,7 @@ public function testConstantsAddedFromReflection()
773773 $ classGenerator = ClassGenerator::fromReflection ($ reflector );
774774 $ constant = $ classGenerator ->getConstant ('FOO ' );
775775
776- self ::assertEquals ($ constant ->getDefaultValue ()->getValue (), ' foo ' );
776+ self ::assertEquals (' foo ' , $ constant ->getDefaultValue ()->getValue ());
777777 }
778778
779779 /**
@@ -897,8 +897,8 @@ public function testCanAddTraitAliasWithString()
897897
898898 $ aliases = $ classGenerator ->getTraitAliases ();
899899 self ::assertArrayHasKey ('myTrait::method ' , $ aliases );
900- self ::assertEquals ($ aliases ['myTrait::method ' ]['alias ' ], ' useMe ' );
901- self ::assertEquals ($ aliases ['myTrait::method ' ]['visibility ' ], ReflectionMethod:: IS_PRIVATE );
900+ self ::assertEquals (' useMe ' , $ aliases ['myTrait::method ' ]['alias ' ]);
901+ self ::assertEquals (ReflectionMethod:: IS_PRIVATE , $ aliases ['myTrait::method ' ]['visibility ' ]);
902902 }
903903
904904 public function testCanAddTraitAliasWithArray ()
@@ -913,8 +913,8 @@ public function testCanAddTraitAliasWithArray()
913913
914914 $ aliases = $ classGenerator ->getTraitAliases ();
915915 self ::assertArrayHasKey ('myTrait::method ' , $ aliases );
916- self ::assertEquals ($ aliases ['myTrait::method ' ]['alias ' ], ' useMe ' );
917- self ::assertEquals ($ aliases ['myTrait::method ' ]['visibility ' ], ReflectionMethod:: IS_PRIVATE );
916+ self ::assertEquals (' useMe ' , $ aliases ['myTrait::method ' ]['alias ' ]);
917+ self ::assertEquals (ReflectionMethod:: IS_PRIVATE , $ aliases ['myTrait::method ' ]['visibility ' ]);
918918 }
919919
920920 public function testAddTraitAliasExceptionInvalidMethodFormat ()
@@ -984,8 +984,8 @@ public function testCanAddTraitOverride()
984984
985985 $ overrides = $ classGenerator ->getTraitOverrides ();
986986 self ::assertCount (1 , $ overrides );
987- self ::assertEquals (key ( $ overrides ), 'myTrait::foo ' );
988- self ::assertEquals ($ overrides ['myTrait::foo ' ][0 ], ' hisTrait ' );
987+ self ::assertEquals ('myTrait::foo ' , key ( $ overrides ) );
988+ self ::assertEquals (' hisTrait ' , $ overrides ['myTrait::foo ' ][0 ]);
989989 }
990990
991991 public function testCanAddMultipleTraitOverrides ()
@@ -996,7 +996,7 @@ public function testCanAddMultipleTraitOverrides()
996996
997997 $ overrides = $ classGenerator ->getTraitOverrides ();
998998 self ::assertCount (2 , $ overrides ['myTrait::foo ' ]);
999- self ::assertEquals ($ overrides ['myTrait::foo ' ][1 ], ' thatTrait ' );
999+ self ::assertEquals (' thatTrait ' , $ overrides ['myTrait::foo ' ][1 ]);
10001000 }
10011001
10021002 public function testAddTraitOverrideExceptionInvalidMethodFormat ()
@@ -1067,7 +1067,7 @@ public function testCanRemoveTraitOverride()
10671067 $ overrides = $ classGenerator ->getTraitOverrides ();
10681068
10691069 self ::assertCount (1 , $ overrides ['myTrait::foo ' ]);
1070- self ::assertEquals ($ overrides ['myTrait::foo ' ][1 ], ' thatTrait ' );
1070+ self ::assertEquals (' thatTrait ' , $ overrides ['myTrait::foo ' ][1 ]);
10711071 }
10721072
10731073 public function testCanRemoveAllTraitOverrides ()
0 commit comments