/** * @test */ function it_skips_expressions_when_no_key_is_entered() { $interception = new TestInterception(null, 'method', ['key1' => 'value1', 'key2' => 'value2']); $annotation = new TestAnnotation(['key' => '']); $this->innerGenerator->method('generateKey')->with($interception, $annotation)->willReturn('success'); $result = $this->keyGenerator->generateKey($interception, $annotation); $this->assertEquals('success', $result); }