Pheasant\Tests\TypeMarshallingTest::testBooleanTypesAreUnmarshalled PHP Method

testBooleanTypesAreUnmarshalled() public method

    public function testBooleanTypesAreUnmarshalled()
    {
        $object = new DomainObject(array('type' => 'Llama'));
        $object->save();
        $llamaById = DomainObject::byId(1);
        $this->assertTrue($llamaById->isllama);
        $this->assertSame($llamaById->id, 1);
        $this->assertSame($llamaById->isllama, true);
    }