PopTest\Feed\WriterTest::testConstructor PHP Method

testConstructor() public method

public testConstructor ( )
    public function testConstructor()
    {
        $headers = array('title' => 'Test Feed Title', 'subtitle' => 'Test Feed Description', 'link' => 'http://www.testfeed.com/', 'language' => 'en', 'updated' => '2010-01-12 13:01:32', 'generator' => 'http://www.website.com/', 'author' => 'Some Editor');
        $entry = array('title' => 'Entry Title 1', 'link' => 'http://www.testfeed.com/entry1', 'comments' => 'http://www.testfeed.com/entry1#comments', 'author' => 'Entry Author 1', 'updated' => '2010-01-13 14:12:24', 'summary' => 'Entry Desc 1');
        $this->assertInstanceOf('Pop\\Feed\\Writer', new Writer($headers, array($entry)));
        $this->assertInstanceOf('Pop\\Feed\\Writer', Writer::factory($headers, array($entry)));
    }