phpunit simple test

raw

MiniTest.php

1
2
3
4
5
6
7
8
9
10
<?php
class MiniTest extends PHPUnit_Framework_TestCase
{
    public function testOne()
    {
        $this->assertTrue(true);
    }
}
?>
 
raw

output.sh

1
2
3
4
5
6
7
8
9
$ phpunit MiniTest.php 
PHPUnit 3.7.14 by Sebastian Bergmann.
 
.
 
Time: 0 seconds, Memory: 5.50Mb
 
OK (1 test, 1 assertion)
 
Christian Weiske Christian Weiske
owner

History