FastFeed\Tests\AbstractFastFeedTest::setUp PHP Method

setUp() public method

public setUp ( )
    public function setUp()
    {
        $this->httpMock = $this->getMockBuilder('Ivory\\HttpAdapter\\GuzzleHttpAdapter')->disableOriginalConstructor()->getMock();
        $this->loggerMock = $this->getMockBuilder('Psr\\Log\\LoggerInterface')->disableOriginalConstructor()->getMock();
        $this->fastFeed = new FastFeed($this->httpMock, $this->loggerMock);
    }

Usage Example

Example #1
0
 public function setUp()
 {
     parent::setUp();
     $this->cacheMock = $this->getMockBuilder('Desarrolla2\\Cache\\CacheInterface')->disableOriginalConstructor()->getMock();
     $this->fastFeed = new FastFeed($this->httpMock, $this->loggerMock);
     $this->fastFeed->setCache($this->cacheMock);
     $this->fastFeed->addFeed('desarrolla2', 'http://desarrolla2.com/feed/');
 }
All Usage Examples Of FastFeed\Tests\AbstractFastFeedTest::setUp
AbstractFastFeedTest