mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-09 00:16:32 +02:00
cs Adapter
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
namespace DesignPatterns\Tests\Adapter;
|
||||
|
||||
use DesignPatterns\Adapter\ElecBookAdapter;
|
||||
use DesignPatterns\Adapter\EBookAdapter;
|
||||
use DesignPatterns\Adapter\Kindle;
|
||||
use DesignPatterns\Adapter\PaperBookInterface;
|
||||
use DesignPatterns\Adapter\Book;
|
||||
@@ -23,13 +23,13 @@ class AdapterTest extends \PHPUnit_Framework_TestCase
|
||||
return array(
|
||||
array(new Book()),
|
||||
// we build a "wrapped" electronic book in the adapter
|
||||
array(new ElecBookAdapter(new Kindle()))
|
||||
array(new EBookAdapter(new Kindle()))
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* This client only knows paper book but surprise, surprise, the second book
|
||||
* is in fact an electronic book.
|
||||
* is in fact an electronic book, but both work the same way
|
||||
*
|
||||
* @dataProvider getBook
|
||||
*/
|
||||
|
Reference in New Issue
Block a user