function testNotExtendable() { $foo = \arc\prototype::create(['bar' => 'Bar']); \arc\prototype::preventExtensions($foo); $bar = \arc\prototype::extend($foo, ['foo' => 'Foo']); $this->assertNull($bar); }