validate() публичный Метод

public validate ( $value, Phix_Project\ValidationLib4\ValidationResult $result = null )
$result Phix_Project\ValidationLib4\ValidationResult
 /**
  * @covers DataSift\Storyplayer\ValidationLib\MustBeValidStoryTemplate::validate()
  */
 public function testRejectsNonClasses()
 {
     // ----------------------------------------------------------------
     // setup your test
     $obj = new MustBeValidStoryTemplate();
     // ----------------------------------------------------------------
     // perform the change
     $result = $obj->validate("DataSift\\Storyplayer\\ValidationLib\\ClassDoesNotExist");
     // ----------------------------------------------------------------
     // test the results
     $this->assertNotNull($result);
     $this->assertFalse($result->isValid());
 }