function testCanBeLimitedToSomeTypes() { $this->validator->validate($this->text, null, array('doc'))->shouldBeCalled(); $this->docbot->lint($this->text, array('doc')); }
/** @dataProvider getExamples */ public function testLinting($file, array $expectedViolations, $message = null) { $violations = $this->linter->lint($file); $this->assertViolations($expectedViolations, $violations, $message); }