use Monolog\Logger;
use Monolog\Handler\TestHandler;
-class PocketImportMock extends PocketImport
-{
- public function getAccessToken()
- {
- return $this->accessToken;
- }
-}
-
class PocketImportTest extends \PHPUnit_Framework_TestCase
{
protected $token;
->with('pocket_consumer_key')
->willReturn($consumerKey);
- $pocket = new PocketImportMock(
+ $pocket = new PocketImport(
$this->em,
$this->contentProxy,
$config