class XmlFileLoaderTest in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/symfony/routing/Tests/Loader/XmlFileLoaderTest.php \Symfony\Component\Routing\Tests\Loader\XmlFileLoaderTest
- 8.0 vendor/symfony/dependency-injection/Tests/Loader/XmlFileLoaderTest.php \Symfony\Component\DependencyInjection\Tests\Loader\XmlFileLoaderTest
- 8.0 vendor/symfony/validator/Tests/Mapping/Loader/XmlFileLoaderTest.php \Symfony\Component\Validator\Tests\Mapping\Loader\XmlFileLoaderTest
- 8.0 vendor/symfony/serializer/Tests/Mapping/Loader/XmlFileLoaderTest.php \Symfony\Component\Serializer\Tests\Mapping\Loader\XmlFileLoaderTest
Same name and namespace in other branches
- 8 vendor/symfony/serializer/Tests/Mapping/Loader/XmlFileLoaderTest.php \Symfony\Component\Serializer\Tests\Mapping\Loader\XmlFileLoaderTest
@author Kévin Dunglas <dunglas@gmail.com>
Hierarchy
- class \Symfony\Component\Serializer\Tests\Mapping\Loader\XmlFileLoaderTest extends \Symfony\Component\Serializer\Tests\Mapping\Loader\PHPUnit_Framework_TestCase
Expanded class hierarchy of XmlFileLoaderTest
File
- vendor/
symfony/ serializer/ Tests/ Mapping/ Loader/ XmlFileLoaderTest.php, line 21
Namespace
Symfony\Component\Serializer\Tests\Mapping\LoaderView source
class XmlFileLoaderTest extends \PHPUnit_Framework_TestCase {
/**
* @var XmlFileLoader
*/
private $loader;
/**
* @var ClassMetadata
*/
private $metadata;
protected function setUp() {
$this->loader = new XmlFileLoader(__DIR__ . '/../../Fixtures/serialization.xml');
$this->metadata = new ClassMetadata('Symfony\\Component\\Serializer\\Tests\\Fixtures\\GroupDummy');
}
public function testInterface() {
$this
->assertInstanceOf('Symfony\\Component\\Serializer\\Mapping\\Loader\\LoaderInterface', $this->loader);
}
public function testLoadClassMetadataReturnsTrueIfSuccessful() {
$this
->assertTrue($this->loader
->loadClassMetadata($this->metadata));
}
public function testLoadClassMetadata() {
$this->loader
->loadClassMetadata($this->metadata);
$this
->assertEquals(TestClassMetadataFactory::createXmlCLassMetadata(), $this->metadata);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
XmlFileLoaderTest:: |
private | property | ||
XmlFileLoaderTest:: |
private | property | ||
XmlFileLoaderTest:: |
protected | function | ||
XmlFileLoaderTest:: |
public | function | ||
XmlFileLoaderTest:: |
public | function | ||
XmlFileLoaderTest:: |
public | function |