from(['foo@example.com', 'test@example.com']) ->label('Some label') ->archive(); $filterB = (new Filter()) ->has('from:bar@example.com') ->star() ->important(); $builder = new Builder([ $filterA->getProperties(), $filterB->getProperties(), ]); $result = $builder->build(); $expected = ""; $expected .= ""; $expected .= ''; $expected .= ""; $expected .= ""; $expected .= ""; $expected .= ''; $expected .= ''; $expected .= ""; $expected .= ""; $expected .= ""; $expected .= ''; $expected .= ''; $this->assertEquals($expected, $result); } }