spec/im/Primitive/Object/ObjectSpec.php
function it_should_construct_properly_from_array()
    {
        $initializer = ['foo', 'bar', 'name' => 'fooBar'];

        $this->fromArray($initializer)->get('name')->shouldBe('fooBar');

        $this->length()->shouldBe(count($this->init));
    }
function it_should_construct_properly_from_array()
    {
        $initializer = ['foo', 'bar', 'name' => 'fooBar'];

        $this->fromArray($initializer)->get('name')->shouldBe('fooBar');

        $this->length()->shouldBe(count($this->init));
    }
Construction and conversion