public function testProhibitsNonNullNesting() { $this->setExpectedException('\\Exception'); new NonNull(new NonNull(Type::int())); }