@@ -148,7 +148,7 @@ |
||
148 | 148 | foreach ($this->_expectations as $exp) { |
149 | 149 | $parts[] = (string) $exp; |
150 | 150 | } |
151 | - $return .= implode(', ', $parts) . ']'; |
|
151 | + $return .= implode(', ', $parts).']'; |
|
152 | 152 | return $return; |
153 | 153 | } |
154 | 154 | } |
@@ -91,11 +91,11 @@ |
||
91 | 91 | if (is_null($expectation)) { |
92 | 92 | $exception = new \Mockery\Exception\NoMatchingExpectationException( |
93 | 93 | 'No matching handler found for ' |
94 | - . $this->_mock->mockery_getName() . '::' |
|
94 | + . $this->_mock->mockery_getName().'::' |
|
95 | 95 | . \Mockery::formatArgs($this->_name, $args) |
96 | 96 | . '. Either the method was unexpected or its arguments matched' |
97 | 97 | . ' no expected argument list for this method' |
98 | - . PHP_EOL . PHP_EOL |
|
98 | + . PHP_EOL.PHP_EOL |
|
99 | 99 | . \Mockery::formatObjects($args) |
100 | 100 | ); |
101 | 101 | $exception->setMock($this->_mock) |
@@ -41,6 +41,6 @@ |
||
41 | 41 | */ |
42 | 42 | public function __toString() |
43 | 43 | { |
44 | - return __CLASS__ . ":" . spl_object_hash($this); |
|
44 | + return __CLASS__.":".spl_object_hash($this); |
|
45 | 45 | } |
46 | 46 | } |
@@ -45,10 +45,10 @@ |
||
45 | 45 | { |
46 | 46 | if ($this->_limit > $n) { |
47 | 47 | $exception = new Mockery\Exception\InvalidCountException( |
48 | - 'Method ' . (string) $this->_expectation |
|
49 | - . ' from ' . $this->_expectation->getMock()->mockery_getName() |
|
50 | - . ' should be called' . PHP_EOL |
|
51 | - . ' at least ' . $this->_limit . ' times but called ' . $n |
|
48 | + 'Method '.(string) $this->_expectation |
|
49 | + . ' from '.$this->_expectation->getMock()->mockery_getName() |
|
50 | + . ' should be called'.PHP_EOL |
|
51 | + . ' at least '.$this->_limit.' times but called '.$n |
|
52 | 52 | . ' times.' |
53 | 53 | ); |
54 | 54 | $exception->setMock($this->_expectation->getMock()) |
@@ -36,12 +36,12 @@ |
||
36 | 36 | $because = $this->_expectation->getExceptionMessage(); |
37 | 37 | |
38 | 38 | $exception = new Mockery\Exception\InvalidCountException( |
39 | - 'Method ' . (string) $this->_expectation |
|
40 | - . ' from ' . $this->_expectation->getMock()->mockery_getName() |
|
41 | - . ' should be called' . PHP_EOL |
|
42 | - . ' exactly ' . $this->_limit . ' times but called ' . $n |
|
39 | + 'Method '.(string) $this->_expectation |
|
40 | + . ' from '.$this->_expectation->getMock()->mockery_getName() |
|
41 | + . ' should be called'.PHP_EOL |
|
42 | + . ' exactly '.$this->_limit.' times but called '.$n |
|
43 | 43 | . ' times.' |
44 | - . ($because ? ' Because ' . $this->_expectation->getExceptionMessage() : '') |
|
44 | + . ($because ? ' Because '.$this->_expectation->getExceptionMessage() : '') |
|
45 | 45 | ); |
46 | 46 | $exception->setMock($this->_expectation->getMock()) |
47 | 47 | ->setMethodName((string) $this->_expectation) |
@@ -34,10 +34,10 @@ |
||
34 | 34 | { |
35 | 35 | if ($this->_limit < $n) { |
36 | 36 | $exception = new Mockery\Exception\InvalidCountException( |
37 | - 'Method ' . (string) $this->_expectation |
|
38 | - . ' from ' . $this->_expectation->getMock()->mockery_getName() |
|
39 | - . ' should be called' . PHP_EOL |
|
40 | - . ' at most ' . $this->_limit . ' times but called ' . $n |
|
37 | + 'Method '.(string) $this->_expectation |
|
38 | + . ' from '.$this->_expectation->getMock()->mockery_getName() |
|
39 | + . ' should be called'.PHP_EOL |
|
40 | + . ' at most '.$this->_limit.' times but called '.$n |
|
41 | 41 | . ' times.' |
42 | 42 | ); |
43 | 43 | $exception->setMock($this->_expectation->getMock()) |
@@ -58,7 +58,7 @@ |
||
58 | 58 | foreach ($this->_expected as $v) { |
59 | 59 | $elements[] = (string) $v; |
60 | 60 | } |
61 | - $return .= implode(', ', $elements) . ']>'; |
|
61 | + $return .= implode(', ', $elements).']>'; |
|
62 | 62 | return $return; |
63 | 63 | } |
64 | 64 | } |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | if ($this->_expected == 'real') { |
34 | 34 | $function = 'is_float'; |
35 | 35 | } else { |
36 | - $function = 'is_' . strtolower($this->_expected); |
|
36 | + $function = 'is_'.strtolower($this->_expected); |
|
37 | 37 | } |
38 | 38 | if (function_exists($function)) { |
39 | 39 | return $function($actual); |
@@ -51,6 +51,6 @@ discard block |
||
51 | 51 | */ |
52 | 52 | public function __toString() |
53 | 53 | { |
54 | - return '<' . ucfirst($this->_expected) . '>'; |
|
54 | + return '<'.ucfirst($this->_expected).'>'; |
|
55 | 55 | } |
56 | 56 | } |
@@ -84,9 +84,9 @@ |
||
84 | 84 | $return = '<Subset['; |
85 | 85 | $elements = array(); |
86 | 86 | foreach ($this->expected as $k=>$v) { |
87 | - $elements[] = $k . '=' . (string) $v; |
|
87 | + $elements[] = $k.'='.(string) $v; |
|
88 | 88 | } |
89 | - $return .= implode(', ', $elements) . ']>'; |
|
89 | + $return .= implode(', ', $elements).']>'; |
|
90 | 90 | return $return; |
91 | 91 | } |
92 | 92 | } |