Skip to content

Commit

Permalink
Merge branch 'main' of github.com:cacing69/cquery
Browse files Browse the repository at this point in the history
  • Loading branch information
cacing69 committed Sep 16, 2023
2 parents 5048485 + 452393e commit 0f0d7ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Cquery.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ public function save($path, $writer = CSVWriter::class)
{
$writer = new $writer();
$writer->setData($this->get());

return $writer->save($path);
}
}
2 changes: 1 addition & 1 deletion tests/SampleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ public function testSaveWithCsvWriter()
'h1 as title',
'1.9 as static_number'
)
->save(".cached/test_write.csv");
->save('.cached/test_write.csv');

$this->assertSame(".cached/test_write.csv", $result);
}
Expand Down
1 change: 1 addition & 0 deletions tests/WriterTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

use Cacing69\Cquery\Cquery;
use Cacing69\Cquery\Writer\CSVWriter;
use PHPUnit\Framework\TestCase;
Expand Down

0 comments on commit 0f0d7ca

Please sign in to comment.