1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/tests/DoctrineTest/Reporter/Cli.php

24 lines
693 B
PHP

<?php
class DoctrineTest_Reporter_Cli extends DoctrineTest_Reporter{
public function paintHeader($name){
echo $name . "\n";
echo "====================\n";
}
public function paintFooter(){
echo "\n";
foreach ($this->_test->getMessages() as $message) {
print $message . "\n";
}
echo "====================\n";
print "Tested: " . $this->_test->getTestCaseCount() . ' test cases' ."\n";
print "Successes: " . $this->_test->getPassCount() . " passes. \n";
print "Failures: " . $this->_test->getFailCount() . " fails. \n";
}
public function getProgressIndicator(){
return ".";
}
}