Fhaculty\Graph\Tests\Attribute\AttributeBagReferenceTest::testEmpty PHP Method

testEmpty() public method

public testEmpty ( )
    public function testEmpty()
    {
        $attributes = array();
        $bag = new AttributeBagReference($attributes);
        $this->assertNull($bag->getAttribute('unknown'));
        $this->assertEquals('default', $bag->getAttribute('unknown', 'default'));
        $this->assertEquals(array(), $bag->getAttributes());
        $this->assertSame($bag, $bag->getAttributeBag());
    }