/** * Test transform to boolean */ public function testToBoolean() { $this->assertSame(true, Transform::toBoolean('1')); $this->assertSame(false, Transform::toBoolean('')); $this->assertSame(false, Transform::toBoolean('0')); }