Swift_Transport_StreamBuffer_AbstractStreamBufferAcceptanceTest::setUp PHP Method

setUp() public method

public setUp ( )
    public function setUp()
    {
        if (true == getenv('TRAVIS')) {
            $this->markTestSkipped('Will fail on travis-ci if not skipped due to travis blocking ' . 'socket mailing tcp connections.');
        }
        $this->buffer = new Swift_Transport_StreamBuffer($this->getMockBuilder('Swift_ReplacementFilterFactory')->getMock());
    }

Usage Example

 public function setUp()
 {
     if (!defined('SWIFT_SENDMAIL_PATH')) {
         $this->markTestSkipped('Cannot run test without a path to sendmail (define ' . 'SWIFT_SENDMAIL_PATH in tests/acceptance.conf.php if you wish to run this test)');
     }
     parent::setUp();
 }
All Usage Examples Of Swift_Transport_StreamBuffer_AbstractStreamBufferAcceptanceTest::setUp