public function testTypeConstraint() { $book = new Book(); $ret = $book->create(array('title' => 'Programming Perl', 'subtitle' => 'Way Way to Roman', 'view' => '""')); $this->assertResultSuccess($ret); }