1<?php
2class TemplateMethodsTest extends PHPUnit_Framework_TestCase
3{
4    public static function setUpBeforeClass()
5    {
6        print __METHOD__ . "\n";
7    }
8
9    protected function setUp()
10    {
11        print __METHOD__ . "\n";
12    }
13
14    protected function assertPreConditions()
15    {
16        print __METHOD__ . "\n";
17    }
18
19    public function testOne()
20    {
21        print __METHOD__ . "\n";
22        $this->assertTrue(true);
23    }
24
25    public function testTwo()
26    {
27        print __METHOD__ . "\n";
28        $this->assertTrue(false);
29    }
30
31    protected function assertPostConditions()
32    {
33        print __METHOD__ . "\n";
34    }
35
36    protected function tearDown()
37    {
38        print __METHOD__ . "\n";
39    }
40
41    public static function tearDownAfterClass()
42    {
43        print __METHOD__ . "\n";
44    }
45
46    protected function onNotSuccessfulTest(Exception $e)
47    {
48        print __METHOD__ . "\n";
49        throw $e;
50    }
51}
52