Skip to content
This repository was archived by the owner on Apr 5, 2020. It is now read-only.

Commit 4164f78

Browse files
committed
Remove further lang.Object references
1 parent f8ebbd4 commit 4164f78

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php namespace scriptlet\unittest;
2+
3+
abstract class Layout implements \xp\scriptlet\WebLayout {
4+
5+
}

src/test/php/scriptlet/unittest/SourceTest.class.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use scriptlet\HttpScriptlet;
1111
use lang\ClassLoader;
1212
use lang\System;
13-
use lang\Object;
1413

1514
class SourceTest extends \unittest\TestCase {
1615
private static $scriptlet, $layout, $dir, $file;
@@ -22,7 +21,7 @@ public static function defineScriptlet() {
2221

2322
#[@beforeClass]
2423
public static function defineLayout() {
25-
self::$layout= ClassLoader::defineClass(self::class.'_Layout', Object::class, [WebLayout::class], '{
24+
self::$layout= ClassLoader::defineClass(self::class.'_Layout', Layout::class, [], '{
2625
public function mappedApplications($profile= null) { /* Intentionally empty */ }
2726
public function staticResources($profile= null) { /* Intentionally empty */ }
2827
}');
@@ -83,7 +82,7 @@ public function from_fully_qualified_layout_name_bc_with_colon_prefix() {
8382
$this->assertInstanceOf(self::$layout, (new Source(':'.self::$layout->getName()))->layout());
8483
}
8584

86-
#[@test, @expect(IllegalArgumentException::class), @values(['lang.Object', ':lang.Object'])]
85+
#[@test, @expect(IllegalArgumentException::class), @values(['lang.Value', ':lang.Value'])]
8786
public function cannot_create_when_passed_class_which_is_neither_scriptlet_nor_layout($name) {
8887
(new Source($name))->layout();
8988
}

0 commit comments

Comments
 (0)