PageRenderTime 17ms CodeModel.GetById 10ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/vendor/phpunit/phpunit/tests/Regression/GitHub/2137/Issue2137Test.php

https://bitbucket.org/alan_cordova/api-sb-map
PHP | 33 lines | 18 code | 4 blank | 11 comment | 0 complexity | 35cec194a806090aa934a33f7a431c77 MD5 | raw file
 1<?php
 2class Issue2137Test extends PHPUnit_Framework_TestCase
 3{
 4    /**
 5     * @dataProvider provideBrandService
 6     * @param $provided
 7     * @param $expected
 8     */
 9    public function testBrandService($provided, $expected)
10    {
11        $this->assertSame($provided, $expected);
12    }
13
14
15    public function provideBrandService()
16    {
17        return [
18            //[true, true]
19            new stdClass() // not valid
20        ];
21    }
22
23
24    /**
25     * @dataProvider provideBrandService
26     * @param $provided
27     * @param $expected
28     */
29    public function testSomethingElseInvalid($provided, $expected)
30    {
31        $this->assertSame($provided, $expected);
32    }
33}