From ed3bc7f2ecd8e898a04d7ca00a1dc1ab40d2c562 Mon Sep 17 00:00:00 2001 From: Dominik Liebler Date: Wed, 11 Sep 2013 16:06:13 +0200 Subject: [PATCH] cs Adapter --- Adapter/EBookAdapter.php | 4 +++- Tests/Adapter/AdapterTest.php | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Adapter/EBookAdapter.php b/Adapter/EBookAdapter.php index c9ff06f..c572f67 100644 --- a/Adapter/EBookAdapter.php +++ b/Adapter/EBookAdapter.php @@ -14,7 +14,9 @@ namespace DesignPatterns\Adapter; */ class EBookAdapter implements PaperBookInterface { - + /** + * @var EBookInterface + */ protected $eBook; /** diff --git a/Tests/Adapter/AdapterTest.php b/Tests/Adapter/AdapterTest.php index 3e72ce7..7473de6 100644 --- a/Tests/Adapter/AdapterTest.php +++ b/Tests/Adapter/AdapterTest.php @@ -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)