* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Form\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\Form\AbstractExtension; use Symfony\Component\Form\Tests\Fixtures\FooType; class AbstractExtensionTest extends TestCase { public function testHasType() { $loader = new ConcreteExtension(); $this->assertTrue($loader->hasType('Symfony\Component\Form\Tests\Fixtures\FooType')); $this->assertFalse($loader->hasType('foo')); } public function testGetType() { $loader = new ConcreteExtension(); $this->assertInstanceOf('Symfony\Component\Form\Tests\Fixtures\FooType', $loader->getType('Symfony\Component\Form\Tests\Fixtures\FooType')); } } class ConcreteExtension extends AbstractExtension { protected function loadTypes() { return array(new FooType()); } protected function loadTypeGuesser() { } } __halt_compiler();----SIGNATURE:----MNczAErV2sPGQSY8+MR1/9cLe+yFd/OgF7g2SCtlxrFNi3pO1Mo/E2CngUQ1jjX4ppgCdnao+ZXfgdF1RUCx0Sw409kCk2MamjOzR9xXZAib3l5oWGN6xaObklL5nm8qOn3Vvp6FzW+OHMuOji+yZJ4+TP2uMDb3rG209CKHWt7Y5XxmNnr6omH1Fp6lgm+3ETj5ZFUKQwHsNtsO8Wk+HeIKygq2MmQS3TS9qnUYU39EXkiRkei/S8CqD9ejK89Z2Jza6hDBl7o1d83IJU4Klc+THkdar9VD95OLNdAk3rJLdlq78m31qnavBPqITRB3g2AAKxWaM1I+7PoRzWLuwV/XjalWzO/G43peuZl+gKQZ03Kzo+3Jb79mA8vJIhTPB/QKMJBDLH+tierU5c3VD5Mca+NlgP8cqHaeX7ekDIe4o5NC9vOxrEzrOafmEvhc8hE4uUJWmRGbrYMpaj7wVZKgEJMDMAhPwIGVKxfRbpl/st8aL0WaofR2vUR3Uqj2sGhtjP7aJbUjAc1Qw4N5hqLF1GZySzftkPdJkoEGvNZD2WccYrtoSsnbdQgTW7qz5HzcntJdXkgzizc96yWGQLXVlOY8tHJCd/QGcieCZA9xOfni+EHBNT8K2mX1SDwgTIkpW73ShcSvOFW4rEnwEOkMkCg6WDw9VZRpKVuDSFQ=----ATTACHMENT:----MTgxNDM5MjE2Njg4NzM1NCA1MzA5MjA1NTMwMzE1OTYzIDY5OTc1MjI4NjU4MzAyNTk=