Fhaculty\Graph\Tests\Attribute\AttributeBagContainerTest::testEmpty PHP Méthode

testEmpty() public méthode

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