/** * validates getErrors works as expected * * @author Daniel Sherman * @test * @depends testConstruct * @covers ::getErrors */ public function testGetErrors() { $test = new Caller('is_string', 'Hello World!'); $this->assertEquals(['Hello World!'], $test->getErrors()); $msg = '_Hello_ _World_!'; $rep = new \Flair\Validation\Replacer(['Hello' => 'Hi', 'World' => 'People']); $test = new Caller('is_string', $msg, [], $rep); $this->assertEquals(['Hi People!'], $test->getErrors()); }