Re: Error: Argument 1 passed to screenFake::__construct() must be aninstance of databaseInterfaseFake, instance ofMock_databaseInterfaceFake_b36397fd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 22.08.2015 at 22:34, Ramiro Barrantes wrote:

> I am trying to write a unit test for a dependency injection situation and I have a reproducible example at the end.  I am getting this error:
> 
> 1) testFake::test_fake
> Argument 1 passed to screenFake::__construct() must be an instance of databaseInterfaseFake, instance of Mock_databaseInterfaceFake_b36397fd given, called in fakeTest.php on line 25 and de...

It seems you have a typo there: databaseInterfaseFake should probably be
databaseInterfaceFake.

-- 
Christoph M. Becker

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux