-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23e173e
commit 09b5ed4
Showing
8 changed files
with
33 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
/** | ||
* \Phalcon\Test\Models\Statistics\AgeStats | ||
* | ||
* @copyright (c) 2011-2016 Phalcon Team | ||
* @copyright (c) 2011-2017 Phalcon Team | ||
* @link http://www.phalconphp.com | ||
* @author Eugene Smirnov <[email protected]> | ||
* @package Phalcon\Test\Models\Statistics | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
/** | ||
* \Phalcon\Test\Models\Statistics\CityStats | ||
* | ||
* @copyright (c) 2011-2016 Phalcon Team | ||
* @copyright (c) 2011-2017 Phalcon Team | ||
* @link http://www.phalconphp.com | ||
* @author Eugene Smirnov <[email protected]> | ||
* @package Phalcon\Test\Models\Statistics | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
/** | ||
* \Phalcon\Test\Models\Statistics\GenderStats | ||
* | ||
* @copyright (c) 2011-2016 Phalcon Team | ||
* @copyright (c) 2011-2017 Phalcon Team | ||
* @link http://www.phalconphp.com | ||
* @author Eugene Smirnov <[email protected]> | ||
* @package Phalcon\Test\Models\Statistics | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
/** | ||
* \Phalcon\Test\Resultsets\Stats | ||
* | ||
* @copyright (c) 2011-2016 Phalcon Team | ||
* @copyright (c) 2011-2017 Phalcon Team | ||
* @link http://www.phalconphp.com | ||
* @author Eugene Smirnov <[email protected]> | ||
* @package Phalcon\Test\Resultsets | ||
|
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
namespace Phalcon\Test\Unit\Mvc; | ||
|
||
use DateTime; | ||
use Helper\ModelTrait; | ||
use Phalcon\Mvc\Model\Message; | ||
use Phalcon\Test\Models\Users; | ||
|
@@ -646,4 +647,28 @@ function () { | |
} | ||
); | ||
} | ||
|
||
/** | ||
* Tests empty string value on not null | ||
* | ||
* @issue 12688 | ||
* @author Wojciech Ślawski <[email protected]> | ||
* @since 2017-03-09 | ||
*/ | ||
public function testIssue12688() | ||
{ | ||
$this->specify( | ||
'Issue 12688 is happening', | ||
function () { | ||
$robots = new Robots(); | ||
$robots->name = ''; | ||
$robots->save( | ||
[ | ||
'datetime' => (new DateTime())->format('Y-m-d'), | ||
'text' => 'text', | ||
] | ||
); | ||
} | ||
); | ||
} | ||
} |