Dat is gewoon dom.Grijze Vos schreef op woensdag 28 augustus 2013 @ 09:02:
[...]
Volgens mij begrijp je me niet. Welke constructor? Dependencies worden op de volgende manier binnengehaald:
C#:
Daarom programmeer je ook tegen interfaces, niet tegen concrete implementaties. Als het goed is hoef je classes (uit je eigen code) nergens te mocken, behalve wellicht in de tests van die class zelf.BikkelZ schreef op dinsdag 27 augustus 2013 @ 17:27:
[...]
Ja maar als je de class die je DI't weer ergens anders wil gaan mocken? Moet je dan het hele ding weer eerst in elkaar gaan zetten met mocks via de constructor? Als je afleidt van een interface is het altijd makkelijker om te testen.
.oisyn: Échte programmeurs haten PHP met een passie. Ben jij soms geen echte programmeur?




/u/19474/avatar2015.png?f=community) 
            :strip_exif()/u/73955/foxavatar-60.gif?f=community) 
            /u/373849/cowava2.png?f=community) 
            /u/155568/usericon.png?f=community) 
            :strip_icc():strip_exif()/u/77332/crop5e54ec42433bc_cropped.jpeg?f=community) 
            /u/155085/Vlag.png?f=community) 
            :strip_icc():strip_exif()/u/110760/ava.jpg?f=community) 
             
  :strip_icc():strip_exif()/u/40565/cow.jpg?f=community) 
            /u/313216/crop679f937b7f4c1_cropped.png?f=community) 
             
                    /u/105682/crop5f9808e589a0e_cropped.png?f=community) 
            :strip_exif()/u/14385/malibu.gif?f=community) 
             
                    /u/243953/crop56f55a7bcf291.png?f=community) 
            :strip_icc():strip_exif()/u/12461/crop65b195553d948.jpg?f=community) 
            :strip_icc():strip_exif()/u/116600/crop5be04a1ae3ded_cropped.jpeg?f=community) 
             
                    :strip_icc():strip_exif()/u/6143/rincewind.jpg?f=community) 
            :strip_exif()/u/80759/monstermania_small.gif?f=community) 
            /u/146516/boulder.png?f=community) 
             
                                                /u/1695/jumpman60.png?f=community) 
            
 
 :strip_icc():strip_exif()/u/180657/texacoiq2.jpg?f=community) 
            /u/82778/crop60b22ec57ed72_cropped.png?f=community) 
            :strip_icc():strip_exif()/u/393369/crop55d593566408c.jpeg?f=community) 
            :strip_exif()/u/294184/20150204_SITE_GIF_VALKUIL-resized.gif?f=community) 
            /u/262016/crop64ed94e1a7757_cropped.png?f=community) 
             Dit topic is gesloten.
 
                                                            Dit topic is gesloten.