@@ -33,7 +33,7 @@ |
||
| 33 | 33 | { |
| 34 | 34 | parent::__construct($initial_value, $strict); |
| 35 | 35 | if (!$strict) { |
| 36 | - $initial_value = (string) $initial_value; |
|
| 36 | + $initial_value = (string)$initial_value; |
|
| 37 | 37 | } |
| 38 | 38 | if (!is_string($initial_value)) { |
| 39 | 39 | throw new \UnexpectedValueException('Value not a string'); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | { |
| 34 | 34 | parent::__construct($initial_value, $strict); |
| 35 | 35 | if (!$strict) { |
| 36 | - $initial_value = (int) $initial_value; |
|
| 36 | + $initial_value = (int)$initial_value; |
|
| 37 | 37 | } |
| 38 | 38 | if (!is_int($initial_value)) { |
| 39 | 39 | throw new \UnexpectedValueException('Value not an integer'); |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | */ |
| 59 | 59 | final public function __toString() |
| 60 | 60 | { |
| 61 | - return (string) $this->__default; |
|
| 61 | + return (string)$this->__default; |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** |
@@ -25,21 +25,21 @@ |
||
| 25 | 25 | $this |
| 26 | 26 | ->given($test = new \Month) |
| 27 | 27 | ->then |
| 28 | - ->integer((int) (string) $test) |
|
| 28 | + ->integer((int)(string)$test) |
|
| 29 | 29 | ->isEqualTo(\Month::__default) |
| 30 | 30 | ; |
| 31 | 31 | |
| 32 | 32 | $this |
| 33 | 33 | ->given($test = new \Month(\Month::SEPTEMBER)) |
| 34 | 34 | ->then |
| 35 | - ->integer((int) (string) $test) |
|
| 35 | + ->integer((int)(string)$test) |
|
| 36 | 36 | ->isEqualTo(\Month::SEPTEMBER) |
| 37 | 37 | ; |
| 38 | 38 | |
| 39 | 39 | $this |
| 40 | 40 | ->given($test = new \Month('1', false)) |
| 41 | 41 | ->then |
| 42 | - ->integer((int) (string) $test) |
|
| 42 | + ->integer((int)(string)$test) |
|
| 43 | 43 | ->isEqualTo(\Month::JANUARY) |
| 44 | 44 | ; |
| 45 | 45 | } |
@@ -23,21 +23,21 @@ |
||
| 23 | 23 | $this |
| 24 | 24 | ->given($this->newTestedInstance) |
| 25 | 25 | ->then |
| 26 | - ->string((string) $this->testedInstance) |
|
| 26 | + ->string((string)$this->testedInstance) |
|
| 27 | 27 | ->isEqualTo('') |
| 28 | 28 | ; |
| 29 | 29 | |
| 30 | 30 | $this |
| 31 | 31 | ->given($this->newTestedInstance('test')) |
| 32 | 32 | ->then |
| 33 | - ->string((string) $this->testedInstance) |
|
| 33 | + ->string((string)$this->testedInstance) |
|
| 34 | 34 | ->isEqualTo('test') |
| 35 | 35 | ; |
| 36 | 36 | |
| 37 | 37 | $this |
| 38 | 38 | ->given($this->newTestedInstance(0, false)) |
| 39 | 39 | ->then |
| 40 | - ->string((string) $this->testedInstance) |
|
| 40 | + ->string((string)$this->testedInstance) |
|
| 41 | 41 | ->isEqualTo('0') |
| 42 | 42 | ; |
| 43 | 43 | } |
@@ -23,21 +23,21 @@ |
||
| 23 | 23 | $this |
| 24 | 24 | ->given($this->newTestedInstance) |
| 25 | 25 | ->then |
| 26 | - ->integer((int) (string) $this->testedInstance) |
|
| 26 | + ->integer((int)(string)$this->testedInstance) |
|
| 27 | 27 | ->isEqualTo(0) |
| 28 | 28 | ; |
| 29 | 29 | |
| 30 | 30 | $this |
| 31 | 31 | ->given($this->newTestedInstance(10)) |
| 32 | 32 | ->then |
| 33 | - ->integer((int) (string) $this->testedInstance) |
|
| 33 | + ->integer((int)(string)$this->testedInstance) |
|
| 34 | 34 | ->isEqualTo(10) |
| 35 | 35 | ; |
| 36 | 36 | |
| 37 | 37 | $this |
| 38 | 38 | ->given($this->newTestedInstance(10.0, false)) |
| 39 | 39 | ->then |
| 40 | - ->integer((int) (string) $this->testedInstance) |
|
| 40 | + ->integer((int)(string)$this->testedInstance) |
|
| 41 | 41 | ->isEqualTo(10) |
| 42 | 42 | ; |
| 43 | 43 | } |
@@ -23,21 +23,21 @@ |
||
| 23 | 23 | $this |
| 24 | 24 | ->given($this->newTestedInstance) |
| 25 | 25 | ->then |
| 26 | - ->boolean((bool) (string) $this->testedInstance) |
|
| 26 | + ->boolean((bool)(string)$this->testedInstance) |
|
| 27 | 27 | ->isEqualTo(false) |
| 28 | 28 | ; |
| 29 | 29 | |
| 30 | 30 | $this |
| 31 | 31 | ->given($this->newTestedInstance(true)) |
| 32 | 32 | ->then |
| 33 | - ->boolean((bool) (string) $this->testedInstance) |
|
| 33 | + ->boolean((bool)(string)$this->testedInstance) |
|
| 34 | 34 | ->isEqualTo(true) |
| 35 | 35 | ; |
| 36 | 36 | |
| 37 | 37 | $this |
| 38 | 38 | ->given($this->newTestedInstance(1, false)) |
| 39 | 39 | ->then |
| 40 | - ->boolean((bool) (string) $this->testedInstance) |
|
| 40 | + ->boolean((bool)(string)$this->testedInstance) |
|
| 41 | 41 | ->isEqualTo(true) |
| 42 | 42 | ; |
| 43 | 43 | } |
@@ -23,21 +23,21 @@ |
||
| 23 | 23 | $this |
| 24 | 24 | ->given($this->newTestedInstance) |
| 25 | 25 | ->then |
| 26 | - ->float((float) (string) $this->testedInstance) |
|
| 26 | + ->float((float)(string)$this->testedInstance) |
|
| 27 | 27 | ->isEqualTo(0.0) |
| 28 | 28 | ; |
| 29 | 29 | |
| 30 | 30 | $this |
| 31 | 31 | ->given($this->newTestedInstance(10.1)) |
| 32 | 32 | ->then |
| 33 | - ->float((float) (string) $this->testedInstance) |
|
| 33 | + ->float((float)(string)$this->testedInstance) |
|
| 34 | 34 | ->isEqualTo(10.1) |
| 35 | 35 | ; |
| 36 | 36 | |
| 37 | 37 | $this |
| 38 | 38 | ->given($this->newTestedInstance('10.1', false)) |
| 39 | 39 | ->then |
| 40 | - ->float((float) (string) $this->testedInstance) |
|
| 40 | + ->float((float)(string)$this->testedInstance) |
|
| 41 | 41 | ->isEqualTo(10.1) |
| 42 | 42 | ; |
| 43 | 43 | } |
@@ -15,9 +15,9 @@ |
||
| 15 | 15 | |
| 16 | 16 | abstract class TestCase extends atoum |
| 17 | 17 | { |
| 18 | - public function __construct(score $score = null, locale $locale = null, adapter $adapter = null) |
|
| 19 | - { |
|
| 18 | + public function __construct(score $score = null, locale $locale = null, adapter $adapter = null) |
|
| 19 | + { |
|
| 20 | 20 | $this->setTestNamespace('\\Tests\\atoum'); |
| 21 | 21 | parent::__construct($score, $locale, $adapter); |
| 22 | - } |
|
| 22 | + } |
|
| 23 | 23 | } |