public function testCanAddPathWithNamespace() { $template = new PlatesTemplate(); $template->addPath(__DIR__ . '/TestAsset', 'test'); $paths = $template->getPaths(); $this->assertInternalType('array', $paths); $this->assertEquals(1, count($paths)); $this->assertTemplatePath(__DIR__ . '/TestAsset', $paths[0]); $this->assertTemplatePathString(__DIR__ . '/TestAsset', $paths[0]); $this->assertTemplatePathNamespace('test', $paths[0]); }
/** * @depends testCallingFactoryWithNoConfigReturnsPlatesInstance */ public function testUnconfiguredPlatesInstanceContainsNoPaths(Plates $plates) { $paths = $plates->getPaths(); $this->assertInternalType('array', $paths); $this->assertEmpty($paths); }