PhpOffice\PhpPresentation\Tests\Reader\ODPresentationTest::testCanRead PHP Метод

testCanRead() публичный Метод

Test can read
public testCanRead ( )
    public function testCanRead()
    {
        $object = new ODPresentation();
        $file = PHPPRESENTATION_TESTS_BASE_DIR . '/resources/files/Sample_00_01.ppt';
        $this->assertFalse($object->canRead($file));
        $file = PHPPRESENTATION_TESTS_BASE_DIR . '/resources/files/serialized.phppt';
        $this->assertFalse($object->canRead($file));
        $file = PHPPRESENTATION_TESTS_BASE_DIR . '/resources/files/Sample_12.pptx';
        $this->assertFalse($object->canRead($file));
        $file = PHPPRESENTATION_TESTS_BASE_DIR . '/resources/files/Sample_12.odp';
        $this->assertTrue($object->canRead($file));
    }