v1.0 Initial commit of project
This commit is contained in:
39
vendor/myclabs/php-enum/tests/EnumFixture.php
vendored
Normal file
39
vendor/myclabs/php-enum/tests/EnumFixture.php
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* @link http://github.com/myclabs/php-enum
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
|
||||
*/
|
||||
|
||||
namespace MyCLabs\Tests\Enum;
|
||||
|
||||
use MyCLabs\Enum\Enum;
|
||||
|
||||
/**
|
||||
* Class EnumFixture
|
||||
*
|
||||
* @method static EnumFixture FOO()
|
||||
* @method static EnumFixture BAR()
|
||||
* @method static EnumFixture NUMBER()
|
||||
*
|
||||
* @method static EnumFixture PROBLEMATIC_NUMBER()
|
||||
* @method static EnumFixture PROBLEMATIC_NULL()
|
||||
* @method static EnumFixture PROBLEMATIC_EMPTY_STRING()
|
||||
* @method static EnumFixture PROBLEMATIC_BOOLEAN_FALSE()
|
||||
*
|
||||
* @author Daniel Costa <danielcosta@gmail.com>
|
||||
* @author Mirosław Filip <mirfilip@gmail.com>
|
||||
*/
|
||||
class EnumFixture extends Enum
|
||||
{
|
||||
const FOO = "foo";
|
||||
const BAR = "bar";
|
||||
const NUMBER = 42;
|
||||
|
||||
/**
|
||||
* Values that are known to cause problems when used with soft typing
|
||||
*/
|
||||
const PROBLEMATIC_NUMBER = 0;
|
||||
const PROBLEMATIC_NULL = null;
|
||||
const PROBLEMATIC_EMPTY_STRING = '';
|
||||
const PROBLEMATIC_BOOLEAN_FALSE = false;
|
||||
}
|
||||
Reference in New Issue
Block a user