mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-06-24 10:13:17 +02:00
add parameter type in Facade Test
This commit is contained in:
@ -3,6 +3,7 @@
|
|||||||
namespace DesignPatterns\Structural\Facade\Tests;
|
namespace DesignPatterns\Structural\Facade\Tests;
|
||||||
|
|
||||||
use DesignPatterns\Structural\Facade\Facade as Computer;
|
use DesignPatterns\Structural\Facade\Facade as Computer;
|
||||||
|
use DesignPatterns\Structural\Facade\OsInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FacadeTest shows example of facades
|
* FacadeTest shows example of facades
|
||||||
@ -35,7 +36,7 @@ class FacadeTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* @dataProvider getComputer
|
* @dataProvider getComputer
|
||||||
*/
|
*/
|
||||||
public function testComputerOn(Computer $facade, $os)
|
public function testComputerOn(Computer $facade, OsInterface $os)
|
||||||
{
|
{
|
||||||
// interface is simpler :
|
// interface is simpler :
|
||||||
$facade->turnOn();
|
$facade->turnOn();
|
||||||
|
Reference in New Issue
Block a user