testify/FailedTestResult.php

23 lines
347 B
PHP

<?php
class FailedTestResult implements TestResult {
protected $test;
protected $failure;
public function __construct(Testable $test, TestFailure $failure) {
$this->test = $test;
$this->failure = $failure;
}
public function passed() {
return false;
}
public function failed() {
return true;
}
}
?>