@@ -3,7 +3,7 @@ |
||
| 3 | 3 | |
| 4 | 4 | class NoArgTestCaseTest extends TestCase |
| 5 | 5 | { |
| 6 | - public function testNothing() |
|
| 7 | - { |
|
| 8 | - } |
|
| 6 | + public function testNothing() |
|
| 7 | + { |
|
| 8 | + } |
|
| 9 | 9 | } |
@@ -3,35 +3,35 @@ |
||
| 3 | 3 | |
| 4 | 4 | class BeforeAndAfterTest extends TestCase |
| 5 | 5 | { |
| 6 | - public static $beforeWasRun; |
|
| 7 | - public static $afterWasRun; |
|
| 6 | + public static $beforeWasRun; |
|
| 7 | + public static $afterWasRun; |
|
| 8 | 8 | |
| 9 | - public static function resetProperties() |
|
| 10 | - { |
|
| 11 | - self::$beforeWasRun = 0; |
|
| 12 | - self::$afterWasRun = 0; |
|
| 13 | - } |
|
| 9 | + public static function resetProperties() |
|
| 10 | + { |
|
| 11 | + self::$beforeWasRun = 0; |
|
| 12 | + self::$afterWasRun = 0; |
|
| 13 | + } |
|
| 14 | 14 | |
| 15 | - /** |
|
| 16 | - * @before |
|
| 17 | - */ |
|
| 18 | - public function initialSetup() |
|
| 19 | - { |
|
| 20 | - self::$beforeWasRun++; |
|
| 21 | - } |
|
| 15 | + /** |
|
| 16 | + * @before |
|
| 17 | + */ |
|
| 18 | + public function initialSetup() |
|
| 19 | + { |
|
| 20 | + self::$beforeWasRun++; |
|
| 21 | + } |
|
| 22 | 22 | |
| 23 | - /** |
|
| 24 | - * @after |
|
| 25 | - */ |
|
| 26 | - public function finalTeardown() |
|
| 27 | - { |
|
| 28 | - self::$afterWasRun++; |
|
| 29 | - } |
|
| 23 | + /** |
|
| 24 | + * @after |
|
| 25 | + */ |
|
| 26 | + public function finalTeardown() |
|
| 27 | + { |
|
| 28 | + self::$afterWasRun++; |
|
| 29 | + } |
|
| 30 | 30 | |
| 31 | - public function test1() |
|
| 32 | - { |
|
| 33 | - } |
|
| 34 | - public function test2() |
|
| 35 | - { |
|
| 36 | - } |
|
| 31 | + public function test1() |
|
| 32 | + { |
|
| 33 | + } |
|
| 34 | + public function test2() |
|
| 35 | + { |
|
| 36 | + } |
|
| 37 | 37 | } |
@@ -2,15 +2,15 @@ |
||
| 2 | 2 | |
| 3 | 3 | class TestIteratorAggregate implements IteratorAggregate |
| 4 | 4 | { |
| 5 | - private $traversable; |
|
| 5 | + private $traversable; |
|
| 6 | 6 | |
| 7 | - public function __construct(\Traversable $traversable) |
|
| 8 | - { |
|
| 9 | - $this->traversable = $traversable; |
|
| 10 | - } |
|
| 7 | + public function __construct(\Traversable $traversable) |
|
| 8 | + { |
|
| 9 | + $this->traversable = $traversable; |
|
| 10 | + } |
|
| 11 | 11 | |
| 12 | - public function getIterator() |
|
| 13 | - { |
|
| 14 | - return $this->traversable; |
|
| 15 | - } |
|
| 12 | + public function getIterator() |
|
| 13 | + { |
|
| 14 | + return $this->traversable; |
|
| 15 | + } |
|
| 16 | 16 | } |
@@ -3,37 +3,37 @@ |
||
| 3 | 3 | |
| 4 | 4 | class DataProviderIncompleteTest extends TestCase |
| 5 | 5 | { |
| 6 | - /** |
|
| 7 | - * @dataProvider incompleteTestProviderMethod |
|
| 8 | - */ |
|
| 9 | - public function testIncomplete($a, $b, $c) |
|
| 10 | - { |
|
| 11 | - $this->assertTrue(true); |
|
| 12 | - } |
|
| 6 | + /** |
|
| 7 | + * @dataProvider incompleteTestProviderMethod |
|
| 8 | + */ |
|
| 9 | + public function testIncomplete($a, $b, $c) |
|
| 10 | + { |
|
| 11 | + $this->assertTrue(true); |
|
| 12 | + } |
|
| 13 | 13 | |
| 14 | - /** |
|
| 15 | - * @dataProvider providerMethod |
|
| 16 | - */ |
|
| 17 | - public function testAdd($a, $b, $c) |
|
| 18 | - { |
|
| 19 | - $this->assertEquals($c, $a + $b); |
|
| 20 | - } |
|
| 14 | + /** |
|
| 15 | + * @dataProvider providerMethod |
|
| 16 | + */ |
|
| 17 | + public function testAdd($a, $b, $c) |
|
| 18 | + { |
|
| 19 | + $this->assertEquals($c, $a + $b); |
|
| 20 | + } |
|
| 21 | 21 | |
| 22 | - public function incompleteTestProviderMethod() |
|
| 23 | - { |
|
| 24 | - $this->markTestIncomplete('incomplete'); |
|
| 22 | + public function incompleteTestProviderMethod() |
|
| 23 | + { |
|
| 24 | + $this->markTestIncomplete('incomplete'); |
|
| 25 | 25 | |
| 26 | - return [ |
|
| 27 | - [0, 0, 0], |
|
| 28 | - [0, 1, 1], |
|
| 29 | - ]; |
|
| 30 | - } |
|
| 26 | + return [ |
|
| 27 | + [0, 0, 0], |
|
| 28 | + [0, 1, 1], |
|
| 29 | + ]; |
|
| 30 | + } |
|
| 31 | 31 | |
| 32 | - public static function providerMethod() |
|
| 33 | - { |
|
| 34 | - return [ |
|
| 35 | - [0, 0, 0], |
|
| 36 | - [0, 1, 1], |
|
| 37 | - ]; |
|
| 38 | - } |
|
| 32 | + public static function providerMethod() |
|
| 33 | + { |
|
| 34 | + return [ |
|
| 35 | + [0, 0, 0], |
|
| 36 | + [0, 1, 1], |
|
| 37 | + ]; |
|
| 38 | + } |
|
| 39 | 39 | } |
@@ -3,12 +3,12 @@ |
||
| 3 | 3 | |
| 4 | 4 | class NamespaceCoverageNotProtectedTest extends TestCase |
| 5 | 5 | { |
| 6 | - /** |
|
| 7 | - * @covers Foo\CoveredClass::<!protected> |
|
| 8 | - */ |
|
| 9 | - public function testSomething() |
|
| 10 | - { |
|
| 11 | - $o = new Foo\CoveredClass; |
|
| 12 | - $o->publicMethod(); |
|
| 13 | - } |
|
| 6 | + /** |
|
| 7 | + * @covers Foo\CoveredClass::<!protected> |
|
| 8 | + */ |
|
| 9 | + public function testSomething() |
|
| 10 | + { |
|
| 11 | + $o = new Foo\CoveredClass; |
|
| 12 | + $o->publicMethod(); |
|
| 13 | + } |
|
| 14 | 14 | } |
@@ -3,11 +3,11 @@ |
||
| 3 | 3 | |
| 4 | 4 | class CoverageFunctionTest extends TestCase |
| 5 | 5 | { |
| 6 | - /** |
|
| 7 | - * @covers ::globalFunction |
|
| 8 | - */ |
|
| 9 | - public function testSomething() |
|
| 10 | - { |
|
| 11 | - globalFunction(); |
|
| 12 | - } |
|
| 6 | + /** |
|
| 7 | + * @covers ::globalFunction |
|
| 8 | + */ |
|
| 9 | + public function testSomething() |
|
| 10 | + { |
|
| 11 | + globalFunction(); |
|
| 12 | + } |
|
| 13 | 13 | } |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | |
| 4 | 4 | class ThrowNoExceptionTestCase extends TestCase |
| 5 | 5 | { |
| 6 | - public function test() |
|
| 7 | - { |
|
| 8 | - } |
|
| 6 | + public function test() |
|
| 7 | + { |
|
| 8 | + } |
|
| 9 | 9 | } |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | |
| 4 | 4 | class TestIncomplete extends TestCase |
| 5 | 5 | { |
| 6 | - protected function runTest() |
|
| 7 | - { |
|
| 8 | - $this->markTestIncomplete('Incomplete test'); |
|
| 9 | - } |
|
| 6 | + protected function runTest() |
|
| 7 | + { |
|
| 8 | + $this->markTestIncomplete('Incomplete test'); |
|
| 9 | + } |
|
| 10 | 10 | } |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | |
| 4 | 4 | class StopsOnWarningTest extends TestCase |
| 5 | 5 | { |
| 6 | - public function testOne() |
|
| 7 | - { |
|
| 8 | - } |
|
| 6 | + public function testOne() |
|
| 7 | + { |
|
| 8 | + } |
|
| 9 | 9 | } |