PhpOffice\PhpPresentation\Tests\Writer\PowerPoint2007\LayoutPack\TemplateBasedTest::testFindLayout PHP Method

testFindLayout() public method

public testFindLayout ( )
    public function testFindLayout()
    {
        $file = PHPPRESENTATION_TESTS_BASE_DIR . '/resources/files/Sample_00_01.pptx';
        $templateBased = new TemplateBased($file);
        $layouts = $templateBased->getLayouts();
        foreach ($layouts as $layout) {
            $foundLayout = $templateBased->findLayout($layout['name']);
            $this->assertEquals($layout, $foundLayout);
        }
    }