forked from nelmio/alice
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for snake_care properties in fixtures. (nelmio#323)
- Loading branch information
Showing
16 changed files
with
587 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
tests/Nelmio/Alice/Instances/Populator/Fixtures/Direct/CompositeCamelCaseDummy.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Alice package. | ||
* | ||
* (c) Nelmio <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Nelmio\Alice\Instances\Populator\Fixtures\Direct; | ||
|
||
class CompositeCamelCaseDummy | ||
{ | ||
/** @var string */ | ||
public $fullName; | ||
|
||
public function setFullName($fullName) | ||
{ | ||
$this->fullName = $fullName; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
tests/Nelmio/Alice/Instances/Populator/Fixtures/Direct/CompositeMixedCaseDummy.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Alice package. | ||
* | ||
* (c) Nelmio <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Nelmio\Alice\Instances\Populator\Fixtures\Direct; | ||
|
||
class CompositeMixedCaseDummy | ||
{ | ||
/** @var string */ | ||
public $fullname; | ||
|
||
public function setFullname($fullname) | ||
{ | ||
$this->fullname = $fullname; | ||
} | ||
|
||
public function setfull_name($full_name) | ||
{ | ||
// Do not set anything | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/Nelmio/Alice/Instances/Populator/Fixtures/Direct/CompositeSnakeCase1Dummy.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Alice package. | ||
* | ||
* (c) Nelmio <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Nelmio\Alice\Instances\Populator\Fixtures\Direct; | ||
|
||
class CompositeSnakeCase1Dummy | ||
{ | ||
/** @var string */ | ||
public $full_name; | ||
|
||
public function set_full_name($full_name) | ||
{ | ||
$this->full_name = $full_name; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/Nelmio/Alice/Instances/Populator/Fixtures/Direct/CompositeSnakeCase2Dummy.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Alice package. | ||
* | ||
* (c) Nelmio <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Nelmio\Alice\Instances\Populator\Fixtures\Direct; | ||
|
||
class CompositeSnakeCase2Dummy | ||
{ | ||
/** @var string */ | ||
public $full_name; | ||
|
||
public function setfull_name($full_name) | ||
{ | ||
$this->full_name = $full_name; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/Nelmio/Alice/Instances/Populator/Fixtures/Direct/CompositeSnakeCase3Dummy.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Alice package. | ||
* | ||
* (c) Nelmio <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Nelmio\Alice\Instances\Populator\Fixtures\Direct; | ||
|
||
class CompositeSnakeCase3Dummy | ||
{ | ||
/** @var string */ | ||
public $full_name; | ||
|
||
public function set_fullname($full_name) | ||
{ | ||
$this->full_name = $full_name; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/Nelmio/Alice/Instances/Populator/Fixtures/Direct/PrivateDummy.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Alice package. | ||
* | ||
* (c) Nelmio <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Nelmio\Alice\Instances\Populator\Fixtures\Direct; | ||
|
||
class PrivateDummy | ||
{ | ||
/** @var string */ | ||
public $name; | ||
|
||
private function setName($name) | ||
{ | ||
$this->name = $name; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/Nelmio/Alice/Instances/Populator/Fixtures/Direct/ProtectedDummy.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Alice package. | ||
* | ||
* (c) Nelmio <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Nelmio\Alice\Instances\Populator\Fixtures\Direct; | ||
|
||
class ProtectedDummy | ||
{ | ||
/** @var string */ | ||
public $name; | ||
|
||
public function setName($name) | ||
{ | ||
$this->name = $name; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/Nelmio/Alice/Instances/Populator/Fixtures/Direct/PublicDummy.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Alice package. | ||
* | ||
* (c) Nelmio <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Nelmio\Alice\Instances\Populator\Fixtures\Direct; | ||
|
||
class PublicDummy | ||
{ | ||
/** @var string */ | ||
public $name; | ||
|
||
public function setName($name) | ||
{ | ||
$this->name = $name; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/Nelmio/Alice/Instances/Populator/Fixtures/Direct/SimpleCamelCaseDummy.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Alice package. | ||
* | ||
* (c) Nelmio <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Nelmio\Alice\Instances\Populator\Fixtures\Direct; | ||
|
||
class SimpleCamelCaseDummy | ||
{ | ||
/** @var string */ | ||
public $name; | ||
|
||
public function setName($name) | ||
{ | ||
$this->name = $name; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/Nelmio/Alice/Instances/Populator/Fixtures/Direct/SimpleSnakeCaseDummy.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Alice package. | ||
* | ||
* (c) Nelmio <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Nelmio\Alice\Instances\Populator\Fixtures\Direct; | ||
|
||
class SimpleSnakeCaseDummy | ||
{ | ||
/** @var string */ | ||
public $name; | ||
|
||
public function set_name($name) | ||
{ | ||
$this->name = $name; | ||
} | ||
} |
Oops, something went wrong.