File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ void throwOnMissingStub(Mock mock) {
5555///
5656/// // Real class.
5757/// class Cat {
58- /// String getSound() => 'Meow';
58+ /// String getSound(String suffix ) => 'Meow$suffix ';
5959/// }
6060///
6161/// // Mock class.
@@ -66,10 +66,10 @@ void throwOnMissingStub(Mock mock) {
6666/// var cat = new MockCat();
6767///
6868/// // When 'getSound' is called, return 'Woof'
69- /// when(cat.getSound()).thenReturn('Woof');
69+ /// when(cat.getSound(typed(any) )).thenReturn('Woof');
7070///
7171/// // Try making a Cat sound...
72- /// print(cat.getSound()); // Prints 'Woof'
72+ /// print(cat.getSound('foo' )); // Prints 'Woof'
7373/// }
7474///
7575/// **WARNING**: [Mock] uses [noSuchMethod] (goo.gl/r3IQUH), which is a _form_ of
You can’t perform that action at this time.
0 commit comments