Created
August 16, 2011 12:30
-
-
Save makasim/1148960 to your computer and use it in GitHub Desktop.
Doctrine2 validate schema test
This file contains hidden or 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 | |
| <?php | |
| namespace Foo\PaymentBundle\Tests\Database; | |
| use Doctrine\ORM\Tools\SchemaValidator; | |
| class ValidateSchemaTest extends BaseDatabaseTest | |
| { | |
| /** | |
| * | |
| * @test | |
| */ | |
| public function shouldValidateSchemaWithoutErrors() | |
| { | |
| $validator = new SchemaValidator($this->em()); | |
| $errors = $validator->validateMapping(); | |
| $this->assertEmpty($errors, "Validation errors found: \n\n".var_export($errors, true)); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment