@@ -19,7 +19,6 @@ |
||
| 19 | 19 | |
| 20 | 20 | namespace NelsonMartell\Test\DataProviders\ExampleClass; |
| 21 | 21 | |
| 22 | -use NelsonMartell\PropertiesHandler; |
|
| 23 | 22 | use NelsonMartell\ICustomPrefixedPropertiesContainer; |
| 24 | 23 | |
| 25 | 24 | class C extends B implements ICustomPrefixedPropertiesContainer |
@@ -20,8 +20,8 @@ |
||
| 20 | 20 | namespace NelsonMartell\Test\DataProviders; |
| 21 | 21 | |
| 22 | 22 | use NelsonMartell\Object; |
| 23 | -use NelsonMartell\Test\Helpers\ExporterPlugin; |
|
| 24 | 23 | use NelsonMartell\Test\Helpers\ConstructorMethodTester; |
| 24 | +use NelsonMartell\Test\Helpers\ExporterPlugin; |
|
| 25 | 25 | use NelsonMartell\Test\Helpers\IComparerTester; |
| 26 | 26 | |
| 27 | 27 | /** |
@@ -43,6 +43,7 @@ |
||
| 43 | 43 | * |
| 44 | 44 | * @param string $name Property name. |
| 45 | 45 | * @param mixed $value Property value. |
| 46 | + * @return void |
|
| 46 | 47 | */ |
| 47 | 48 | public function __set($name, $value); |
| 48 | 49 | } |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | $r = $right->compareTo($left); |
| 156 | 156 | |
| 157 | 157 | if ($r !== null) { |
| 158 | - $r *= -1; // Invert result |
|
| 158 | + $r *= -1; // Invert result |
|
| 159 | 159 | } |
| 160 | 160 | } else { |
| 161 | 161 | $ltype = typeof($left); |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | */ |
| 229 | 229 | protected static function getPropertySetter($name) |
| 230 | 230 | { |
| 231 | - $args = [ |
|
| 231 | + $args = [ |
|
| 232 | 232 | 'class' => get_called_class(), |
| 233 | 233 | ]; |
| 234 | 234 | |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | */ |
| 283 | 283 | protected static function getPropertyGetter($name) |
| 284 | 284 | { |
| 285 | - $args = [ |
|
| 285 | + $args = [ |
|
| 286 | 286 | 'class' => get_called_class(), |
| 287 | 287 | ]; |
| 288 | 288 | |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | ); |
| 97 | 97 | |
| 98 | 98 | if ($msg) { |
| 99 | - $error .= ' ' . sprintf(dgettext('nml', 'Message: %s'), $msg); |
|
| 99 | + $error .= ' '.sprintf(dgettext('nml', 'Message: %s'), $msg); |
|
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | trigger_error($error, E_USER_WARNING); |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | ); |
| 150 | 150 | |
| 151 | 151 | if ($msg) { |
| 152 | - $error .= ' ' . sprintf(dgettext('nml', 'Message: %s'), $msg); |
|
| 152 | + $error .= ' '.sprintf(dgettext('nml', 'Message: %s'), $msg); |
|
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | trigger_error($error, E_USER_WARNING); |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | ); |
| 219 | 219 | |
| 220 | 220 | if ($msg) { |
| 221 | - $error .= ' ' . sprintf(dgettext('nml', 'Message: %s'), $msg); |
|
| 221 | + $error .= ' '.sprintf(dgettext('nml', 'Message: %s'), $msg); |
|
| 222 | 222 | } |
| 223 | 223 | |
| 224 | 224 | trigger_error($error, E_USER_WARNING); |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | ); |
| 241 | 241 | |
| 242 | 242 | if ($msg) { |
| 243 | - $error .= ' ' . sprintf(dgettext('nml', 'Message: %s'), $msg); |
|
| 243 | + $error .= ' '.sprintf(dgettext('nml', 'Message: %s'), $msg); |
|
| 244 | 244 | } |
| 245 | 245 | |
| 246 | 246 | trigger_error($error, E_USER_WARNING); |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | ); |
| 289 | 289 | |
| 290 | 290 | if ($msg) { |
| 291 | - $error .= ' ' . sprintf(dgettext('nml', 'Message: %s'), $msg); |
|
| 291 | + $error .= ' '.sprintf(dgettext('nml', 'Message: %s'), $msg); |
|
| 292 | 292 | } |
| 293 | 293 | |
| 294 | 294 | trigger_error($error, E_USER_WARNING); |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | ); |
| 311 | 311 | |
| 312 | 312 | if ($msg) { |
| 313 | - $error .= ' ' . sprintf(dgettext('nml', 'Message: %s'), $msg); |
|
| 313 | + $error .= ' '.sprintf(dgettext('nml', 'Message: %s'), $msg); |
|
| 314 | 314 | } |
| 315 | 315 | |
| 316 | 316 | trigger_error($error, E_USER_WARNING); |
@@ -177,6 +177,9 @@ |
||
| 177 | 177 | return $this->methods; |
| 178 | 178 | } |
| 179 | 179 | |
| 180 | + /** |
|
| 181 | + * @param string $name |
|
| 182 | + */ |
|
| 180 | 183 | public function hasMethod($name) |
| 181 | 184 | { |
| 182 | 185 | if ($this->reflectionObject !== null) { |
@@ -19,7 +19,6 @@ |
||
| 19 | 19 | |
| 20 | 20 | namespace NelsonMartell\Test\Helpers; |
| 21 | 21 | |
| 22 | -use NelsonMartell as NML; |
|
| 23 | 22 | use NelsonMartell\Extensions\Text; |
| 24 | 23 | use SebastianBergmann\Exporter\Exporter; |
| 25 | 24 | use \InvalidArgumentException; |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | $format .= "{{$i}}, "; |
| 89 | 89 | } |
| 90 | 90 | $format .= '{8} y {9}.'; |
| 91 | - $actual = Text::format($format, range(1, 10)); |
|
| 91 | + $actual = Text::format($format, range(1, 10)); |
|
| 92 | 92 | $this->assertEquals($expected, $actual); |
| 93 | 93 | } |
| 94 | 94 | |
@@ -20,7 +20,6 @@ |
||
| 20 | 20 | |
| 21 | 21 | use NelsonMartell as NML; |
| 22 | 22 | use NelsonMartell\Extensions\Text; |
| 23 | -use NelsonMartell\Type; |
|
| 24 | 23 | use PHPUnit\Framework\TestCase; |
| 25 | 24 | use \InvalidArgumentException; |
| 26 | 25 | |