public function test__construct() { $this->if($field = new \mock\mageekguy\atoum\report\field())->then->variable($field->getEvents())->isNull()->object($field->getLocale())->isEqualTo(new atoum\locale()); }
public function testAddField() { $this->if($report = new testedClass())->then->object($report->addField($field = new \mock\mageekguy\atoum\report\field()))->isIdenticalTo($report)->array($report->getFields())->isIdenticalTo(array($field))->object($field->getLocale())->isIdenticalTo($report->getLocale())->object($report->addField($otherField = new \mock\mageekguy\atoum\report\field()))->isIdenticalTo($report)->array($report->getFields())->isIdenticalTo(array($field, $otherField))->object($field->getLocale())->isIdenticalTo($report->getLocale())->object($otherField->getLocale())->isIdenticalTo($report->getLocale()); }