b0y-101 Mini Shell


Current Path : E:/www/b-group.old/business/applicationmba/vendor/phpunit/phpunit/tests/_files/
File Upload :
Current File : E:/www/b-group.old/business/applicationmba/vendor/phpunit/phpunit/tests/_files/ExceptionInTest.php

<?php
use PHPUnit\Framework\TestCase;

class ExceptionInTest extends TestCase
{
    public $setUp                = false;
    public $assertPreConditions  = false;
    public $assertPostConditions = false;
    public $tearDown             = false;
    public $testSomething        = false;

    protected function setUp()
    {
        $this->setUp = true;
    }

    protected function assertPreConditions()
    {
        $this->assertPreConditions = true;
    }

    public function testSomething()
    {
        $this->testSomething = true;
        throw new Exception;
    }

    protected function assertPostConditions()
    {
        $this->assertPostConditions = true;
    }

    protected function tearDown()
    {
        $this->tearDown = true;
    }
}

Copyright © 2019 by b0y-101