scratch – Blame information for rev 126
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
126 | office | 1 | <?php |
2 | namespace Aura\Uri; |
||
3 | |||
4 | use Aura\Framework\Test\WiringAssertionsTrait; |
||
5 | |||
6 | class WiringTest extends \PHPUnit_Framework_TestCase |
||
7 | { |
||
8 | use WiringAssertionsTrait; |
||
9 | |||
10 | protected function setUp() |
||
11 | { |
||
12 | $this->loadDi(); |
||
13 | } |
||
14 | |||
15 | public function testInstances() |
||
16 | { |
||
17 | $this->assertNewInstance('Aura\Uri\PublicSuffixList'); |
||
18 | $factory = $this->assertNewInstance('Aura\Uri\Url\Factory'); |
||
19 | $this->assertInstanceOf('Aura\Uri\Url', $factory->newInstance('http://example.com')); |
||
20 | $this->assertInstanceOf('Aura\Uri\Url', $factory->newCurrent()); |
||
21 | } |
||
22 | } |