Kraken\_Module\Filesystem\_Partial\Filesystem\FsApiCreateFilePartial::testApiCreateFile_ThrowsException_WhenNodeIsDirectory PHP Метод

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

    public function testApiCreateFile_ThrowsException_WhenNodeIsDirectory()
    {
        $test = $this->getTest();
        $fs = $this->createFilesystem();
        $dest = $this->getPrefixed('DIR_A');
        $after = 'FILE_A_NEW_TEXT';
        $test->setExpectedException(WriteException::class);
        $test->assertTrue($fs->exists($dest));
        $fs->createFile($dest, $after);
    }