sounds like you are looking more of an integration test and data fixtures.

On Thu, Oct 24, 2013 at 8:16 AM, Ralf Eggert <[email protected]> wrote:

> Hi,
>
> I have the following unit test, which uses quite some mocked objects to
> test a method of a CustomerTable which extends TableGateway.
>
> http://pastebin.com/d1try7YZ
>
> This is the CustomerTable with its fetchList() method that should be
> tested by the unit test.
>
> http://pastebin.com/qT2P7GuD
>
> The unit test runs through without any error and it looks like the stuff
> is working as expected. But is it really? I could almost do anything
> within my fetchList() method as long as it calls the selectWith() or
> select() methods. I could add some order or where stuff to the select
> and the test will always succeed.
>
> So, does this Unit Test for the CustomerTable really make sense?
>
> Any thoughts?
>
> Thanks and best regards,
>
> Ralf
>
> --
> List: [email protected]
> Info: http://framework.zend.com/archives
> Unsubscribe: [email protected]
>
>
>

Reply via email to