Currently learning_mocks are collected and reported when constraints are tallied, i.e. at the end of the test.
This makes any learned calls not printed if the test fails with an exception. Something which is not unlikely given that you have not expect()s with will_return() set up yet.
Doing this in the mock() call instead would create a better chance that anything actually comes out.