Yosymfony\Spress\Core\Support\FileInfo::hasPredefinedExtension PHP Method

hasPredefinedExtension() public method

Has a predefined extension?
public hasPredefinedExtension ( ) : boolean
return boolean
    public function hasPredefinedExtension()
    {
        $this->getExtension();
        return $this->hasPredefinedExt;
    }

Usage Example

Esempio n. 1
0
 public function testHasPredefinedExtension()
 {
     $fileInfo = new FileInfo('2016-02-02-spress-2.1.1-released.md', $this->predefinedExtensions);
     $this->assertTrue($fileInfo->hasPredefinedExtension());
     $fileInfo = new FileInfo('2016-02-02-spress-2.1.1-released.acme', $this->predefinedExtensions);
     $this->assertFalse($fileInfo->hasPredefinedExtension());
 }
All Usage Examples Of Yosymfony\Spress\Core\Support\FileInfo::hasPredefinedExtension