Skip to content

Commit ff5599b

Browse files
authored
Update for the latest version of the runtime component (#6)
* Update for the latest version of the runtime component * CS fix * Remove "Root" tests * We still need composer.json
1 parent e443f0c commit ff5599b

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@
2020
"autoload": {
2121
"psr-4": {
2222
"Runtime\\React\\": "src/",
23-
"Symfony\\Runtime\\Psr\\": "runtime/"
23+
"Symfony\\Runtime\\Psr\\Http\\": "runtime/"
24+
}
25+
},
26+
"autoload-dev": {
27+
"psr-4": {
28+
"Runtime\\React\\Tests\\": "tests/"
2429
}
2530
},
2631
"minimum-stability": "dev",

runtime/Server/RequestHandlerInterfaceRuntime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Symfony\Runtime\Psr\Server;
3+
namespace Symfony\Runtime\Psr\Http\Server;
44

55
use Runtime\React\Runtime;
66

tests/AutoDiscoverTest.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace Runtime\React\Tests;
4+
5+
use PHPUnit\Framework\TestCase;
6+
use Runtime\React\Runtime;
7+
8+
class AutoDiscoverTest extends TestCase
9+
{
10+
public function testAutoDiscoverClasses()
11+
{
12+
$classes = [
13+
'Symfony\Runtime\Psr\Http\Server\RequestHandlerInterfaceRuntime',
14+
];
15+
16+
foreach ($classes as $class) {
17+
$this->assertTrue(class_exists($class));
18+
$this->assertTrue(is_subclass_of($class, Runtime::class));
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)