assess() public method

public assess ( array $source ) : array
$source array
return array Errors.
Beispiel #1
0
 /**
  * @depends testBuildTest
  */
 public function testAssessFailingTest(\Gajus\Vlad\Test $test)
 {
     $test->assert('foo')->is('String');
     $assessment = $test->assess(['foo' => new \stdClass()]);
     $this->assertCount(1, $assessment);
     $this->assertSame('Foo is not a string.', $assessment[0]);
 }