Carew\Tests\ProcessorTest::testWrite PHP Method

testWrite() public method

public testWrite ( )
    public function testWrite()
    {
        $tmp = sys_get_temp_dir() . '/carew-test';
        static::deleteDir($tmp);
        $document = new Document(new SplFileInfo(__FILE__, '', ''));
        $document->setPath('foo/bar/file.html');
        $this->processor->write($document, $tmp);
        $this->assertFileEquals(__FILE__, $tmp . '/foo/bar/file.html');
        static::deleteDir($tmp);
    }