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