Skip to content

Commit bb8cf14

Browse files
ISSUE-104: Updated Add-on Pack for Symfony 3.0
1 parent e88eddd commit bb8cf14

File tree

7 files changed

+79
-13
lines changed

7 files changed

+79
-13
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"require": {
1212
"doctrine/common": "^2.4",
1313
"doctrine/orm": "^2.4",
14-
"php": ">=5.3.9",
15-
"symfony/form": "2.8.*"
14+
"php": ">=5.5.9",
15+
"symfony/form": "3.0.*"
1616
},
1717
"require-dev": {
1818
"codeclimate/php-test-reporter": "^0.3.2",

tests/BooleanToValueTransformerTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@
2121
namespace DarkWebDesign\SymfonyAddon\Transformer\Tests;
2222

2323
use DarkWebDesign\SymfonyAddon\Transformer\BooleanToValueTransformer;
24-
use PHPUnit_Framework_TestCase;
25-
use stdClass;
2624

27-
class BooleanToValueTransformerTest extends PHPUnit_Framework_TestCase
25+
class BooleanToValueTransformerTest extends \PHPUnit_Framework_TestCase
2826
{
2927
/**
3028
* @param string $trueValue
@@ -160,7 +158,7 @@ public function providerNoBool()
160158
'float' => array(1.2),
161159
'string' => array('foo'),
162160
'array' => array(array('foo', 'bar')),
163-
'object' => array(new stdClass),
161+
'object' => array(new \stdClass),
164162
'resource' => array(tmpfile()),
165163
'callable' => array(function () {})
166164
);
@@ -173,7 +171,7 @@ public function providerNoScalar()
173171
{
174172
return array(
175173
'array' => array(array('foo', 'bar')),
176-
'object' => array(new stdClass),
174+
'object' => array(new \stdClass),
177175
'resource' => array(tmpfile()),
178176
'callable' => array(function () {})
179177
);

tests/EntityToIdentifierTransformerTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@
2424
use DarkWebDesign\SymfonyAddon\Transformer\Tests\Models\City;
2525
use DarkWebDesign\SymfonyAddon\Transformer\Tests\Models\Employee;
2626
use DarkWebDesign\SymfonyAddon\Transformer\Tests\Models\PointOfInterest;
27-
use PHPUnit_Framework_TestCase;
28-
use stdClass;
2927

30-
class EntityToIdentifierTransformerTest extends PHPUnit_Framework_TestCase
28+
class EntityToIdentifierTransformerTest extends \PHPUnit_Framework_TestCase
3129
{
3230
/** @var \DarkWebDesign\SymfonyAddon\Transformer\Tests\Models\City */
3331
private $entity;
@@ -243,7 +241,7 @@ public function providerNoScalar()
243241
{
244242
return array(
245243
'array' => array(array('foo', 'bar')),
246-
'object' => array(new stdClass()),
244+
'object' => array(new \stdClass()),
247245
'resource' => array(tmpfile()),
248246
'callable' => array(function () {}),
249247
);

tests/Models/AbstractPerson.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
<?php
2+
/**
3+
* Copyright (c) 2018 DarkWeb Design
4+
*
5+
* Permission is hereby granted, free of charge, to any person obtaining a copy
6+
* of this software and associated documentation files (the "Software"), to deal
7+
* in the Software without restriction, including without limitation the rights
8+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
* copies of the Software, and to permit persons to whom the Software is
10+
* furnished to do so, subject to the following conditions:
11+
*
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18+
* SOFTWARE.
19+
*/
220

321
namespace DarkWebDesign\SymfonyAddon\Transformer\Tests\Models;
422

tests/Models/City.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
<?php
2+
/**
3+
* Copyright (c) 2018 DarkWeb Design
4+
*
5+
* Permission is hereby granted, free of charge, to any person obtaining a copy
6+
* of this software and associated documentation files (the "Software"), to deal
7+
* in the Software without restriction, including without limitation the rights
8+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
* copies of the Software, and to permit persons to whom the Software is
10+
* furnished to do so, subject to the following conditions:
11+
*
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18+
* SOFTWARE.
19+
*/
220

321
namespace DarkWebDesign\SymfonyAddon\Transformer\Tests\Models;
422

tests/Models/Employee.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
<?php
2+
/**
3+
* Copyright (c) 2018 DarkWeb Design
4+
*
5+
* Permission is hereby granted, free of charge, to any person obtaining a copy
6+
* of this software and associated documentation files (the "Software"), to deal
7+
* in the Software without restriction, including without limitation the rights
8+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
* copies of the Software, and to permit persons to whom the Software is
10+
* furnished to do so, subject to the following conditions:
11+
*
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18+
* SOFTWARE.
19+
*/
220

321
namespace DarkWebDesign\SymfonyAddon\Transformer\Tests\Models;
422

tests/Models/PointOfInterest.php

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
11
<?php
2+
/**
3+
* Copyright (c) 2018 DarkWeb Design
4+
*
5+
* Permission is hereby granted, free of charge, to any person obtaining a copy
6+
* of this software and associated documentation files (the "Software"), to deal
7+
* in the Software without restriction, including without limitation the rights
8+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
* copies of the Software, and to permit persons to whom the Software is
10+
* furnished to do so, subject to the following conditions:
11+
*
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18+
* SOFTWARE.
19+
*/
220

321
namespace DarkWebDesign\SymfonyAddon\Transformer\Tests\Models;
422

5-
use DarkWebDesign\SymfonyAddon\Transformer\Tests\Models\City;
6-
723
/**
824
* @Table(name="pointofinterest")
925
*

0 commit comments

Comments
 (0)