Skip to content
This repository has been archived by the owner on Sep 28, 2018. It is now read-only.

Commit

Permalink
travis debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Jones committed Dec 3, 2014
1 parent 0c20ba3 commit 1247c99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
4 changes: 0 additions & 4 deletions src/Pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,6 @@ public function save($path = null)
if (!is_null($path)) $cmd .= ' --output="'.$path->getPathname().'"';
$cmd .= ' "'.$doc->getPathname().'"';

var_dump($cmd);

// Run the command
$process = $this->process($cmd);
$process->run();
Expand Down Expand Up @@ -310,8 +308,6 @@ public function save($path = null)
$process->getOutput(), 'Output file: ', "\n"
));

var_dump($output_file->getRealPath());

// Sometimes on some installations of unoconv it doesn't save the file
// at the expected location, it instead saves the final file inside a
// folder with the same name as the file. The following corrects this.
Expand Down
16 changes: 3 additions & 13 deletions tests/PdfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,13 @@ protected function setUp()

public function testConvert()
{
echo "\n\n";
Gears\Pdf::convert('./tests/templates/Convert.docx', './tests/output/Convert.pdf');

var_dump(Gears\Pdf::convert('./tests/templates/Convert.docx', './tests/output/Convert.pdf'));

echo "\n\n";

system('ls -la ./tests/output');

echo "\n\n";

system('ls -la ./tests/output/Convert.pdf');

/*$this->assertEquals
$this->assertEquals
(
file_get_contents('./tests/expected/Convert.html'),
$this->pdfBox->htmlFromPdfFile('./tests/output/Convert.pdf')
);*/
);
}

/*public function testSetValue()
Expand Down

0 comments on commit 1247c99

Please sign in to comment.