Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit ce2b1de

Browse files
committed
Add mised docblock and reforamt tests
1 parent a68a89d commit ce2b1de

File tree

5 files changed

+72
-6
lines changed

5 files changed

+72
-6
lines changed

tests/Specs/Builder/BindingSpecBuilderTest.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
<?php declare(strict_types=1);
22

3+
/*
4+
* This file is part of the pinepain/js-sandbox PHP library.
5+
*
6+
* Copyright (c) 2016-2017 Bogdan Padalko <pinepain@gmail.com>
7+
*
8+
* Licensed under the MIT license: http://opensource.org/licenses/MIT
9+
*
10+
* For the full copyright and license information, please view the
11+
* LICENSE file that was distributed with this source or visit
12+
* http://opensource.org/licenses/MIT
13+
*/
14+
315

416
namespace Pinepain\JsSandbox\Tests\Specs\Builder;
517

618

19+
use PHPUnit\Framework\TestCase;
720
use PHPUnit_Framework_MockObject_MockObject;
821
use Pinepain\JsSandbox\Specs\BindingSpecInterface;
922
use Pinepain\JsSandbox\Specs\Builder\BindingSpecBuilder;
1023
use Pinepain\JsSandbox\Specs\Builder\BindingSpecBuilderInterface;
11-
use PHPUnit\Framework\TestCase;
1224
use Pinepain\JsSandbox\Specs\Builder\Exceptions\FunctionSpecBuilderException;
1325
use Pinepain\JsSandbox\Specs\Builder\Exceptions\PropertySpecBuilderException;
1426
use Pinepain\JsSandbox\Specs\Builder\FunctionSpecBuilderInterface;

tests/Specs/Builder/FunctionSpecBuilderTest.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
11
<?php declare(strict_types=1);
22

3+
/*
4+
* This file is part of the pinepain/js-sandbox PHP library.
5+
*
6+
* Copyright (c) 2016-2017 Bogdan Padalko <pinepain@gmail.com>
7+
*
8+
* Licensed under the MIT license: http://opensource.org/licenses/MIT
9+
*
10+
* For the full copyright and license information, please view the
11+
* LICENSE file that was distributed with this source or visit
12+
* http://opensource.org/licenses/MIT
13+
*/
14+
15+
316
namespace Pinepain\JsSandbox\Tests\Specs\Builder;
417

18+
19+
use PHPUnit\Framework\TestCase;
520
use PHPUnit_Framework_MockObject_MockObject;
621
use Pinepain\JsSandbox\Specs\Builder\FunctionSpecBuilder;
7-
use PHPUnit\Framework\TestCase;
822
use Pinepain\JsSandbox\Specs\Builder\FunctionSpecBuilderInterface;
923
use Pinepain\JsSandbox\Specs\Builder\ParameterSpecBuilderInterface;
1024
use Pinepain\JsSandbox\Specs\FunctionSpecInterface;

tests/Specs/Builder/ObjectSpecBuilderTest.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
<?php declare(strict_types=1);
22

3+
/*
4+
* This file is part of the pinepain/js-sandbox PHP library.
5+
*
6+
* Copyright (c) 2016-2017 Bogdan Padalko <pinepain@gmail.com>
7+
*
8+
* Licensed under the MIT license: http://opensource.org/licenses/MIT
9+
*
10+
* For the full copyright and license information, please view the
11+
* LICENSE file that was distributed with this source or visit
12+
* http://opensource.org/licenses/MIT
13+
*/
14+
15+
316
namespace Pinepain\JsSandbox\Tests\Specs\Builder;
417

5-
use PHPUnit_Framework_MockObject_MockObject;
18+
619
use PHPUnit\Framework\TestCase;
20+
use PHPUnit_Framework_MockObject_MockObject;
721
use Pinepain\JsSandbox\Specs\BindingSpecInterface;
822
use Pinepain\JsSandbox\Specs\Builder\BindingSpecBuilderInterface;
923
use Pinepain\JsSandbox\Specs\Builder\Exceptions\BindingSpecBuilderException;

tests/Specs/Builder/ParameterSpecBuilderTest.php

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
11
<?php declare(strict_types=1);
22

3+
/*
4+
* This file is part of the pinepain/js-sandbox PHP library.
5+
*
6+
* Copyright (c) 2016-2017 Bogdan Padalko <pinepain@gmail.com>
7+
*
8+
* Licensed under the MIT license: http://opensource.org/licenses/MIT
9+
*
10+
* For the full copyright and license information, please view the
11+
* LICENSE file that was distributed with this source or visit
12+
* http://opensource.org/licenses/MIT
13+
*/
14+
315

416
namespace Pinepain\JsSandbox\Tests\Specs\Builder;
517

618

19+
use PHPUnit\Framework\TestCase;
720
use PHPUnit_Framework_MockObject_MockObject;
821
use Pinepain\JsSandbox\Extractors\Definition\ExtractorDefinitionInterface;
922
use Pinepain\JsSandbox\Extractors\ExtractorDefinitionBuilderException;
1023
use Pinepain\JsSandbox\Extractors\ExtractorDefinitionBuilderInterface;
1124
use Pinepain\JsSandbox\Specs\Builder\ParameterSpecBuilder;
12-
use PHPUnit\Framework\TestCase;
1325
use Pinepain\JsSandbox\Specs\Builder\ParameterSpecBuilderInterface;
1426
use Pinepain\JsSandbox\Specs\Parameters\MandatoryParameterSpec;
1527
use Pinepain\JsSandbox\Specs\Parameters\OptionalParameterSpec;
@@ -91,7 +103,7 @@ public function testBuildingMandatoryParameterWithVaryingType()
91103

92104
/**
93105
* @param string $raw_default
94-
* @param $expected_default
106+
* @param $expected_default
95107
*
96108
* @dataProvider provideValidDefaultValues
97109
*/

tests/Specs/Builder/PropertySpecBuilderTest.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
11
<?php declare(strict_types=1);
22

3+
/*
4+
* This file is part of the pinepain/js-sandbox PHP library.
5+
*
6+
* Copyright (c) 2016-2017 Bogdan Padalko <pinepain@gmail.com>
7+
*
8+
* Licensed under the MIT license: http://opensource.org/licenses/MIT
9+
*
10+
* For the full copyright and license information, please view the
11+
* LICENSE file that was distributed with this source or visit
12+
* http://opensource.org/licenses/MIT
13+
*/
14+
15+
316
namespace Pinepain\JsSandbox\Tests\Specs\Builder;
417

18+
19+
use PHPUnit\Framework\TestCase;
520
use PHPUnit_Framework_MockObject_MockObject;
621
use Pinepain\JsSandbox\Extractors\Definition\ExtractorDefinitionInterface;
722
use Pinepain\JsSandbox\Extractors\ExtractorDefinitionBuilderException;
823
use Pinepain\JsSandbox\Extractors\ExtractorDefinitionBuilderInterface;
924
use Pinepain\JsSandbox\Specs\Builder\PropertySpecBuilder;
10-
use PHPUnit\Framework\TestCase;
1125
use Pinepain\JsSandbox\Specs\Builder\PropertySpecBuilderInterface;
1226
use Pinepain\JsSandbox\Specs\PropertySpecInterface;
1327

0 commit comments

Comments
 (0)