CommerceGuys\Addressing\Tests\Formatter\DefaultFormatterTest::testConstructor PHP Метод

testConstructor() публичный Метод

public testConstructor ( )
    public function testConstructor()
    {
        $formatter = new DefaultFormatter($this->addressFormatRepository, $this->countryRepository, $this->subdivisionRepository);
        $this->assertEquals($this->addressFormatRepository, $this->getObjectAttribute($formatter, 'addressFormatRepository'));
        $this->assertEquals($this->countryRepository, $this->getObjectAttribute($formatter, 'countryRepository'));
        $this->assertEquals($this->subdivisionRepository, $this->getObjectAttribute($formatter, 'subdivisionRepository'));
    }