tests/TestSuiteTest.php
/**
     * Test suite with test cases.
     */
Test suite with test cases.
Test suite with test cases .
public function testWithTestCases()
    {
        $location = new FileLocation(FilePath::parse('./foo.webunit'), 1);
        $testCase1 = new \MichaelHall\Webunit\TestCase($location, Url::parse('http://localhost'));
        $testCase2 = new \MichaelHall\Webunit\TestCase($location, Url::parse('http://localhost/foo'));
        $testSuite = new TestSuite();
        $testSuite->addTestCase($testCase1);
        $testSuite->addTestCase($testCase2);
        self::assertSame([$testCase1, $testCase2], $testSuite->getTestCases());
    }
public function testWithTestCases ( ) { $ location = new FileLocation ( FilePath :: parse ( './foo.webunit' ) , 1 ) ; $ testCase1 = new \ MichaelHall \ Webunit \ TestCase ( $ location , Url :: parse ( 'http://localhost' ) ) ; $ testCase2 = new \ MichaelHall \ Webunit \ TestCase ( $ location , Url :: parse ( 'http://localhost/foo' ) ) ; $ testSuite = new TestSuite ( ) ; $ testSuite -> addTestCase ( $ testCase1 ) ; $ testSuite -> addTestCase ( $ testCase2 ) ; self :: assertSame ( [ $ testCase1 , $ testCase2 ] , $ testSuite -> getTestCases ( ) ) ; }
Test suite with test cases.
Test suite with test cases .