/** * Test that a restriction is correctly made */ public function testCreateRestriction() { Gatekeeper::restrict('ip', array()); $restrict = Gatekeeper::getRestrictions(); $this->assertCount(1, $restrict); $this->assertTrue($restrict[0] instanceof \Psecio\Gatekeeper\Restrict\Ip); }