public function testRemovesGivenIndexesFromArrayAndReturnsItUsingString() { $expected = ['foo' => 'bar']; $actual = Q::arrayExcept(['foo' => 'bar', 'john' => 'doe', 'jane' => 'doe'], 'jane|john'); $this->assertEquals($expected, $actual); }
public function testWillRunDataThroughHTMLEntities() { $expected = htmlentities('<h1>hello</h1>'); $actual = Q::ent('<h1>hello</h1>'); $this->assertEquals($expected, $actual); }
function array_except(array $array, $except) { return Q::arrayExcept($array, $except); }