-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Simplifying config schema, generalizing the "get id" function, better checks in factory and allowing access to factory properties, adding revert functionality to the harvester, and bringing compatibility back to php 7.1.
- Loading branch information
Showing
16 changed files
with
188 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
|
||
class ExtractTest extends \PHPUnit\Framework\TestCase | ||
{ | ||
public function testNoItems() { | ||
$this->expectExceptionMessage("No Items were extracted."); | ||
(new TestExtract())->run(); | ||
} | ||
|
||
public function testNoObjects() { | ||
$item = json_encode("Hello World!!"); | ||
$this->expectExceptionMessage("The items extracted are not php objects: {$item}"); | ||
(new TestExtractNoObjects())->run(); | ||
} | ||
} | ||
|
||
class TestExtract extends \Harvest\ETL\Extract\Extract { | ||
protected function getItems() | ||
{ | ||
return []; | ||
} | ||
} | ||
|
||
class TestExtractNoObjects extends \Harvest\ETL\Extract\Extract { | ||
protected function getItems() | ||
{ | ||
return ["Hello World!!"]; | ||
} | ||
} |
Oops, something went wrong.