Skip to content

Commit

Permalink
Moved test Postmark class to separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
adamaveray authored and Ninir committed Jul 16, 2014
1 parent f456b7f commit 9e4d386
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 25 deletions.
2 changes: 0 additions & 2 deletions tests/Stampie/Tests/GitHub/Issue4Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
use Stampie\Adapter\Response;
use Stampie\Tests\Mailer\TestPostmark;

require_once __DIR__.'/../Mailer/PostmarkTest.php';

/**
* @author Henrik Bjornskov <henrik@bjrnskov.dk>
*/
Expand Down
23 changes: 0 additions & 23 deletions tests/Stampie/Tests/Mailer/PostmarkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,26 +96,3 @@ public function handleDataProvider()
);
}
}

class TestPostmark extends Postmark
{
public function getEndpoint()
{
return parent::getEndpoint();
}

public function handle(ResponseInterface $response)
{
parent::handle($response);
}

public function getHeaders()
{
return parent::getHeaders();
}

public function format(MessageInterface $message)
{
return parent::format($message);
}
}
30 changes: 30 additions & 0 deletions tests/Stampie/Tests/Mailer/TestPostmark.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

namespace Stampie\Tests\Mailer;

use Stampie\Mailer\Postmark;
use Stampie\Adapter\ResponseInterface;
use Stampie\MessageInterface;

class TestPostmark extends Postmark
{
public function getEndpoint()
{
return parent::getEndpoint();
}

public function handle(ResponseInterface $response)
{
parent::handle($response);
}

public function getHeaders()
{
return parent::getHeaders();
}

public function format(MessageInterface $message)
{
return parent::format($message);
}
}

0 comments on commit 9e4d386

Please sign in to comment.