use Symfony\Component\Validator\Constraints\Type;
use Symfony\Component\Validator\Constraints\Valid;
use Symfony\Component\Validator\Mapping\ClassMetadata;
use Symfony\Component\Validator\Mapping\Loader\AnnotationLoader;
use Symfony\Component\Validator\Mapping\Loader\AttributeLoader;
use Symfony\Component\Validator\Tests\Fixtures\ConstraintA;
class AttributeLoaderTest extends TestCase
{ public function testLoadClassMetadataReturnsTrueIfSuccessful() { $loader =
$this->
createAnnotationLoader();
$metadata =
new ClassMetadata($this->
getFixtureNamespace().'\Entity'
);
$this->
assertTrue($loader->
loadClassMetadata($metadata));
} public function testLoadClassMetadataReturnsFalseIfNotSuccessful() { $loader =
$this->
createAnnotationLoader();
$metadata =
new ClassMetadata('\stdClass'
);
$this->
assertFalse($loader->
loadClassMetadata($metadata));
}