Based on 2x2 tables for matched pairs data.
The test statistic differs from the more familiar chi-square test for association in that, for McNemar's test for matched-pairs, it is based only on cells n12 and n21.
StatSoft Nonparametric Tests
StatSoft McNemar chi-square test
Wikipedia McNemar test