cs Adapter

This commit is contained in:
Dominik Liebler
2013-09-11 16:06:13 +02:00
parent bead52e9e9
commit ed3bc7f2ec
2 changed files with 9 additions and 3 deletions

View File

@@ -14,7 +14,9 @@ namespace DesignPatterns\Adapter;
*/
class EBookAdapter implements PaperBookInterface
{
/**
* @var EBookInterface
*/
protected $eBook;
/**

View File

@@ -17,7 +17,9 @@ use DesignPatterns\Adapter\Book;
*/
class AdapterTest extends \PHPUnit_Framework_TestCase
{
/**
* @return array
*/
public function getBook()
{
return array(
@@ -30,7 +32,9 @@ class AdapterTest extends \PHPUnit_Framework_TestCase
/**
* This client only knows paper book but surprise, surprise, the second book
* is in fact an electronic book, but both work the same way
*
*
* @param PaperBookInterface $book
*
* @dataProvider getBook
*/
public function test_I_am_an_old_Client(PaperBookInterface $book)