/** * @dataProvider provider */ public function testConstruction(Publisher $publisher, $expectedIsDefined, $expectedToString) { $this->assertEquals($expectedToString, $publisher->__toString()); $this->assertEquals($expectedIsDefined, $publisher->isDefined()); $this->assertEquals(Publisher::none()->getKey(), $publisher->getKey()); }