public function isEmpty() : bool { return [] === $this->methodCalls; }
public function testIsEmpty() { $bag = new MethodCallBag(); $this->assertTrue($bag->isEmpty()); $bag = $bag->with(new FakeMethodCall()); $this->assertFalse($bag->isEmpty()); }