public function addWriter(Writer\WriterInterface $writer) { $this->writers[] = $writer; return $this; }
public function testLogConstructor() { $l = new Logger(new File(__DIR__ . '/../tmp/app.log')); $l->addWriter(new File(__DIR__ . '/../tmp/app.csv')); $this->assertInstanceOf('Pop\\Log\\Logger', $l); $this->assertEquals(2, count($l->getWriters())); }