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