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
## Sample Propel configuration file ## | |
propel: | |
## General settings ## | |
general: | |
# The name of your project. | |
# This affects names of generated files, etc. | |
project: | |
version: 2.0.0-dev |
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
<?php | |
require 'violations_to_array.php'; | |
use Symfony\Component\Validator\ConstraintViolation; | |
use Symfony\Component\Validator\ConstraintViolationList; | |
class ConstraintViolationListTest extends \PHPUnit_Framework_TestCase | |
{ | |
protected $list; |
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
<?php | |
/** | |
* This function was originally created to be used inside a Propel2 project. | |
* Anyway, it can be used in every project following the PSR-0 and using the Symfony Validator Component. | |
* | |
* @see http://symfony.com/doc/current/book/validation.html | |
* @see https://github.com/propelorm/Propel2/blob/master/documentation/behaviors/validate.markdown | |
*/ | |
use Symfony\Component\Validator\ConstraintViolationList; |