Nelmio\Alice\Definition\MethodCallBag::isEmpty PHP Method

isEmpty() public method

public isEmpty ( ) : boolean
return boolean
    public function isEmpty() : bool
    {
        return [] === $this->methodCalls;
    }

Usage Example

Beispiel #1
0
 public function testIsEmpty()
 {
     $bag = new MethodCallBag();
     $this->assertTrue($bag->isEmpty());
     $bag = $bag->with(new FakeMethodCall());
     $this->assertFalse($bag->isEmpty());
 }