11<?php
2- namespace ScriptFUSIONTest \Integration ;
2+ namespace ScriptFUSIONTest \Integration \ Byte ;
33
44use ScriptFUSION \Byte \Base ;
55use ScriptFUSION \Byte \ByteFormatter ;
@@ -19,7 +19,7 @@ protected function setUp()
1919 /** @dataProvider provideBinaryIntegers */
2020 public function testBinaryFormat ($ integer , $ formatted )
2121 {
22- $ this -> assertSame ($ formatted , $ this ->formatter ->setBase (Base::BINARY )->format ($ integer ));
22+ self :: assertSame ($ formatted , $ this ->formatter ->setBase (Base::BINARY )->format ($ integer ));
2323 }
2424
2525 public function provideBinaryIntegers ()
@@ -50,7 +50,7 @@ public function provideBinaryIntegers()
5050 /** @dataProvider provideDecimalIntegers */
5151 public function testDecimalFormat ($ integer , $ formatted )
5252 {
53- $ this -> assertSame ($ formatted , $ this ->formatter ->setBase (Base::DECIMAL )->format ($ integer ));
53+ self :: assertSame ($ formatted , $ this ->formatter ->setBase (Base::DECIMAL )->format ($ integer ));
5454 }
5555
5656 public function provideDecimalIntegers ()
@@ -79,8 +79,8 @@ public function provideDecimalIntegers()
7979 /** @dataProvider providePrecisionIntegers */
8080 public function testPrecision ($ integer , $ formatted )
8181 {
82- $ this -> assertSame ($ formatted , $ this ->formatter ->setPrecision (2 )->format ($ integer ));
83- $ this -> assertSame ($ formatted , $ this ->formatter ->setPrecision (5 )->format ($ integer , 2 ));
82+ self :: assertSame ($ formatted , $ this ->formatter ->setPrecision (2 )->format ($ integer ));
83+ self :: assertSame ($ formatted , $ this ->formatter ->setPrecision (5 )->format ($ integer , 2 ));
8484 }
8585
8686 public function providePrecisionIntegers ()
@@ -105,7 +105,7 @@ public function providePrecisionIntegers()
105105 /** @dataProvider provideFormats */
106106 public function testFormats ($ format , $ formatted )
107107 {
108- $ this -> assertSame ($ formatted , $ this ->formatter ->setFormat ($ format )->format ($ this ->formatter ->getBase ()));
108+ self :: assertSame ($ formatted , $ this ->formatter ->setFormat ($ format )->format ($ this ->formatter ->getBase ()));
109109 }
110110
111111 public function provideFormats ()
@@ -127,7 +127,7 @@ public function testFixedExponent($exponent, $bytes, $formatted)
127127 $ this ->formatter ->setPrecision (8 );
128128
129129 $ this ->formatter ->setFixedExponent ($ exponent );
130- $ this -> assertSame ($ formatted , $ this ->formatter ->format ($ bytes ));
130+ self :: assertSame ($ formatted , $ this ->formatter ->format ($ bytes ));
131131 }
132132
133133 public function provideFixedExponents ()
@@ -161,7 +161,7 @@ public function testDisableAutomaticPrecision()
161161 {
162162 $ this ->formatter ->disableAutomaticPrecision ();
163163
164- $ this -> assertSame ('512.50K ' , $ this ->formatter ->format (0x80200 , 2 ));
164+ self :: assertSame ('512.50K ' , $ this ->formatter ->format (0x80200 , 2 ));
165165 }
166166
167167 public function testCustomUnitSequence ()
@@ -173,6 +173,6 @@ public function testCustomUnitSequence()
173173 ->getMock ()
174174 );
175175
176- $ this -> assertSame ('1 foo ' , $ formatter ->format (1 ));
176+ self :: assertSame ('1 foo ' , $ formatter ->format (1 ));
177177 }
178178}
0 commit comments