@@ -18,8 +18,8 @@ public function testReset() : void
18
18
$ this ->setStaticField ($ this ->class , 'autoloadNamespaces ' , $ data );
19
19
$ this ->setStaticField ($ this ->class , 'loaders ' , $ data );
20
20
21
- self ::assertEquals ($ data , $ this ->getStaticField ($ this ->class , 'autoloadNamespaces ' ));
22
- self ::assertEquals ($ data , $ this ->getStaticField ($ this ->class , 'loaders ' ));
21
+ self ::assertSame ($ data , $ this ->getStaticField ($ this ->class , 'autoloadNamespaces ' ));
22
+ self ::assertSame ($ data , $ this ->getStaticField ($ this ->class , 'loaders ' ));
23
23
24
24
AnnotationRegistry::reset ();
25
25
@@ -35,7 +35,7 @@ public function testRegisterAutoloadNamespaces() : void
35
35
$ this ->setStaticField ($ this ->class , 'autoloadNamespaces ' , array ('foo ' => 'bar ' ));
36
36
37
37
AnnotationRegistry::registerAutoloadNamespaces (array ('test ' => 'bar ' ));
38
- self ::assertEquals (array ('foo ' => 'bar ' , 'test ' => 'bar ' ), $ this ->getStaticField ($ this ->class , 'autoloadNamespaces ' ));
38
+ self ::assertSame (array ('foo ' => 'bar ' , 'test ' => 'bar ' ), $ this ->getStaticField ($ this ->class , 'autoloadNamespaces ' ));
39
39
}
40
40
41
41
/**
@@ -56,7 +56,7 @@ protected function setStaticField($class, $field, $value)
56
56
$ reflection ->setValue (null , $ value );
57
57
}
58
58
59
- protected function getStaticField ($ class , $ field ) : void
59
+ protected function getStaticField ($ class , $ field )
60
60
{
61
61
$ reflection = new \ReflectionProperty ($ class , $ field );
62
62
@@ -80,7 +80,7 @@ public function testStopCallingLoadersIfClassIsNotFound() : void
80
80
AnnotationRegistry::loadAnnotationClass ('unloadableClass ' );
81
81
AnnotationRegistry::loadAnnotationClass ('unloadableClass ' );
82
82
AnnotationRegistry::loadAnnotationClass ('unloadableClass ' );
83
- $ this -> assertEquals (1 , $ i , 'Autoloader should only be called once ' );
83
+ self :: assertSame (1 , $ i , 'Autoloader should only be called once ' );
84
84
}
85
85
86
86
/**
@@ -100,7 +100,7 @@ public function testStopCallingLoadersAfterClassIsFound() : void
100
100
AnnotationRegistry::loadAnnotationClass ($ className );
101
101
AnnotationRegistry::loadAnnotationClass ($ className );
102
102
AnnotationRegistry::loadAnnotationClass ($ className );
103
- $ this -> assertEquals (1 , $ i , 'Autoloader should only be called once ' );
103
+ self :: assertSame (1 , $ i , 'Autoloader should only be called once ' );
104
104
}
105
105
106
106
/**
0 commit comments