function it_should_add_an_attribute() { $this->addAttribute('name', 'foo'); $this->getAttributes()->shouldBeEqualTo(['name' => ['foo']]); }