/** * @dataProvider provider */ public function testRule($ruleName, $given, $expected, $skip = false) { if ($skip) { $this->markTestSkipped(); } $this->assertEquals($expected, $this->typograph->process($given), 'Failed asserting that ' . $ruleName); }
/** * @return EMTypograph */ public function Setup() { $_t = new EMTypograph(); $_t->setup($this->params); return $_t; }