public function testReadLinesFromFile() { $instance = new WhereAmI(''); $expected = file(__FILE__, FILE_IGNORE_NEW_LINES); $actual = $instance->readLinesFromFile(__FILE__); $this->assertEquals(count($expected) + 1, count($actual)); }
public function __construct() { self::$instance = $this; add_action('wp_head', array($this, 'tell_me_where_am_i')); }