X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=vendor%2Fdoctrine%2Form%2Ftests%2FDoctrine%2FTests%2FORM%2FEntity%2FConstructorTest.php;fp=vendor%2Fdoctrine%2Form%2Ftests%2FDoctrine%2FTests%2FORM%2FEntity%2FConstructorTest.php;h=014a7b421eccb530a652a34356830f2aa5243c4a;hb=8b04b2d11798dee4f3e1358e4f43e97a6df851f6;hp=0000000000000000000000000000000000000000;hpb=73568cf05a785a45f94ca3f2351d9e07bf917958;p=zf2.biz%2Fapplication_blanche.git diff --git a/vendor/doctrine/orm/tests/Doctrine/Tests/ORM/Entity/ConstructorTest.php b/vendor/doctrine/orm/tests/Doctrine/Tests/ORM/Entity/ConstructorTest.php new file mode 100644 index 0000000..014a7b4 --- /dev/null +++ b/vendor/doctrine/orm/tests/Doctrine/Tests/ORM/Entity/ConstructorTest.php @@ -0,0 +1,28 @@ +assertEquals("romanb", $entity->username); + } +} + +class ConstructorTestEntity1 +{ + private $id; + public $username; + + public function __construct($username = null) + { + if ($username !== null) { + $this->username = $username; + } + } +} +